|
ReTo
0.3.7
|
Class to manage all textures from application. More...
#include <TextureManager.h>
Collaboration diagram for reto::TextureManager:Public Member Functions | |
| void | add (const std::string &alias, Texture *tex) |
| Method to add new texture to TextureManager. More... | |
| void | remove (const std::string &alias) |
| Method to remove a texture from TextureManager. More... | |
| Texture * | get (const std::string &alias) |
| Method to get a texture from TextureManager. More... | |
Static Public Member Functions | |
| static TextureManager & | getInstance (void) |
Protected Attributes | |
| std::unordered_map< std::string, Texture * > | _textures |
Class to manage all textures from application.
Definition at line 245 of file TextureManager.h.
| void reto::TextureManager::add | ( | const std::string & | alias, |
| Texture * | tex | ||
| ) |
Method to add new texture to TextureManager.
| Texture* reto::TextureManager::get | ( | const std::string & | alias | ) |
| void reto::TextureManager::remove | ( | const std::string & | alias | ) |
Method to remove a texture from TextureManager.
| alias | Texture alias |