PDA

View Full Version : Problem in Drawing a 16bits image (black and white)



philm
02-20-2003, 11:31 AM
Hi,
can u tell me plz how to draw a 16bits image ( image monochrome(black and white) )
using "glDrawPixels";Assuming that we have a
buffer of that image as follow :

GLshort buffer[256][256];
what must be each parameter of "glDrawPixesls"
thanks for help

shinpaughp
02-20-2003, 12:30 PM
Not positive, but try:
glDrawPixels(256, 256, GL_LUMINANCE, GL_SHORT, buffer[0]);