Main Page   Class Hierarchy   Compound List   File List   Compound Members  

awsTextureManager Class Reference

This class embeds a normal texture manager, and keeps track of all the textures currently in use by the windowing system. More...

#include <awstex.h>

List of all members.

Public Methods

 awsTextureManager ()
 empty constructor.

 ~awsTextureManager ()
 de-inits.

void Initialize (iObjectRegistry *object_reg)
 Get's a reference to and iLoader.

iTextureHandleGetTexture (char *name, char *filename=NULL, bool replace=false)
 Get's a texture. More...

iTextureHandleGetTexturebyID (unsigned long id, char *filename=NULL, bool replace=false)
 Get's a texture. More...

void SetTextureManager (iTextureManager *txtmgr)
 Changes the texture manager: unregisters all current textures, and then re-registers them with the new manager.

iTextureManagerGetTextureManager ()
 Retrieves the texture manager that we are currently using.


Detailed Description

This class embeds a normal texture manager, and keeps track of all the textures currently in use by the windowing system.

This includes bitmaps for buttons, etc. When the skin changes, it unloads all the skin textures currently being used. Then it is ready to demand-load new ones.


Member Function Documentation

iTextureHandle * awsTextureManager::GetTexture ( char * name,
char * filename = NULL,
bool replace = false )
 

Get's a texture.

If the texture is already cached, it returns the cached texture. If the texture has not been cached, and a filename is specified, the file is loaded. If the file cannot be found, or no file was specified, NULL is returned.

iTextureHandle * awsTextureManager::GetTexturebyID ( unsigned long id,
char * filename = NULL,
bool replace = false )
 

Get's a texture.

If the texture is already cached, it returns the cached texture. If the texture has not been cached, and a filename is specified, the file is loaded. If the file cannot be found, or no file was specified, NULL is returned. This variety uses the id directly, in case you have it. Mostly used internally by AWSPrefManager.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000