Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

COpenGLMaterial Class Reference

OpenGL Specific Material class. More...

#include <OpenGLMaterial.h>

Inheritance diagram for COpenGLMaterial:

CMaterial CXMLResource CResource CEntity List of all members.

Protected Member Functions

virtual int LoadXML (TiXmlNode *pDataNode, CString strFilename)
virtual int SaveXML (TiXmlNode *pDataNode, CString strFilename)
virtual void Bind ()
void Destroy ()
virtual bool IsOfType (eEntityType eType)

Detailed Description

OpenGL Specific Material class.

This class provides means for 4 different material colors as well as loading/saving it in XML for use with OpenGL.

Definition at line 12 of file OpenGLMaterial.h.


Member Function Documentation

void COpenGLMaterial::Bind  )  [protected, virtual]
 

Method details: Binds this material as current one

Implements CMaterial.

Definition at line 24 of file OpenGLMaterial.cpp.

void COpenGLMaterial::Destroy  )  [protected, virtual]
 

Method details: Clean-up

Reimplemented from CMaterial.

Definition at line 35 of file OpenGLMaterial.cpp.

bool COpenGLMaterial::IsOfType eEntityType  eType  )  [protected, virtual]
 

Method details: This is an implementation of Custom RTTI

Reimplemented from CMaterial.

Definition at line 40 of file OpenGLMaterial.cpp.

References CXMLResource::IsOfType().

int COpenGLMaterial::LoadXML TiXmlNode pDataNode,
CString  strFilename
[protected, virtual]
 

Method details:

Parameters:
pDataNode - Pointer to XML Node that holds data for the material
strFilename - String containing filename where the data for the material is stored

Reimplemented from CMaterial.

Definition at line 14 of file OpenGLMaterial.cpp.

References CMaterial::LoadXML().

int COpenGLMaterial::SaveXML TiXmlNode pDataNode,
CString  strFilename
[protected, virtual]
 

Method details:

Parameters:
pDataNode - Pointer to XML Node that will be the parent hold the data for this material
strFilename - String containing filename where the data for the material is stored

Reimplemented from CMaterial.

Definition at line 19 of file OpenGLMaterial.cpp.

References CMaterial::SaveXML().


The documentation for this class was generated from the following files:
Generated on Sun Jul 17 21:34:30 2005 for OpenGL GUI by doxygen 1.3.8