View Full Version : glDrawPixels

10-22-2002, 10:03 AM

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

10-23-2002, 01:03 AM
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

10-23-2002, 04:35 AM
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.

10-23-2002, 05:02 AM
Sorry, I assumed in the question she thought GL_BITMAP = bmp format

10-23-2002, 09:48 AM
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."