Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sf::clock pause?  (Read 3707 times)

0 Members and 1 Guest are viewing this topic.

WitchD0ctor

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.teleforce-blogspot.com
Sf::clock pause?
« on: March 13, 2011, 04:38:46 am »
Just a thought but a pause and resume function for the clock Class would be kind of useful for me, not sure how difficult it would be to add but it doesn't seem too hard.

Any body agree this would be kind of nice?
John Carmack can Divide by zer0.

Contadotempo

  • Full Member
  • ***
  • Posts: 167
  • Firelink Shrine
    • View Profile
Sf::clock pause?
« Reply #1 on: March 13, 2011, 06:15:29 am »
Heya,
although it's not implemented on SFML you can make your own pausable clock.

Give the following page a read: http://www.sfml-dev.org/wiki/en/sources/pausableclock

I think this is what you're looking for.

WitchD0ctor

  • Full Member
  • ***
  • Posts: 100
    • View Profile
    • http://www.teleforce-blogspot.com
Sf::clock pause?
« Reply #2 on: March 13, 2011, 09:44:59 am »
This is exacly what I'm looking for, thanks!
John Carmack can Divide by zer0.