hx3d
1
2D/3D Simple Game Framework
|
#include <callback.hpp>
Public Member Functions | |
Callback (std::function< void()> func) | |
Create a callback tween using a function. More... | |
Callback (std::function< void()> func, const float duration) | |
Create a callback tween usign a function and a duration. 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 ? | |
Callback tween.
Execute a callback at the end of the tween.
Definition at line 36 of file callback.hpp.
hx3d::tweens::Callback::Callback | ( | std::function< void()> | func | ) |
Create a callback tween using a function.
func | Function |
Definition at line 26 of file callback.cpp.
hx3d::tweens::Callback::Callback | ( | std::function< void()> | func, |
const float | duration | ||
) |
Create a callback tween usign a function and a duration.
func | Function |
duration | Duration |
Definition at line 30 of file callback.cpp.
|
overridevirtual |
Update the tween.
delta | Delta time |
Implements hx3d::tweens::BaseTween.
Definition at line 39 of file callback.cpp.