#include <Material.h>
Inheritance diagram for CMaterial:
Public Member Functions | |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual void | Bind ()=0 |
tRGBA & | GetAmbient () |
tRGBA & | GetDiffuse () |
tRGBA & | GetEmissive () |
tRGBA & | GetSpecular () |
float & | GetShininess () |
void | SetAmbient (tRGBA ambient) |
void | SetDiffuse (tRGBA diffuse) |
void | SetEmissive (tRGBA emissive) |
void | SetSpecular (tRGBA specular) |
void | SetShininess (float fShininess) |
virtual void | Destroy () |
virtual bool | IsOfType (eEntityType eType) |
Protected Attributes | |
tRGBA | m_Ambient |
tRGBA | m_Diffuse |
tRGBA | m_Emissive |
tRGBA | m_Specular |
float | m_fShininess |
This class provides means for 4 different material colors as well as loading/saving it in XML.
Definition at line 13 of file Material.h.
|
Method details: Binds this material as current one Implemented in COpenGLMaterial. Definition at line 185 of file Material.cpp. |
|
Method details: Clean-up Reimplemented from CXMLResource.
Reimplemented in COpenGLMaterial. Definition at line 190 of file Material.cpp. |
|
Method details:
References m_Ambient. Referenced by CGUIElement::Draw(), CBitmapFont::Draw(), and CGUIElement::GetProperties(). |
|
Method details:
References m_Diffuse. Referenced by CGUIElement::GetProperties(). |
|
Method details:
References m_Emissive. Referenced by CGUIElement::GetProperties(). |
|
Method details:
References m_fShininess. Referenced by CGUIElement::GetProperties(). |
|
Method details:
References m_Specular. Referenced by CGUIElement::GetProperties(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CXMLResource.
Reimplemented in COpenGLMaterial. Definition at line 195 of file Material.cpp. References CXMLResource::IsOfType(). |
|
Method details:
Reimplemented from CXMLResource.
Reimplemented in COpenGLMaterial. Definition at line 16 of file Material.cpp. References TiXmlElement::Attribute(), CXMLResource::LoadXML(), TiXmlNode::pcValue(), SetAmbient(), SetDiffuse(), SetEmissive(), SetShininess(), and SetSpecular(). Referenced by CMaterialManager::LoadResource(), and COpenGLMaterial::LoadXML(). |
|
Method details:
Reimplemented from CXMLResource.
Reimplemented in COpenGLMaterial. Definition at line 79 of file Material.cpp. References CEntity::GetName(), TiXmlNode::InsertEndChild(), m_Ambient, m_Diffuse, m_Emissive, m_fShininess, m_Specular, TiXmlDocument::SaveFile(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). Referenced by COpenGLMaterial::SaveXML(), and CMaterialManager::SaveXML(). |
|
Method details:
References m_Ambient. Referenced by LoadXML(). |
|
Method details:
References m_Diffuse. Referenced by LoadXML(). |
|
Method details:
References m_Emissive. Referenced by LoadXML(). |
|
Method details:
References m_fShininess. Referenced by LoadXML(). |
|
Method details:
References m_Specular. Referenced by LoadXML(). |
|
Ambient component Definition at line 104 of file Material.h. Referenced by GetAmbient(), SaveXML(), and SetAmbient(). |
|
Diffuse component Definition at line 104 of file Material.h. Referenced by GetDiffuse(), SaveXML(), and SetDiffuse(). |
|
Emissive component Definition at line 104 of file Material.h. Referenced by GetEmissive(), SaveXML(), and SetEmissive(). |
|
Shininess component Definition at line 109 of file Material.h. Referenced by GetShininess(), SaveXML(), and SetShininess(). |
|
Specular component Definition at line 104 of file Material.h. Referenced by GetSpecular(), SaveXML(), and SetSpecular(). |