Jump to content
  • Advertisement
Sign in to follow this  
Maverick Programmer

Going from windows headers to glut

This topic is 4057 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

Okay, I'm not entirely aure if this is the right place to put this so, Mods, move if needed. Okay, here's my problem: I have a camera engine built in windows that I made and a scenery program I made with glut so it could be cross-platform. Well, I combine the two programs so I could move around in my scenery. Unfortunately, when I removed all the windows needed functions from the camera program, I forgot I had GetCursorPos and SetCursorPos in the script commands. Is there a function in glut, a header file, or anything that I can use to work like GetCursorPos and SetCursorPos to replace them so my program will work? Thank you. ~PCN

Share this post


Link to post
Share on other sites
Advertisement
you can use SDL to do that (libsdl.org). SDL is cross-platform also so you should not have a problem. Take a look at the docs for mouse and events:

SDL_WarpMouse()
http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fWarpMouse

SDL Events:
http://www.libsdl.org/cgi/docwiki.cgi/Introduction_20to_20Events

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!