|
hx3d
1
2D/3D Simple Game Framework
|
Templated tween definition. More...
#include <tween.hpp>
Public Member Functions | |
| Tween (T &mod, const T end, const float duration, const math::Interpolation interp, bool infinite=false) | |
| Create a 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 ? | |
Templated tween definition.
| hx3d::tweens::Tween< T >::Tween | ( | T & | mod, |
| const T | end, | ||
| const float | duration, | ||
| const math::Interpolation | interp, | ||
| bool | infinite = false |
||
| ) |
Create a tween.
| mod | Base value to edit |
| end | End value |
| duration | Duration |
| interp | Interpolation function |
| infinite | Infinite ? (default: false) |
Definition at line 25 of file tween.inl.hpp.
|
overridevirtual |
Update the tween.
| delta | Delta time |
Implements hx3d::tweens::BaseTween.
Definition at line 38 of file tween.inl.hpp.
1.8.11