PDA

View Full Version : Looking for simple GUI code



03-18-2004, 04:27 AM
All i am looking for is opengl code that will detect when the mouse has clicked on an object on the screen.... any one got an idea?

nexusone
03-18-2004, 07:03 AM
It is called picking, nehe.gamedev.net has a tutor on it.

I think it is around tutor number 30 or 33.



Originally posted by Markus_45678028:
All i am looking for is opengl code that will detect when the mouse has clicked on an object on the screen.... any one got an idea?

cwc36
03-19-2004, 12:43 AM
Hi,

You also can find the pick example in here. http://www.myopendemo.com

03-19-2004, 04:17 AM
Thank you guys for your replys. will try them out and let you know how i get on. Might i add that i don't want to use glut. Can i still use your examples?