🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Trouble with glReadPixels

Started by
0 comments, last by VECTOR 23 years, 11 months ago
Can someone tell me the useage of glReadPixels? Here''s my simple requirements: read from RED(0-255 colors) read one single pixel return it to an integer called ''select''
The object of war is not to die for your country, but to make the other bastard die for his . . -General MacArthur
Advertisement
int select=0; // default alignment =4
glReadPixels( x, y, 1, 1, GL_RED, GL_UNSIGNED_BYTE, &select );


Edited by - Serge K on August 3, 2000 6:28:53 PM

This topic is closed to new replies.

Advertisement