Help with glDrawPixels
I just wanted to test the speed of glDrawPixels, and I thought this would be pretty straight forward...
GLubyte test[40000];
...later I fill it with nothing but 255''s so I''ll have a white image. Next in my drawing routines I call glDrawPixels as such:
glDrawPixels(100, 100, GL_RGBA, GL_UNSIGNED_BYTE, test);
...It compiles fine but when the program runs the screen just stays black. Is there anything I''m missing? Do I need to enable or disable anything?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement