#include <MaterialManager.h>
Inheritance diagram for CMaterialManager:
Public Member Functions | |
virtual CMaterial * | LoadResource (TiXmlNode *pDataNode, CString strFilename, UINT uiID=0, CString strName="") |
virtual CMaterial * | GetResource (int uiIndex, int uiID=-1, CString strName="", CString strFilename="") |
virtual CMaterial * | AddResource (CString strName, UINT uiID=0, eEntityType ResourceType=Entity_Default) |
int | RemoveResource (CMaterial *pMaterial) |
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 materials (either DirectX or OpenGL ones) It manages a collection of materials (although not pooled yet!) and allow to retrieve them by index, name, ID or filename.
Definition at line 14 of file MaterialManager.h.
|
Method details:
Reimplemented from CResourceManager. Definition at line 16 of file MaterialManager.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 245 of file MaterialManager.cpp. References CResourceManager::Destroy(). |
|
Method details:
Reimplemented from CResourceManager. Definition at line 189 of file MaterialManager.cpp. References CDoubleList< CXMLResource * >::at(), CDoubleList< CXMLResource * >::begin(), CXMLResource::GetFilename(), 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 250 of file MaterialManager.cpp. References CResourceManager::IsOfType(). |
|
Method details:
Implements CResourceManager. Definition at line 119 of file MaterialManager.cpp. References TiXmlElement::Attribute(), CEntity::GetID(), CEntity::GetName(), GetResource(), CMaterial::LoadXML(), TiXmlNode::pcValue(), CDoubleList< CXMLResource * >::push_back(), CEntity::SetID(), CEntity::SetName(), and TiXmlNode::ToElement(). Referenced by LoadXML(), CGUIElement::LoadXML(), and CBitmapFont::LoadXML(). |
|
Method details:
Reimplemented from CResourceManager. Definition at line 37 of file MaterialManager.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 MaterialManager.cpp. References CDoubleList< CXMLResource * >::begin(), TiXmlNode::InsertEndChild(), CDoubleList< CXMLResource * >::next(), TiXmlDocument::SaveFile(), CMaterial::SaveXML(), CDoubleList< CXMLResource * >::set_ptr(), and TiXmlNode::ToElement(). |