I have a program in which I would like to be able to retreive the single
specific color of a texture, given some texture coordinates.
I suppose, if it is possible, the call would be something like:
But I think this call only returns the color set by glColor. How can I
"get" the current texture color?
As far as I can tell, the only way to do this is if I retrieved the
entire texture from opengl(using glGetTexImage), and then extract the
specific value from the array by myself, but I would prefer not to be
required to make a complete copy of an image that opengl is already
storing for me. This seems incredibly wasteful.