mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 13:43:41 +00:00
made texture_cache map private
This commit is contained in:
parent
e493960fe0
commit
68079d0279
@ -17,11 +17,10 @@ class TextureManager
|
||||
}
|
||||
}
|
||||
|
||||
std::map<std::string, SDL_Texture*> texture_cache;
|
||||
|
||||
SDL_Texture* loadTexture(const char* fileName);
|
||||
static std::vector<SDL_Rect> splitSpriteSheet(SDL_Texture* spriteSheet, int width, int height, int spritesOnSheet);
|
||||
static void draw(SDL_Renderer* renderer, SDL_Texture* texture, SDL_Rect src, SDL_Rect dest, bool flipped = false);
|
||||
private:
|
||||
Manager* manager;
|
||||
std::map<std::string, SDL_Texture*> texture_cache;
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user