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 TextureManagergetInstance (void)
 

Public Attributes

GLuint _mains_texture_id
 
GLuint _stall_texture_id
 

Detailed Description

Singleton for loading textures (not threadsafe)

Member Function Documentation

◆ getInstance()

static TextureManager & Stg::TextureManager::getInstance ( void )
inlinestatic

◆ loadTexture()

GLuint TextureManager::loadTexture ( const char * filename)

load a texture on the GPU, returned value is the texture ID, or 0 for failure

Member Data Documentation

◆ _mains_texture_id

GLuint Stg::TextureManager::_mains_texture_id

◆ _stall_texture_id

GLuint Stg::TextureManager::_stall_texture_id

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