iso::gl::TextureManager Class Reference

#include <iso_gl_texture_manager.h>

Collaboration diagram for iso::gl::TextureManager:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Created by Daniel Bisig on 12/4/07.


Constructor & Destructor Documentation

iso::gl::TextureManager::TextureManager (  )  [protected]

singleton instance variable default constructor

iso::gl::TextureManager::~TextureManager (  )  [protected]

destructor


Member Function Documentation

TextureManager & iso::gl::TextureManager::get (  )  [static]

retrieve singleton instance

Returns:
singleton instance

void iso::gl::TextureManager::destroy (  )  [static]

destroy singleton instance

GLenum iso::gl::TextureManager::textureTarget (  )  const

return texture target

Returns:
texture target

Texture * iso::gl::TextureManager::createTexture ( const math::Vector< unsigned int > &  pSize,
ColorType  pColorType,
DataType  pDataType 
) throw (GLException)

create texture

Parameters:
pSize texture size
pColorType texture color type
pDataType texture data type
Returns:
texture
Remarks:
fails if dimension of size vector is not either 1, 2 or 3

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

Parameters:
pSize texture size
pColorType texture color type
Returns:
texture
Remarks:
fails if dimension of size vector is not either 1, 2 or 3

BufferedTexture< float > * iso::gl::TextureManager::createBufferedTexture ( float *  pBufferData,
const math::Vector< unsigned int > &  pSize,
ColorType  pColorType 
) throw (GLException)

create buffered texture from buffer

Parameters:
pSize texture size
pColorType texture color type
Returns:
texture
Remarks:
fails if dimension of size vector is not either 1, 2 or 3


Member Data Documentation

TextureManager * iso::gl::TextureManager::sTextureManager [static, protected]

GLenum iso::gl::TextureManager::mTextureTarget [protected]


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:01:56 2011 for iso_gl by  doxygen 1.5.1