tlp::GlTextureManager Class Reference#include <GlTextureManager.h>
Collaboration diagram for tlp::GlTextureManager:
[legend]List of all members.
Detailed Description
Class to manage textures Singleton class to load/store textures need by OpenGL rendering.
Public Member Functions
Static Public Member Functions
Member Function Documentation
bool tlp::GlTextureManager::activateTexture |
( |
const std::string & |
|
) |
|
|
|
Activate a texture with given name |
bool tlp::GlTextureManager::activateTexture |
( |
const std::string & |
, |
|
|
unsigned |
int |
|
) |
|
|
|
Activate a texture with given name |
void tlp::GlTextureManager::beginNewTexture |
( |
const std::string & |
|
) |
|
|
|
Begin a new texture with given name |
void tlp::GlTextureManager::changeContext |
( |
unsigned long |
context |
) |
|
|
|
Change the current OpenGl context (each OpenGl window have a different OpenGl context) |
void tlp::GlTextureManager::clearErrorVector |
( |
|
) |
[inline] |
|
|
Clear vector of textures with error |
static void tlp::GlTextureManager::createInst |
( |
|
) |
[static] |
|
|
Create the texture manager singleton |
void tlp::GlTextureManager::deleteTexture |
( |
const std::string & |
|
) |
|
|
|
Remove texture with given name |
void tlp::GlTextureManager::desactivateTexture |
( |
|
) |
|
|
|
Disable texture with given name |
unsigned int tlp::GlTextureManager::getAnimationFrame |
( |
|
) |
[inline] |
|
|
Get animationStep of next textures |
|
Return the texture manager singleton, il singleton doesn't exist this function create it |
GlTexture tlp::GlTextureManager::getTextureInfo |
( |
const std::string & |
|
) |
|
|
|
Return texture info (id, width and height) for the given name |
bool tlp::GlTextureManager::loadTexture |
( |
const std::string & |
|
) |
|
|
|
Load texture with given name |
bool tlp::GlTextureManager::loadTextureFromRawData |
( |
const std::string & |
textureName, |
|
|
int |
width, |
|
|
int |
height, |
|
|
bool |
hasAlpha, |
|
|
unsigned char * |
data |
|
) |
|
|
|
Load texture with textureName from Raw data |
void tlp::GlTextureManager::registerExternalTexture |
( |
const std::string & |
textureName, |
|
|
const GLuint |
textureId |
|
) |
|
|
void tlp::GlTextureManager::removeContext |
( |
unsigned long |
context |
) |
|
|
|
Remove all textures of an OpenGl context and remove this context |
void tlp::GlTextureManager::removeEntryOfErrorVector |
( |
const std::string & |
name |
) |
[inline] |
|
|
Remove an entry of vector of textures with error |
void tlp::GlTextureManager::setAnimationFrame |
( |
unsigned int |
id |
) |
[inline] |
|
|
Set animationStep for next textures (for next activateTexture) |
|
Change the error viewer and return the old one |
|