14 for (
auto& it : this->texture_cache) {
15 SDL_DestroyTexture(it.second);
19 std::map<std::string, SDL_Texture*> texture_cache;
21 SDL_Texture* loadTexture(
const char* fileName);
22 static std::vector<SDL_Rect> splitSpriteSheet(SDL_Texture* spriteSheet,
int width,
int height,
int spritesOnSheet);
23 static void draw(SDL_Texture* texture, SDL_Rect src, SDL_Rect dest,
bool flipped =
false);
Definition TextureManager.h:10