Planeshift
Public Member Functions | Public Attributes

pawsTextureManager Class Reference

#include <pawstexturemanager.h>

List of all members.

Public Member Functions

bool AddImage (const char *resource)
void AddPawsImage (csRef< iPawsImage > &element)
csPtr< iPawsImageGetOrAddPawsImage (const char *name)
csPtr< iPawsImageGetPawsImage (const char *name)
bool LoadImageList (const char *listName)
 Loads an image list from xml.
 pawsTextureManager (iObjectRegistry *objectReg)
void Remove (const char *name)
 Remove a description from the list.
virtual ~pawsTextureManager ()

Public Attributes

csHash< csRef< iPawsImage >
, csString > 
elementList
iObjectRegistry * objectReg
csRef< iVFS > vfs
csRef< iDocumentSystem > xml

Detailed Description

Definition at line 61 of file pawstexturemanager.h.


Constructor & Destructor Documentation

pawsTextureManager::pawsTextureManager ( iObjectRegistry *  objectReg)
virtual pawsTextureManager::~pawsTextureManager ( ) [virtual]

Member Function Documentation

bool pawsTextureManager::AddImage ( const char *  resource)
void pawsTextureManager::AddPawsImage ( csRef< iPawsImage > &  element)
csPtr<iPawsImage> pawsTextureManager::GetOrAddPawsImage ( const char *  name)
csPtr<iPawsImage> pawsTextureManager::GetPawsImage ( const char *  name)
bool pawsTextureManager::LoadImageList ( const char *  listName)

Loads an image list from xml.

The format for an image is: <image file="/this/path/to/image.png" resource="commonName"> <texturerect x="0" y="0" width="32" height="32" /> <alpha level="128" /> <trans r="255" g="0" b="255" /> </image>

Parameters:
listNameThe VFS path to the list file.
Returns:
true if the list was loaded properly.
void pawsTextureManager::Remove ( const char *  name)

Remove a description from the list.

This removes an image from the list once we are totally finished with it. ie there will not be any more refs to it.

Parameters:
nameThe description to remove from the list.

Member Data Documentation

csHash<csRef<iPawsImage>, csString> pawsTextureManager::elementList

Definition at line 104 of file pawstexturemanager.h.

Definition at line 99 of file pawstexturemanager.h.

Definition at line 101 of file pawstexturemanager.h.

csRef<iDocumentSystem> pawsTextureManager::xml

Definition at line 102 of file pawstexturemanager.h.


The documentation for this class was generated from the following file: