Functions
thor::Playback Namespace Reference

Namespace for animation playback schemes. More...

Functions

template<typename Id >
ImplementationDefined repeat (Id id, std::size_t times)
 Repeat animation a finite number of times. More...
 
template<typename Id >
ImplementationDefined loop (Id id)
 Repeat animation an infinite number of times. More...
 
ImplementationDefined notify (std::function< void()> callback)
 Register a callback function in the queue. More...
 

Detailed Description

Namespace for animation playback schemes.

Provides functions that define the way in which animations can be queued and repeated.

See also
thor::Animator

Function Documentation

template<typename Id >
ImplementationDefined thor::Playback::loop ( Id  id)

Repeat animation an infinite number of times.

Parameters
idIdentifier referring to the animation
Returns
Queue object with operator<< to chain multiple playback schemes
ImplementationDefined thor::Playback::notify ( std::function< void()>  callback)

Register a callback function in the queue.

Parameters
callbackFunction to be called.
Returns
Queue object with operator<< to chain multiple playback schemes
template<typename Id >
ImplementationDefined thor::Playback::repeat ( Id  id,
std::size_t  times 
)

Repeat animation a finite number of times.

Parameters
idIdentifier referring to the animation
timesNumber of times > 0
Returns
Queue object with operator<< to chain multiple playback schemes