Loading bitmap of format 1 bit per pixel


Is there any method to load a 1 bit per pixel bitmap to texture( using glTexImage2D or using some other functions )?

I know that, I can load the image after converting it to 8 bit image. But I am looking for some direct method

Thanks in advance

You can use GL_BITMAP as format parameter to glTexImage, but it’s probably deprecated (I don’t remember right now).