repo.or.cz
/
runemen.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add SDL2_mixer support.
[runemen.git]
/
src
/
visual.h
blob
104ec92fb510f9ecab893d125a2e52b9022a2ceb
1
#ifndef _RUNE_VISUAL_H
2
#define _RUNE_VISUAL_H
3
4
#include <SDL.h>
5
6
#define MAX_AAXIS 4
7
#define MAX_AANIM 8
8
#define MAX_AFRAME 16
9
10
typedef
struct
animation_t
{
11
12
SDL_Texture
*
image
;
13
SDL_Rect plane
;
14
15
SDL_Rect axis_offset
[
MAX_AAXIS
];
16
Uint8 axis_modifier
[
MAX_AAXIS
];
17
Uint8 num_axises
;
18
19
Sint8 frame
[
MAX_AANIM
][
MAX_AFRAME
];
20
Uint8 num_frames
[
MAX_AANIM
];
21
22
}
animation_t
;
23
24
#endif