Go to the documentation of this file.
30 #ifndef __CLAW_TWEEN_SINGLE_TWEENER_HPP__
31 #define __CLAW_TWEEN_SINGLE_TWEENER_HPP__
36 #include <boost/function.hpp>
83 bool do_is_finished()
const;
84 double do_update(
double dt );
110 #endif // __CLAW_TWEEN_SINGLE_TWEENER_HPP__
void set_end(double v)
Sets the final value.
double get_end() const
Gets the final value.
This is the main namespace.
void set_duration(double v)
Sets the total duration.
double get_init() const
Gets the initial value.
boost::function< void(double)> update_function
The type of the function called when the single_tweener is updated.
A single_tweener makes a value to evolve through time from a initial value to an end value according ...
double get_value() const
Gets the current value of the tweener.
Easing functions for the tweener. Those functions do nothing.
void set_easing(easing_function f)
The function used to compute the new value.
Common interface for all tweeners.
Common interface for all tweeners.
boost::function< double(double)> easing_function
The type of the function used to compute the new value.
void set_callback(update_function f)
The function called when the single_tweener is updated.
single_tweener()
Default constructor.
void set_init(double v)
Sets the initial value.
double get_duration() const
Gets the total duration.