#include <aurore/core/timer.hpp>
◆ onStart()
| void aurore::RepeatingTimer::onStart |
( |
| ) |
|
|
overridevirtual |
Called when the ticking becomes active.
Reimplemented from aurore::Ticking.
◆ onUpdate()
| bool aurore::RepeatingTimer::onUpdate |
( |
Time |
delta | ) |
|
|
overridevirtual |
Executed every frame while the ticking lives. Delta is the time difference in ms between the last frame and the current one. Must return false if the ticking is finished and should be removed from the list of active tickings. The end callback will automatically be called then.
Implements aurore::Ticking.
◆ setCallback()
Sets the callback of the timer. Tick callback is still executed every tick. End callback is executed when the timer is stopped.
◆ setPeriod()
| void aurore::RepeatingTimer::setPeriod |
( |
Time |
period | ) |
|
Sets the period of the timer, in ms. Does not stop or reset it.
◆ start() [1/2]
| void aurore::RepeatingTimer::start |
( |
| ) |
|
Starts the timer with the already set period.
◆ start() [2/2]
| void aurore::RepeatingTimer::start |
( |
Time |
period | ) |
|
Starts the timer directly with a given period, in ms.
◆ callback
◆ period
| Time aurore::RepeatingTimer::period = 0 |
|
protected |
◆ progress
| Time aurore::RepeatingTimer::progress = 0 |
|
protected |
The documentation for this class was generated from the following file: