🎉 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
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++?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement