blob: 4f0ac6b80d5e8777ae024fcbeb3a201598ef50ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef DATA_RESS_H
#define DATA_RESS_H
#include <SDL.h> /* SDL_texture def */
#include <SDL_mixer.h> /* Mix_Chunk and Mix_Music defs */
#include "data_ini.h" /* For MAX_* macros */
typedef struct {
SDL_Texture *t;
SDL_Rect size;
int frames; /* Already in gIni->style->frames, but convenient here also */
} sprite_t;
typedef struct {
/* Style */
SDL_Surface *tiles[MAX_TILES_COUNT];
sprite_t objects[MAX_OBJECTS_COUNT];
SDL_Surface *objectMasks[MAX_OBJECTS_COUNT];
/* Misc */
sprite_t lemmingAnims[MAX_LEMMANIM_COUNT];
SDL_Surface *lemmingMasks[MAX_LEMMANIM_COUNT];
SDL_Surface *lemmingIMasks[MAX_LEMMANIM_COUNT];
sprite_t font1, font2, countdown, cursor;
/* Music */
Mix_Music *musics[MAX_MUSICS_COUNT];
/* Sound */
Mix_Chunk *sounds[MAX_SOUNDS_COUNT];
} gameRess_t;
#endif /*DATA_RES_H*/
|