Namespace for animation playback schemes.
More...
|
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...
|
|
Namespace for animation playback schemes.
Provides functions that define the way in which animations can be queued and repeated.
- See also
- thor::Animator
template<typename Id >
ImplementationDefined thor::Playback::loop |
( |
Id |
id | ) |
|
Repeat animation an infinite number of times.
- Parameters
-
id | Identifier 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
-
callback | Function 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
-
id | Identifier referring to the animation |
times | Number of times > 0 |
- Returns
- Queue object with
operator<<
to chain multiple playback schemes