glDrawPixels

Hi,

Is it possible to draw a bitmap in OpenGL with the glDrawPixels, and GL_BITMAP for the format. If so can this be done without any 3D geometry?

Any help would be greatly appreciated!

Yours Sincerely,
Lea Hayes

well, no and yes, GL_BITMAP is just GL_RGB or whatever really. without 3d geometry is just drawing in orthographic projection, i.e. no vanishing points and z lines a re parallel

GL_BITMAP is for 1-bit color, it’s not the same as GL_RGB. With GL_BITMAP each bit represents a pixel being on or off. It’s not appropriate for displaying BMP files, which have RGB components.

Sorry, I assumed in the question she thought GL_BITMAP = bmp format

I assumed the same thing. I was trying to explain more what GL_BITMAP is specifically. I probably misunderstood what you meant when you said “GL_BITMAP is just GL_RGB or whatever.”