mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 21:23: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);
|
SDL_Texture* loadTexture(const char* fileName);
|
||||||
static std::vector<SDL_Rect> splitSpriteSheet(SDL_Texture* spriteSheet, int width, int height, int spritesOnSheet);
|
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);
|
static void draw(SDL_Renderer* renderer, SDL_Texture* texture, SDL_Rect src, SDL_Rect dest, bool flipped = false);
|
||||||
private:
|
private:
|
||||||
Manager* manager;
|
Manager* manager;
|
||||||
|
std::map<std::string, SDL_Texture*> texture_cache;
|
||||||
};
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user