Jump to content
  • Advertisement
Sign in to follow this  

OpenGL clicky mouse

This topic is 5191 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok.. im trying to create a model editor program but i dont really know how to go about it.. so im just guessing as i go. im trying to work on getting mouse clicks to register on things in the editor. ive added an alert to the windows message loop in my program that sees when the mouse is clicked and where it is on the x and y positions at the time.. BUT.. i dont know how to make this relative to opengl. the more i zoom out/in.. the more the difference between the mouse and opengl coordinates change.. frankly im sure im going about it entirely the wrong way but nevertheless if anyone knows how i can convert the mouse position to opengl x,y positions relative to how far in or out of the screen the current view is.. that would be great... alternately, anyone who can point me in a better dirrection on how to go about this problem.. that would also be appreciated.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!