hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::tweens::Tween< T > Class Template Reference

Templated tween definition. More...

#include <tween.hpp>

Public Member Functions

 Tween (T &mod, const T end, const float duration, const math::Interpolation interp, bool infinite=false)
 Create a tween. More...
 
virtual void reset () override
 Reset the tween.
 
virtual void update (const float delta) override
 Update the tween. More...
 
- Public Member Functions inherited from hx3d::tweens::BaseTween
bool hasEnded ()
 Test if the tween has ended. More...
 

Additional Inherited Members

- Protected Attributes inherited from hx3d::tweens::BaseTween
bool _ended
 Has the tween ended ?
 
bool _infinite
 Is the tween infinite ?
 

Detailed Description

template<class T>
class hx3d::tweens::Tween< T >

Templated tween definition.

Definition at line 33 of file tween.hpp.

Constructor & Destructor Documentation

template<class T >
hx3d::tweens::Tween< T >::Tween ( T &  mod,
const T  end,
const float  duration,
const math::Interpolation  interp,
bool  infinite = false 
)

Create a tween.

Parameters
modBase value to edit
endEnd value
durationDuration
interpInterpolation function
infiniteInfinite ? (default: false)

Definition at line 25 of file tween.inl.hpp.

Member Function Documentation

template<class T >
void hx3d::tweens::Tween< T >::update ( const float  delta)
overridevirtual

Update the tween.

Parameters
deltaDelta time

Implements hx3d::tweens::BaseTween.

Definition at line 38 of file tween.inl.hpp.


The documentation for this class was generated from the following files: