21 #ifndef HX3D_TWEENS_PARALLEL 22 #define HX3D_TWEENS_PARALLEL 24 #include "hx3d/math/interpolation.hpp" 26 #include "hx3d/tweens/tween.hpp" 28 #include "hx3d/utils/ptr.hpp" 73 virtual void reset()
override;
74 virtual void update(
const float delta)
override;
78 std::vector<Ptr<BaseTween>> tweens;
84 #include "hx3d/tweens/_inline/parallel.inl.hpp" void addTween(T &mod, const T to, const float duration, const math::Interpolation interp)
Create a tween.
Parallel suite of tweens.
Parallel(bool infinite=false)
virtual void reset() override
Reset the tween.
void addRepeatingCallback(std::function< void()> func, const float duration)
Create a repeating callback.
Interpolation
Interpolate using functions.
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.