#include <PhTextureManager.h>
Public Member Functions | |
| PhTextureManager () | |
| Constructor. | |
| ~PhTextureManager () | |
| Destructor. | |
| void | addTexture (PhTexture *texture) |
| Add texture. | |
| void | removeTexture (PhTexture *texture) |
| Remove texture. | |
| void | deleteTextures () |
| Delete textures. | |
| PhTexture * | findTexture (std::string n) |
| Find texture. | |
| PhTexture * | findTexture (GLuint n) |
| Find texture. | |
Protected Attributes | |
| vector< PhTexture * > | texturelist |
| List of all the textures currently loaded. | |
This class takes care of cleaning up all textures after the program exits.
| phoenix::PhTextureManager::~PhTextureManager | ( | ) |
Destructor.
When this object is destroyed (It will be automatically destroyed when the render system is destroyed). It deletes all the textures.
| void phoenix::PhTextureManager::addTexture | ( | PhTexture * | texture | ) |
Add texture.
Adds a texture to the list.
| texture | A pointer to the texture to be stored. |
| void phoenix::PhTextureManager::removeTexture | ( | PhTexture * | texture | ) |
Remove texture.
Removes a texture to the list. Does not actually delete the texture.
| texture | A pointer to the texture to be stored. |
| void phoenix::PhTextureManager::deleteTextures | ( | ) |
Delete textures.
Deletes all the textures in the list.
| PhTexture* phoenix::PhTextureManager::findTexture | ( | std::string | n | ) |
Find texture.
| n | The name of the texture you want to find. |
| PhTexture* phoenix::PhTextureManager::findTexture | ( | GLuint | n | ) |
Find texture.
| n | The GL id of the texture you want to find. |
1.5.4