ReTo  0.3.7
reto::TextureManager Class Reference

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...
 
Textureget (const std::string &alias)
 Method to get a texture from TextureManager. More...
 

Static Public Member Functions

static TextureManagergetInstance (void)
 

Protected Attributes

std::unordered_map< std::string, Texture * > _textures
 

Detailed Description

Class to manage all textures from application.

Definition at line 245 of file TextureManager.h.

Member Function Documentation

void reto::TextureManager::add ( const std::string &  alias,
Texture tex 
)

Method to add new texture to TextureManager.

Parameters
aliasTexture alias
texTexture pointer
Texture* reto::TextureManager::get ( const std::string &  alias)

Method to get a texture from TextureManager.

Parameters
aliasTexture alias
Returns
Texture pointer
void reto::TextureManager::remove ( const std::string &  alias)

Method to remove a texture from TextureManager.

Parameters
aliasTexture alias

The documentation for this class was generated from the following file: