PDA

View Full Version : how can we get the color of a pixel?



perdue
08-16-2002, 01:56 AM
Hello
I'd like to take over the color of a selected pixel. Is it possible to get it and then to change it by that way.
thank you.

Bob
08-16-2002, 02:12 AM
Use glReadPixels to read the pixel, modify it as you want, and then put it back with glDrawPixels.