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

COpenGLTexture Class Reference

OpenGL Specific Texture class. More...

#include <OpenGLTexture.h>

Inheritance diagram for COpenGLTexture:

CTexture CXMLResource CResource CEntity List of all members.

Protected Member Functions

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

Detailed Description

OpenGL Specific Texture class.

This class is a texture-derived one that provides itself for use ONLY with OpenGL.

Definition at line 18 of file OpenGLTexture.h.


Member Function Documentation

void COpenGLTexture::Bind (   )  [protected, virtual]
 

Method details: Sets this texture as a current one

Reimplemented from CTexture.

Definition at line 31 of file OpenGLTexture.cpp.

UINT COpenGLTexture::Create (   )  [protected, virtual]
 

Method details:

Returns:
1 if created succesfully, 0 otherwise

Reimplemented from CTexture.

Definition at line 67 of file OpenGLTexture.cpp.

References CTexture::GetDepth(), CTexture::GetHeight(), CTexture::GetWidth(), and CTexture::IsMasked().

Referenced by LoadXML().

void COpenGLTexture::Destroy (   )  [protected, virtual]
 

Method details: Clean-up

Reimplemented from CTexture.

Definition at line 136 of file OpenGLTexture.cpp.

References CTexture::Destroy().

bool COpenGLTexture::IsOfType (  eEntityType  eType  )  [protected, virtual]
 

Method details: This is an implementation of Custom RTTI

Reimplemented from CTexture.

Definition at line 141 of file OpenGLTexture.cpp.

References CTexture::IsOfType().

int COpenGLTexture::LoadXML (  TiXmlNode *  pDataNode,
CString  strFilename
)  [protected, virtual]
 

Method details:

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

Reimplemented from CTexture.

Definition at line 50 of file OpenGLTexture.cpp.

References Create(), and CTexture::LoadXML().

void COpenGLTexture::Release (   )  [protected, virtual]
 

Method details: Releases the texture

Reimplemented from CTexture.

Definition at line 23 of file OpenGLTexture.cpp.

int COpenGLTexture::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 texture
strFilename - String containing filename where the data for the texture is stored

Reimplemented from CTexture.

Definition at line 62 of file OpenGLTexture.cpp.

References CTexture::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