Class · aurore
aurore::Ticking
#include <aurore/core/time.hpp>
class aurore::TickingConstructors 1
Functions 5
Starts the ticking, pushing it to the list of running tickings. If the ticking is finished, it will be restarted. If the ticking is already running, this method will have no effect.
time.hpp:134Stops the ticking if it was running, and executes the end callback.
time.hpp:139void setEndCallback(TickingEndCallback endCallback) Sets a callback to be executed when the ticking finishes. The callback argument will be set to true if the ticking stopped on its own, false if it was stopped early by the user.
time.hpp:147void setTickCallback(TickingTickCallback tickCallback) Sets a callback to be executed at every tick until the ticking finishes.
The last animation tick will execute the tick callback then the end callback.
time.hpp:156Returns true if the ticking is currently running.
time.hpp:161Static functions 1
Called internally by the main loop. Takes all running tickings and updates them.
time.hpp:167Static attributes 1
Protected functions 3
virtual bool onUpdate(Time delta) =0 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.
time.hpp:180Called when the ticking becomes active.
time.hpp:185Called when the ticking is stopped, either by the user or because it finished.
time.hpp:191Read from Aurore's headers by Doxygen at each build · library/include