21 #ifndef HX3D_TWEENS_CALLBACK 22 #define HX3D_TWEENS_CALLBACK 24 #include "hx3d/tweens/base_tween.hpp" 43 Callback(std::function<
void()> func);
51 Callback(std::function<
void()> func,
const float duration);
53 virtual void reset()
override;
54 virtual void update(
const float delta)
override;
58 std::function<void()> _func;
virtual void update(const float delta) override
Update the tween.
Callback(std::function< void()> func)
Create a callback tween using a function.
virtual void reset() override
Reset the tween.