hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::tweens::Callback Class Reference

Callback tween. More...

#include <callback.hpp>

Public Member Functions

 Callback (std::function< void()> func)
 Create a callback tween using a function. More...
 
 Callback (std::function< void()> func, const float duration)
 Create a callback tween usign a function and a duration. 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

Callback tween.

Execute a callback at the end of the tween.

Definition at line 36 of file callback.hpp.

Constructor & Destructor Documentation

hx3d::tweens::Callback::Callback ( std::function< void()>  func)

Create a callback tween using a function.

Parameters
funcFunction

Definition at line 26 of file callback.cpp.

hx3d::tweens::Callback::Callback ( std::function< void()>  func,
const float  duration 
)

Create a callback tween usign a function and a duration.

Parameters
funcFunction
durationDuration

Definition at line 30 of file callback.cpp.

Member Function Documentation

void hx3d::tweens::Callback::update ( const float  delta)
overridevirtual

Update the tween.

Parameters
deltaDelta time

Implements hx3d::tweens::BaseTween.

Definition at line 39 of file callback.cpp.


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