Jump to content
  • Advertisement
Sign in to follow this  

glutGet(GLUT_ELAPSED_TIME) not working for me

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

Hey there, Im trying to make a glut version of a windows/opengl game I created, so that it will play on Linux. That means i need to replace the windows functionality such as timeGetTime() and use glut's time = glutGet(GLUT_ELAPSED_TIME); Unfortunately it always returns 0 as shown by: Click here to view full size Im not sure if I have done something wrong however, becuase it keeps returning 0, no matter what. Do I need to initialize a timer somewhere first or something?

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!