PDA

View Full Version : Displaying Bitmaps



saileshksaha
06-17-2001, 11:58 PM
Please help me in displaying bitmaps through Open GL code. I am working on Linux and using C language. This bitmap has to be displayed on the screen.
Please keep it simple as i am new to it.
Thanks in advance.
Sailesh

Gavin
06-18-2001, 02:32 AM
a) glDrawPixels
b) Texture mapping to a quad

a is easier, more effective and copes easily with any size of image, but is slow
b is a bit more complex (not too much) and is quicker, need to bodge it a little if you have non 2^n dimension images

gav