Go to the documentation of this file.
30 #ifndef __CLAW_TWEEN_TWEENER_HPP__
31 #define __CLAW_TWEEN_TWEENER_HPP__
34 #include <boost/function.hpp>
68 double update(
double dt );
87 #endif // __CLAW_TWEEN_TWEENER_HPP__
tweener()
Default constructor.
This is the main namespace.
double update(double dt)
Update the tweener of a given amount of time.
void on_finished(finish_callback f)
Execute the callbacks notifying about the finish of the tweener.
A tweener makes a value to evolve through time from a initial value to an end value according to a gi...
tweener & operator=(const tweener &that)
Assignment operator.
void swap(tweener &that)
Swap this instance with a given instance.
Common interface for all tweeners.
bool is_finished() const
Tell if the tweener has reached his total duration.
boost::function< void()> finish_callback
The type of the function called to notify the end of the tweener.