80 void load(SDL_Renderer* renderer);
86 std::shared_ptr<TTF_Font>
getFont()
const;
95 std::shared_ptr<TTF_Font>
getFont(
int pointSize)
const;
103 std::shared_ptr<SDL_Texture>
getTexture(Texture texture);
110 std::shared_ptr<Mix_Music>
getMusic(MusicEnum music);
117 std::shared_ptr<Mix_Chunk>
getSound(SoundEnum sound);
132 void loadTexture(SDL_Renderer* renderer, Texture texture,
const std::string& filePath);
139 void loadMusic(MusicEnum music,
const std::string& filePath);
146 void loadSound(SoundEnum sound,
const std::string& filePath);
148 std::shared_ptr<TTF_Font> font =
nullptr;
149 std::string fontPath_;
150 std::unordered_map<Texture, std::shared_ptr<SDL_Texture>,
EnumClassHash> textures;
151 std::unordered_map<MusicEnum, std::shared_ptr<Mix_Music>,
EnumClassHash> musics;
152 std::unordered_map<SoundEnum, std::shared_ptr<Mix_Chunk>,
EnumClassHash> sounds;