Looking for simple GUI code

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?

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?

Hi,

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

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?