#include <TextureManager.h>
Inheritance diagram for CTextureManager:
Public Member Functions | |
virtual CTexture * | LoadResource (TiXmlNode *pDataNode, CString strFilename, UINT uiID=0, CString strName="") |
virtual CTexture * | GetResource (int uiIndex, int uiID=-1, CString strName="", CString strFilename="") |
virtual CTexture * | AddResource (CString strName, UINT uiID=0, eEntityType ResourceType=Entity_Default) |
int | RemoveResource (CTexture *pTexture) |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual void | Destroy () |
virtual bool | IsOfType (eEntityType eType) |
This class provides means to managing various textures (either DirectX or OpenGL ones) It manages a collection of textures (although not pooled yet!) and allow to retrieve them by index, name, ID or filename.
Definition at line 14 of file TextureManager.h.
|
Method details:
Reimplemented from CResourceManager. Definition at line 16 of file TextureManager.cpp. References CDoubleList< CXMLResource * >::push_back(), CEntity::SetID(), and CEntity::SetName(). |
|
Method details: This is where clean-up occurs Reimplemented from CResourceManager. Definition at line 243 of file TextureManager.cpp. References CResourceManager::Destroy(). |
|
Method details:
Reimplemented from CResourceManager. Definition at line 187 of file TextureManager.cpp. References CDoubleList< CXMLResource * >::at(), CDoubleList< CXMLResource * >::begin(), CEntity::GetID(), CEntity::GetName(), CDoubleList< CXMLResource * >::next(), CDoubleList< CXMLResource * >::set_ptr(), and CDoubleList< CXMLResource * >::size(). Referenced by LoadResource(), and CGUIElement::PropertyChanging(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CResourceManager. Definition at line 248 of file TextureManager.cpp. References CResourceManager::IsOfType(). |
|
Method details:
Implements CResourceManager. Definition at line 119 of file TextureManager.cpp. References TiXmlElement::Attribute(), CEntity::GetID(), CEntity::GetName(), GetResource(), CTexture::LoadXML(), CDoubleList< CXMLResource * >::push_back(), CEntity::SetID(), CEntity::SetName(), and TiXmlNode::ToElement(). Referenced by LoadXML(), CTextureFrameAnimation::LoadXML(), CGUIElement::LoadXML(), and CBitmapFont::LoadXML(). |
|
Method details:
Reimplemented from CResourceManager. Definition at line 37 of file TextureManager.cpp. References TiXmlNode::FirstChild(), CEntity::GetID(), CEntity::GetName(), CSingleton< CGlobalLogger >::GetSingleton(), TiXmlNode::IterateChildren(), LoadResource(), CResourceManager::LoadXML(), TiXmlNode::pcValue(), and CLogger::Write(). |
|
Method details:
|
|
Method details:
Reimplemented from CResourceManager. Definition at line 80 of file TextureManager.cpp. References CDoubleList< CXMLResource * >::begin(), TiXmlNode::InsertEndChild(), CDoubleList< CXMLResource * >::next(), TiXmlDocument::SaveFile(), CTexture::SaveXML(), CDoubleList< CXMLResource * >::set_ptr(), and TiXmlNode::ToElement(). |