#include <iso_gl_texture_manager.h>
Collaboration diagram for iso::gl::TextureManager:
Public Member Functions | |
GLenum | textureTarget () const |
return texture target | |
Texture * | createTexture (const math::Vector< unsigned int > &pSize, ColorType pColorType, DataType pDataType) throw (GLException) |
create texture | |
BufferedTexture< unsigned char > * | createBufferedTexture (unsigned char *pBufferData, const math::Vector< unsigned int > &pSize, ColorType pColorType) throw (GLException) |
create buffered texture from buffer | |
BufferedTexture< float > * | createBufferedTexture (float *pBufferData, const math::Vector< unsigned int > &pSize, ColorType pColorType) throw (GLException) |
create buffered texture from buffer | |
Static Public Member Functions | |
static TextureManager & | get () |
retrieve singleton instance | |
static void | destroy () |
destroy singleton instance | |
Protected Member Functions | |
TextureManager () | |
singleton instance variable default constructor | |
~TextureManager () | |
destructor | |
Protected Attributes | |
GLenum | mTextureTarget |
Static Protected Attributes | |
static TextureManager * | sTextureManager |
iso::gl::TextureManager::TextureManager | ( | ) | [protected] |
singleton instance variable default constructor
iso::gl::TextureManager::~TextureManager | ( | ) | [protected] |
destructor
TextureManager & iso::gl::TextureManager::get | ( | ) | [static] |
retrieve singleton instance
void iso::gl::TextureManager::destroy | ( | ) | [static] |
destroy singleton instance
GLenum iso::gl::TextureManager::textureTarget | ( | ) | const |
return texture target
Texture * iso::gl::TextureManager::createTexture | ( | const math::Vector< unsigned int > & | pSize, | |
ColorType | pColorType, | |||
DataType | pDataType | |||
) | throw (GLException) |
create texture
pSize | texture size | |
pColorType | texture color type | |
pDataType | texture data type |
BufferedTexture< unsigned char > * iso::gl::TextureManager::createBufferedTexture | ( | unsigned char * | pBufferData, | |
const math::Vector< unsigned int > & | pSize, | |||
ColorType | pColorType | |||
) | throw (GLException) |
create buffered texture from buffer
pSize | texture size | |
pColorType | texture color type |
BufferedTexture< float > * iso::gl::TextureManager::createBufferedTexture | ( | float * | pBufferData, | |
const math::Vector< unsigned int > & | pSize, | |||
ColorType | pColorType | |||
) | throw (GLException) |
create buffered texture from buffer
pSize | texture size | |
pColorType | texture color type |
TextureManager * iso::gl::TextureManager::sTextureManager [static, protected] |
GLenum iso::gl::TextureManager::mTextureTarget [protected] |