Classes able to animate graphical objects in different ways.
More...
|
template<typename Animation > |
RefAnimation< Animation > | refAnimation (Animation &referenced) |
| Creates an animation that references another one. More...
|
|
Classes able to animate graphical objects in different ways.
template<typename Animation >
RefAnimation< Animation > refAnimation |
( |
Animation & |
referenced | ) |
|
|
related |
Creates an animation that references another one.
- Parameters
-
referenced | Animation to reference. Must remain valid during usage. |
Creates an animation object that has no functionality on its own, but references another existing animation. By using it, you can avoid copies and change the original animation object, even after it has been added to a thor::Animator. On the other side, you must make sure the original animation stays alive while being referenced.
Example: