Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
Stg::TextureManager Class Reference

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 More...
 

Static Public Member Functions

static TextureManagergetInstance (void)
 

Public Attributes

GLuint _mains_texture_id
 
GLuint _stall_texture_id
 

Private Member Functions

 TextureManager (void)
 

Detailed Description

Singleton for loading textures (not threadsafe)

Definition at line 18 of file texture_manager.hh.

Constructor & Destructor Documentation

◆ TextureManager()

Stg::TextureManager::TextureManager ( void  )
inlineprivate

Definition at line 20 of file texture_manager.hh.

Member Function Documentation

◆ getInstance()

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

Definition at line 27 of file texture_manager.hh.

◆ loadTexture()

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.

Member Data Documentation

◆ _mains_texture_id

GLuint Stg::TextureManager::_mains_texture_id

Definition at line 24 of file texture_manager.hh.

◆ _stall_texture_id

GLuint Stg::TextureManager::_stall_texture_id

Definition at line 23 of file texture_manager.hh.


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


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Feb 28 2022 23:48:56