PDA

View Full Version : Get Pixel out of the Screen(2d)



TheBlob
09-18-2001, 09:07 AM
Hi!
How do I get the pixelvalue out of the screenbuffer using OpenGL?? e.g.
int pixel = GetPixel(x,y); ??
Thnx,
Blob

DaViper
09-18-2001, 09:38 AM
glReadPixel(); http://www.eecs.tulane.edu/www/graphics/doc/OpenGL-Man-Pages/glReadPixels.html

Chris