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 );
Common interface for all tweeners.
Common interface for all tweeners.
void set_duration(double v)
Sets the total duration.
double get_end() const
Gets the final value.
void set_end(double v)
Sets the final value.
single_tweener()
Default constructor.
void set_easing(easing_function f)
The function used to compute the new value.
boost::function< double(double)> easing_function
The type of the function used to compute the new value.
double get_init() const
Gets the initial value.
void set_init(double v)
Sets the initial value.
double get_duration() const
Gets the total duration.
void set_callback(update_function f)
The function called when the single_tweener is updated.
boost::function< void(double)> update_function
The type of the function called when the single_tweener is updated.
double get_value() const
Gets the current value of the tweener.
Easing functions for the tweener. Those functions do nothing.
Tweeners interpolate the intermediate values between two given reference values using various equatio...
This is the main namespace.