Advertisement

Help with glDrawPixels

Started by April 28, 2001 11:38 AM
-1 comments, last by Matimeo 23 years, 7 months ago
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