Thanks in advance.
-Ixstala
I mean dependant upon which pixel the mouse is over.
Dodger
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
GLubyte rgb[3];
glReadPixels(mouseX, mouseY, 1, 1, GL_RGB, GL_UNSIGNED_BYTE, &rgb[0]);
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.