hx3d
1
2D/3D Simple Game Framework
|
Parallel suite of tweens. More...
#include <parallel.hpp>
Public Member Functions | |
Parallel (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 | addRepeatingCallback (std::function< void()> func, const float duration) |
Create a repeating callback. 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... | |
![]() | |
bool | hasEnded () |
Test if the tween has ended. More... | |
Additional Inherited Members | |
![]() | |
bool | _ended |
Has the tween ended ? | |
bool | _infinite |
Is the tween infinite ? | |
Parallel suite of tweens.
Definition at line 38 of file parallel.hpp.
hx3d::tweens::Parallel::Parallel | ( | bool | infinite = false | ) |
Create a parallel tween.
infinite | Infinite ? (default: false) |
Definition at line 28 of file parallel.cpp.
void hx3d::tweens::Parallel::addRepeatingCallback | ( | std::function< void()> | func, |
const float | duration | ||
) |
Create a repeating callback.
func | Function |
duration | Duration |
Definition at line 34 of file parallel.cpp.
void hx3d::tweens::Parallel::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 parallel.inl.hpp.
|
overridevirtual |
Update the tween.
delta | Delta time |
Implements hx3d::tweens::BaseTween.
Definition at line 48 of file parallel.cpp.