TextureManager Class Reference

#include <TextureManager.h>

List of all members.

Public Member Functions

 TextureManager (void)
 ~TextureManager (void)
void loadTexture (const char *imageFile)
void loadTextures (std::vector< std::string > imageFiles)
unsigned int getRandomTextureName ()
std::vector< unsigned int > getTextureNames ()
unsigned int getTextureName (unsigned int index)
bool isMipMapping ()
void setMipMapping (bool value)
bool isLinearFiltering ()
void setLinearFiltering (bool value)
bool isTexCompression ()
void setTexCompression (bool value)
bool isTexCompressionARB ()
void setTexCompressionARB (bool value)


Detailed Description

This class manages a set of textures loaded from image files. It holds a list of OpenGL texture names that can be used for loading and applying the textures.

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
August 7, 2007


Constructor & Destructor Documentation

TextureManager::TextureManager ( void   ) 

Constructs a texture manager.

TextureManager::~TextureManager ( void   ) 

Destroys this texture manager.


Member Function Documentation

void TextureManager::loadTexture ( const char *  imageFile  ) 

Loads as texture the given image file.

Parameters:
imageFile the path to the image file to be loaded.

void TextureManager::loadTextures ( std::vector< std::string >  imageFiles  ) 

Loads as textures the given image files.

Parameters:
imageFiles the list of the paths to the image files to be loaded.

unsigned int TextureManager::getRandomTextureName (  ) 

Returns a texture name randomly chosen from the ones currently in the list.

Returns:
a texture name randomly chosen from the ones currently in the list.

std::vector< unsigned int > TextureManager::getTextureNames (  ) 

Returns the list of texture names available.

Returns:
the list of texture names available.

unsigned int TextureManager::getTextureName ( unsigned int  index  ) 

Returns the texture name in the given index postion in the list.

Returns:
the texture name in the given index postion in the list.

bool TextureManager::isMipMapping (  ) 

Returns true if mip-mapping is set when loading textures.

Returns:
true if mip-mapping is set when loading textures, false otherwise.

void TextureManager::setMipMapping ( bool  value  ) 

Sets the use of mip-mapping.

Parameters:
value if true mip-mapping is used when loading textures.

bool TextureManager::isLinearFiltering (  ) 

Returns true if linear filtering is set when loading textures.

Returns:
true if linear filtering is set when loading textures, false otherwise.

void TextureManager::setLinearFiltering ( bool  value  ) 

Sets the use of linear filtering.

Parameters:
value if true linear filtering is used when loading textures.

bool TextureManager::isTexCompression (  ) 

Returns true if texture compression is set when loading textures.

Returns:
true if texture compression is set when loading textures, false otherwise.

void TextureManager::setTexCompression ( bool  value  ) 

Sets the use of texture compression.

Parameters:
value if true texture compression is used when loading textures.

bool TextureManager::isTexCompressionARB (  ) 

Returns true if ARB texture compression is set when loading textures.

Returns:
true if ARB texture compression is set when loading textures, false otherwise.

void TextureManager::setTexCompressionARB ( bool  value  ) 

Sets the use of ARB texture compression.

Parameters:
value if true ARB texture compression is used when loading textures.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:09 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2