brown12
10-30-2000, 11:03 AM
I'm using GLUT and GL in color index mode, and I have a rectangular array of pixels with a GLubyte per pixel as an index into a colortable. I set glPixelZoom(2,2) and then call
glDrawPixels(WIDTH, HEIGHT, GL_COLOR_INDEX, GL_UNSIGNED_BYTE, Pixels)
However, it does not actually zoom, and just leaves my rectangle at its original size.
If I replace GL_UNSIGNED_BYTE with GL_BYTE, it does perform the zoom -- however, then the DrawPixels takes 25 times as long, 0.2 seconds as opposed to 0.008, which is unacceptable in my application. Does anyone have any ideas as to why the zoom might be ignored?
Thanks,
Joel
glDrawPixels(WIDTH, HEIGHT, GL_COLOR_INDEX, GL_UNSIGNED_BYTE, Pixels)
However, it does not actually zoom, and just leaves my rectangle at its original size.
If I replace GL_UNSIGNED_BYTE with GL_BYTE, it does perform the zoom -- however, then the DrawPixels takes 25 times as long, 0.2 seconds as opposed to 0.008, which is unacceptable in my application. Does anyone have any ideas as to why the zoom might be ignored?
Thanks,
Joel