#include <awstex.h>
Public Methods | |
awsTextureManager () | |
empty constructor. | |
~awsTextureManager () | |
de-inits. | |
void | Initialize (iObjectRegistry *object_reg) |
Get's a reference to and iLoader. | |
iTextureHandle* | GetTexture (char *name, char *filename=NULL, bool replace=false) |
Get's a texture. More... | |
iTextureHandle* | GetTexturebyID (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. | |
iTextureManager* | GetTextureManager () |
Retrieves the texture manager that we are currently using. |
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.
|
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. |
|
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. |