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
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
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.