21 #include "hx3d/tweens/parallel.hpp" 23 #include "hx3d/tweens/callback.hpp" 31 tweens.push_back(tween);
36 tweens.push_back(tween);
40 for (
auto i = tweens.begin(); i != tweens.end();) {
52 bool all_ended =
true;
53 for (
auto i = tweens.begin(); i != tweens.end();) {
56 if (!tween->hasEnded()) {
bool _infinite
Is the tween infinite ?
Parallel(bool infinite=false)
virtual void reset() override
Reset the tween.
bool _ended
Has the tween ended ?
void addRepeatingCallback(std::function< void()> func, const float duration)
Create a repeating callback.
void add(const Ptr< BaseTween > &tween)
Add an existing tween.
virtual void update(const float delta) override
Update the tween.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.