21 #ifndef HX3D_TWEENS_SEQUENCE 22 #define HX3D_TWEENS_SEQUENCE 24 #include "hx3d/math/interpolation.hpp" 26 #include "hx3d/tweens/tween.hpp" 27 #include "hx3d/tweens/delay.hpp" 28 #include "hx3d/tweens/callback.hpp" 30 #include "hx3d/utils/ptr.hpp" 82 virtual void reset()
override;
83 virtual void update(
const float delta)
override;
87 std::queue<Ptr<BaseTween>> tweens;
88 std::stack<Ptr<BaseTween>> doneTweens;
94 #include "hx3d/tweens/_inline/sequence.inl.hpp" virtual void update(const float delta) override
Update the tween.
void addCallback(std::function< void()> func)
Create a callback tween.
Sequence(bool infinite=false)
void addDelay(const float delay)
Create a delay tween.
virtual void reset() override
Reset the tween.
Interpolation
Interpolate using functions.
void addTween(T &mod, const T to, const float duration, const math::Interpolation interp)
Create a tween.
Sequential suite of tweens.
void add(const Ptr< BaseTween > &tween)
Add an existing tween.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.