Thanks in advance.
I mean dependant upon which pixel the mouse is over.
04-30-2001, 12:17 PM
The easiest way I can think of right off hand would be to read back the frame buffer and find our for yourself http://www.opengl.org/discussion_boards/ubb/wink.gif
There's a feedback buffer but from what I read that's supposed to be a little tricky and expensive, so I'd do
glReadPixels(mouseX, mouseY, 1, 1, GL_RGB, GL_UNSIGNED_BYTE, &rgb);
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.