🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

mouse

Started by
1 comment, last by programmer_247 17 years, 3 months ago
Is there a way to get and change the mouse coordinates and test for clicks using OpenGL? If not, is there a way in c or c++?
Advertisement
The mouse is very OS dependent, but assuming windows, here is a decent tutorial on picking, which handles getting mouse coordinates, clicking, and testing for something being clicked (picking). Note that there are other was to pick objects using ray casting and collision detection, but this should get you started with mouse basics.
yes its windows

thank you

This topic is closed to new replies.

Advertisement