#ifndef ANIMATION_H_ #define ANIMATION_H_ #include #include struct animation_init { int initial_frame_count; float* initial_frame_times; SDL_Rect* initial_frames; }; struct animation { int num_frames; int current_frame; float current_time; float* frame_times; SDL_Rect* frames; }; void init_animation(struct animation* animation, struct animation_init* init); void update_animation(struct animation* animation, float dt); void free_animation(struct animation* animation); #endif // ANIMATION_H_