This is my first time that I’m using OpenGL in C++ I learned some basic stuff like drawing lines,points,polygons etc. and still learning.
I want to make a simple app that will detect color of the current pixel by specifying X and Y coordinates of the screen.
I’m using Windows and Dev-C++.
So if it is possible please give me function name or give me an example!
but sorry for bothering how can I get RGB value like 1.0,0.0,1.0 or something similar so I can determine if that is the wanted color
I used this code and It shows only 0