PDA

View Full Version : How to mouse_click over 2d rects?



12-06-2002, 09:13 PM
How to mouse_click over 2d rects?

rhizome
12-06-2002, 10:09 PM
try to go to... http://www.opengl.org/developers/code/glut_examples/examples/examples.html

see the last sample...

rhizome
12-06-2002, 10:11 PM
http://www.opengl.org/developers/code/glut_examples/examples/examples.html

12-07-2002, 09:36 AM
Thanks,

But my problem its very simple ...

I have a rect that is a button, it has a fixed position on ortho2d, on mouseClick event I want to know if I click on this button. The button its on ortho2d and it is stretched when window is resized (viewport(0,w,0,h))

Thanks

http://www.opengl.org/discussion_boards/ubb/biggrin.gif