#ifndef ANIMATION_H_ #define ANIMATION_H_ #include "raylib.h" typedef struct Animation Animation; typedef struct AnimationFrame AnimationFrame; typedef struct Animation { AnimationFrame *head; AnimationFrame *tail; } Animation; typedef struct AnimationFrame { Texture2D *texture; AnimationFrame *next; AnimationFrame *prev; } AnimationFrame; Animation * AnimationInit(); AnimationFrame * AnimationFrameCreate(Texture2D *texture); void AnimationInsertFront(Animation *animation, Texture2D *texture); void AnimationInsertBack(Animation *animation, Texture2D *texture); #endif