PDA

View Full Version : glDrawPixels



sgiuser
08-07-2001, 08:20 AM
hi,
I am a new user for OpenGL. I want to display gray level image 0..255 instead of
RGB. the glDrawPixels requires x_size, Y_size, GL_UNSIGNED_BUTE, image and
RGB. what I put instedad of RGB. I just wanted gray level. If I don't put RGB the routine doesn't compile.
txs

08-07-2001, 11:10 AM
Try with GL_LUMINANCE ...