Singleton for loading textures (not threadsafe) More...
#include <texture_manager.hh>
Public Member Functions | |
GLuint | loadTexture (const char *filename) |
load a texture on the GPU, returned value is the texture ID, or 0 for failure | |
Static Public Member Functions | |
static TextureManager & | getInstance (void) |
Public Attributes | |
GLuint | _mains_texture_id |
GLuint | _stall_texture_id |
Private Member Functions | |
TextureManager (void) |
Singleton for loading textures (not threadsafe)
Definition at line 19 of file texture_manager.hh.
Stg::TextureManager::TextureManager | ( | void | ) | [inline, private] |
Definition at line 21 of file texture_manager.hh.
static TextureManager& Stg::TextureManager::getInstance | ( | void | ) | [inline, static] |
Definition at line 30 of file texture_manager.hh.
GLuint TextureManager::loadTexture | ( | const char * | filename | ) |
load a texture on the GPU, returned value is the texture ID, or 0 for failure
Definition at line 14 of file texture_manager.cc.
Definition at line 27 of file texture_manager.hh.
Definition at line 26 of file texture_manager.hh.