Add SDL2_mixer support.
[runemen.git] / src / visual.h
blob104ec92fb510f9ecab893d125a2e52b9022a2ceb
1 #ifndef _RUNE_VISUAL_H
2 #define _RUNE_VISUAL_H
4 #include <SDL.h>
6 #define MAX_AAXIS 4
7 #define MAX_AANIM 8
8 #define MAX_AFRAME 16
10 typedef struct animation_t {
12 SDL_Texture *image;
13 SDL_Rect plane;
15 SDL_Rect axis_offset[MAX_AAXIS];
16 Uint8 axis_modifier[MAX_AAXIS];
17 Uint8 num_axises;
19 Sint8 frame[MAX_AANIM][MAX_AFRAME];
20 Uint8 num_frames[MAX_AANIM];
22 } animation_t;
24 #endif