#include <TextureManager.h>
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) |
TextureManager::TextureManager | ( | void | ) |
Constructs a texture manager.
TextureManager::~TextureManager | ( | void | ) |
Destroys this texture manager.
void TextureManager::loadTexture | ( | const char * | imageFile | ) |
Loads as texture the given image file.
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.
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.
std::vector< unsigned int > TextureManager::getTextureNames | ( | ) |
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.
bool TextureManager::isMipMapping | ( | ) |
Returns true if mip-mapping is set when loading textures.
void TextureManager::setMipMapping | ( | bool | value | ) |
Sets the use of mip-mapping.
value | if true mip-mapping is used when loading textures. |
bool TextureManager::isLinearFiltering | ( | ) |
Returns true if linear filtering is set when loading textures.
void TextureManager::setLinearFiltering | ( | bool | value | ) |
Sets the use of linear filtering.
value | if true linear filtering is used when loading textures. |
bool TextureManager::isTexCompression | ( | ) |
Returns true if texture compression is set when loading textures.
void TextureManager::setTexCompression | ( | bool | value | ) |
Sets the use of texture compression.
value | if true texture compression is used when loading textures. |
bool TextureManager::isTexCompressionARB | ( | ) |
Returns true if ARB texture compression is set when loading textures.
void TextureManager::setTexCompressionARB | ( | bool | value | ) |
Sets the use of ARB texture compression.
value | if true ARB texture compression is used when loading textures. |