#ifndef ANIMATED_TEXURE_H #define ANIMATED_TEXURE_H #include "raylib.h" #include "raymath.h" typedef struct { unsigned int number_of_frames; Rectangle current_frame; int step; float speed; float duration_left; Texture2D texture; } AnimatedTexture; AnimatedTexture animated_texture_create(const char *file_path, int number_of_frames, float speed); int animated_texture_delete(AnimatedTexture animated_texture); void animated_texture_update(AnimatedTexture *animated_texture); void animated_texture_draw(AnimatedTexture *animated_texture, Vector2 position, Color tint); #endif