|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/core/time.hpp>
Public Member Functions | |
| void | rewind () |
| void | reset () |
Public Member Functions inherited from aurore::Ticking | |
| virtual | ~Ticking () |
| void | start () |
| void | stop () |
| void | setEndCallback (TickingEndCallback endCallback) |
| void | setTickCallback (TickingTickCallback tickCallback) |
| bool | isRunning () |
Protected Member Functions | |
| virtual void | onRewind () |
| virtual void | onReset () |
Protected Member Functions inherited from aurore::Ticking | |
| virtual bool | onUpdate (Time delta)=0 |
| virtual void | onStart () |
| virtual void | onStop () |
Additional Inherited Members | |
Static Public Member Functions inherited from aurore::Ticking | |
| static void | updateTickings () |
Static Public Attributes inherited from aurore::Ticking | |
| static std::vector< Ticking * > | runningTickings |
|
inlineprotectedvirtual |
Called when the ticking gets reset.
Reimplemented in aurore::Animatable, and aurore::Timer.
|
inlineprotectedvirtual |
Called when the ticking gets rewound.
Reimplemented in aurore::Animatable, and aurore::Timer.
| void aurore::FiniteTicking::reset | ( | ) |
Stops and resets the ticking, clearing its state in the process (as opposed to rewind() that just restarts the ticking from the beginning without losing the state).
| void aurore::FiniteTicking::rewind | ( | ) |
Rewinds the ticking to go back to the beginning without losing its state (as opposed to reset() that clears everything in the ticking). Does not start or stop it.