21 #include "hx3d/tweens/sequence.hpp" 43 while (!doneTweens.empty()) {
44 auto& tween = doneTweens.top();
58 if (tween->hasEnded()) {
59 doneTweens.push(tween);
virtual void update(const float delta) override
Update the tween.
void addCallback(std::function< void()> func)
Create a callback tween.
Sequence(bool infinite=false)
bool _infinite
Is the tween infinite ?
void addDelay(const float delay)
Create a delay tween.
virtual void reset() override
Reset the tween.
bool _ended
Has the tween ended ?
void add(const Ptr< BaseTween > &tween)
Add an existing tween.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.