20 #ifndef ANIMATED_IMAGE_H_INCLUDED
21 #define ANIMATED_IMAGE_H_INCLUDED
38 template<
typename T,
typename T_
void_value=
void_value<T> >
49 animated(
const std::vector<frame_description> &cfg,
int start_time = 0,
bool force_change =
false);
static const T void_value_
void set_end_time(int ending_time)
std::vector< frame_description > anim_description
int time_to_tick(int animation_time) const
int tick_to_time(int animation_tick) const
int get_current_frame_begin_time() const
int get_current_frame_time() const
void add_frame(int duration, const T &value, bool force_change=false)
Adds a frame to an animation.
int get_animation_time() const
size_t get_frames_count() const
int get_begin_time() const
void set_animation_time(int time)
const T & get_last_frame() const
void update_last_draw_time(double acceleration=0)
int get_current_frame_duration() const
GLsizei const GLfloat * value
const T & get_current_frame() const
int get_animation_duration() const
int get_current_animation_tick()
int get_current_frame_end_time() const
const T & get_frame(size_t n) const
int get_animation_time_potential() const
animated(int start_time=0)
const T & get_first_frame() const
void new_animation_frame()
std::vector< frame > frames_
bool animation_finished() const
Returns true if the current animation was finished.
void set_begin_time(int new_begin_time)
std::pair< int, T > frame_description
bool does_not_change() const
frame(int duration, const T &value, int start_time)
bool animation_finished_potential() const
void remove_frames_until(int starting_time)
void start_animation(int start_time, bool cycles=false)
Starts an animation cycle.