How to mouse_click over 2d rects?
try to go to… http://www.opengl.org/developers/code/glut_examples/examples/examples.html
see the last sample…
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