View Full Version : how to get RGB of a particular pixel ?
03-04-2012, 08:54 PM
Is there any way in Opengl(or GLUT) to get the RGB of a particukar Pixel ?
I am writing a application using setpixel and getpixel but couldnt able to find the way to get pixel color
03-04-2012, 11:12 PM
I was looking for a similar thing yesterday, then I decided to follow a different path.
However from my searches yesterday to get pixel people are suggesting glReadPixels and to set glDrawPixels.
There are many pages on Google about these methods however I wasn't able to make it work. If you can make it work you can post your solution here too.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.