29#ifndef __CLAW_TWEEN_TWEENER_HPP__
30#define __CLAW_TWEEN_TWEENER_HPP__
Common interface for all tweeners.
A tweener makes a value to evolve through time from a initial value to an end value according to a gi...
tweener()
Default constructor.
bool is_finished() const
Tell if the tweener has reached his total duration.
void swap(tweener &that)
Swap this instance with a given instance.
double update(double dt)
Update the tweener of a given amount of time.
std::function< void()> finish_callback
The type of the function called to notify the end of the tweener.
void on_finished(finish_callback f)
Execute the callbacks notifying about the finish of the tweener.
tweener & operator=(const tweener &that)
Assignment operator.
Tweeners interpolate the intermediate values between two given reference values using various equatio...
This is the main namespace.