You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
601 B
27 lines
601 B
#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 |