Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

liquidAir

Need help with timers - preferably SDL

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

Helo there! I''m using the SDL library timer functions. My problem is, I have basically no idea on how to program with timers. What I want to accomplish is - display something on the screen - wait for some seconds - clear the screen - display another thing and repeat process till I get to the last item to display Can I get code on how to do this? Or where can I get timer tutorials?

Share this post


Link to post
Share on other sites
Advertisement
SDL API dox: http://sdldoc.csn.ul.ie/time.php

The quick''n dirty method (if you can afford to have your program freeze) is just to SDL_Delay() a while.
Alternatively, set a timer, have its callback signal a variable, and poll in your main loop.

HTH
Jan

Share this post


Link to post
Share on other sites

This topic is 5803 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.

Guest
This topic is now closed to further replies.

  • 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!