|
hx3d
1
2D/3D Simple Game Framework
|
Sequential suite of tweens. More...
#include <sequence.hpp>
Public Member Functions | |
| Sequence (bool infinite=false) | |
| template<class T > | |
| void | addTween (T &mod, const T to, const float duration, const math::Interpolation interp) |
| Create a tween. More... | |
| void | addDelay (const float delay) |
| Create a delay tween. More... | |
| void | addCallback (std::function< void()> func) |
| Create a callback tween. More... | |
| void | add (const Ptr< BaseTween > &tween) |
| Add an existing tween. More... | |
| virtual void | reset () override |
| Reset the tween. | |
| virtual void | update (const float delta) override |
| Update the tween. More... | |
Public Member Functions inherited from hx3d::tweens::BaseTween | |
| bool | hasEnded () |
| Test if the tween has ended. More... | |
Additional Inherited Members | |
Protected Attributes inherited from hx3d::tweens::BaseTween | |
| bool | _ended |
| Has the tween ended ? | |
| bool | _infinite |
| Is the tween infinite ? | |
Sequential suite of tweens.
Definition at line 41 of file sequence.hpp.
| hx3d::tweens::Sequence::Sequence | ( | bool | infinite = false | ) |
Create a sequence.
| infinite | Infinite ? (default: false) |
Definition at line 26 of file sequence.cpp.
| void hx3d::tweens::Sequence::addCallback | ( | std::function< void()> | func | ) |
| void hx3d::tweens::Sequence::addDelay | ( | const float | delay | ) |
| void hx3d::tweens::Sequence::addTween | ( | T & | mod, |
| const T | to, | ||
| const float | duration, | ||
| const math::Interpolation | interp | ||
| ) |
Create a tween.
| mod | Base value to edit |
| to | End value |
| duration | Duration |
| interp | Interpolation function |
Definition at line 25 of file sequence.inl.hpp.
|
overridevirtual |
Update the tween.
| delta | Delta time |
Implements hx3d::tweens::BaseTween.
Definition at line 53 of file sequence.cpp.
1.8.11