22 lines
414 B
C
22 lines
414 B
C
#include <stdint.h>
|
|
|
|
struct animation_state
|
|
{
|
|
uint8_t size;
|
|
uint8_t *data;
|
|
};
|
|
|
|
struct animation
|
|
{
|
|
struct animation *next;
|
|
void (*init) (struct animation_state state);
|
|
void (*loop) (struct animation_state state);
|
|
uint32_t intervall;
|
|
};
|
|
|
|
void animation_init ();
|
|
void animation_new (struct animation *anim);
|
|
void animation_append (struct animation *anim);
|
|
void animation_remove (struct animation *anim);
|
|
|