ST_engine  0.3-ALPHA
assets.hpp
1 /* This file is part of the "ST" project.
2  * You may use, distribute or modify this code under the terms
3  * of the GNU General Public License version 2.
4  * See LICENCE.txt in the root directory of the project.
5  *
6  * Author: Maxim Atanasov
7  * E-mail: maxim.atanasov@protonmail.com
8  */
9 
10 #ifndef ASSTS_DEF
11 #define ASSTS_DEF
12 
13 #include <string>
14 
15 #include <ST_util/bytell_hash_map.hpp>
16 #include <SDL.h>
17 #include <SDL_ttf.h>
18 #include <SDL_mixer.h>
19 
20 
21 namespace ST {
22 
24  struct assets {
25  ska::bytell_hash_map<uint16_t, SDL_Surface *> surfaces;
26  ska::bytell_hash_map<uint16_t, TTF_Font *> fonts;
27  ska::bytell_hash_map<uint16_t, Mix_Music *> music;
28  ska::bytell_hash_map<uint16_t, Mix_Chunk *> chunks;
29  };
30 }
31 
32 #endif
A container that holds all asset types used in the game.
Definition: assets.hpp:24