View Full Version : how to get RGB of a particular pixel ?
03-04-2012, 09: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-05-2012, 12:12 AM
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.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.