phoenix::PhTextureManager Class Reference

Texture manager. More...

#include <PhTextureManager.h>

List of all members.

Public Member Functions

 PhTextureManager ()
 Constructor.
 ~PhTextureManager ()
 Destructor.
void addTexture (PhTexture *texture)
 Add texture.
void removeTexture (PhTexture *texture)
 Remove texture.
void deleteTextures ()
 Delete textures.
PhTexturefindTexture (std::string n)
 Find texture.
PhTexturefindTexture (GLuint n)
 Find texture.

Protected Attributes

vector< PhTexture * > texturelist
 List of all the textures currently loaded.


Detailed Description

Texture manager.

This class takes care of cleaning up all textures after the program exits.

See also:
PhTexture, PhRenderSystem

Constructor & Destructor Documentation

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.


Member Function Documentation

void phoenix::PhTextureManager::addTexture ( PhTexture texture  ) 

Add texture.

Adds a texture to the list.

Parameters:
texture A pointer to the texture to be stored.
See also:
removeTexture()

void phoenix::PhTextureManager::removeTexture ( PhTexture texture  ) 

Remove texture.

Removes a texture to the list. Does not actually delete the texture.

Parameters:
texture A pointer to the texture to be stored.
See also:
addTexture()

void phoenix::PhTextureManager::deleteTextures (  ) 

Delete textures.

Deletes all the textures in the list.

PhTexture* phoenix::PhTextureManager::findTexture ( std::string  n  ) 

Find texture.

Parameters:
n The name of the texture you want to find.
Returns:
A pointer to the texture if found, else NULL.

PhTexture* phoenix::PhTextureManager::findTexture ( GLuint  n  ) 

Find texture.

Parameters:
n The GL id of the texture you want to find.
Returns:
A pointer to the texture if found, else NULL.


The documentation for this class was generated from the following file:
Generated on Tue Nov 20 21:59:25 2007 for Phoenix by  doxygen 1.5.4