#ifndef DATA_RESS_H #define DATA_RESS_H #include /* SDL_texture def */ #include /* 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*/