Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CGXModel Class Reference

#include <GXModel.h>

List of all members.

Public Methods

 CGXModel ()
virtual ~CGXModel ()
virtual bool AddAnimation (CGXKeyframeTemplate< SGXAnimationKeyFrame > *pAnimations)
virtual bool LoadFromStream (CGXDeviceContainer *pDevice, IStream *pStream)
virtual bool LoadFromData (CGXDeviceContainer *pDevice, GXVertex *pVerts, UINT *pIndices, DWORD dwVertCount, DWORD dwIndexCount, char **ppTextureNames, UINT uBoneCount, CGXBone *pBones, float fDesiredSize)
virtual bool WriteToStream (IStream *pStream)
virtual bool LoadFromD3DXMesh (ID3DXMesh *pMesh, float fDesiredSize)
virtual bool DrawPrimitive (SRenderCall &RenderInfo, UINT uVertexStream, UINT uTextureStream, UINT uStartBoneConstant, D3DXMATRIX *pViewProj, UINT uViewProjIndex, D3DXMATRIX *pOptionalWorldMat=NULL)
virtual UINT GetVertexCount ()
virtual UINT GetIndexCount ()
virtual UINT GetFaceCount ()
virtual UINT GetBoneCount ()
virtual UINT GetAnimationCount ()
IDirect3DTexture8 * GetTexture (UINT uIndex)
bool ReadyToRender ()
float GetDiffuseFactor ()
float GetSpecularCooef ()
void SetDiffuseFactor (float fFactor)
void SetSpecularCooef (float fNewCooef)

Protected Methods

virtual void Cleanup ()
virtual DWORD GetOptions (CGXDeviceContainer *pDevice)

Protected Attributes

ID3DXPMesh * m_pMesh
CGXDeviceContainer * m_pDevice
CGXSkeleton m_Skeleton
IDirect3DTexture8 * m_rgpTextures [TEXTURE_MAP_COUNT]
float m_fBoundingSphereRadius
float m_fDiffuseFactor
float m_fSpecularCooef


Constructor & Destructor Documentation

CGXModel::CGXModel (    ) 
 

CGXModel::~CGXModel (    )  [virtual]
 


Member Function Documentation

bool CGXModel::AddAnimation (  CGXKeyframeTemplate< SGXAnimationKeyFrame > *    pAnimations )  [virtual]
 

void CGXModel::Cleanup (    )  [protected, virtual]
 

bool CGXModel::DrawPrimitive (  SRenderCall &    RenderInfo,
UINT    uVertexStream,
UINT    uTextureStream,
UINT    uStartBoneConstant,
D3DXMATRIX *    pViewProj,
UINT    uViewProjIndex,
D3DXMATRIX *    pOptionalWorldMat = NULL
)  [virtual]
 

UINT CGXModel::GetAnimationCount (    )  [virtual]
 

UINT CGXModel::GetBoneCount (    )  [virtual]
 

float CGXModel::GetDiffuseFactor (    )  [inline]
 

UINT CGXModel::GetFaceCount (    )  [virtual]
 

UINT CGXModel::GetIndexCount (    )  [virtual]
 

DWORD CGXModel::GetOptions (  CGXDeviceContainer *    pDevice )  [protected, virtual]
 

float CGXModel::GetSpecularCooef (    )  [inline]
 

IDirect3DTexture8* CGXModel::GetTexture (  UINT    uIndex )  [inline]
 

UINT CGXModel::GetVertexCount (    )  [virtual]
 

bool CGXModel::LoadFromD3DXMesh (  ID3DXMesh *    pMesh,
float    fDesiredSize
)  [virtual]
 

bool CGXModel::LoadFromData (  CGXDeviceContainer *    pDevice,
GXVertex *    pVerts,
UINT *    pIndices,
DWORD    dwVertCount,
DWORD    dwIndexCount,
char **    ppTextureNames,
UINT    uBoneCount,
CGXBone *    pBones,
float    fDesiredSize
)  [virtual]
 

bool CGXModel::LoadFromStream (  CGXDeviceContainer *    pDevice,
IStream *    pStream
)  [virtual]
 

bool CGXModel::ReadyToRender (    )  [inline]
 

void CGXModel::SetDiffuseFactor (  float    fFactor )  [inline]
 

void CGXModel::SetSpecularCooef (  float    fNewCooef )  [inline]
 

bool CGXModel::WriteToStream (  IStream *    pStream )  [virtual]
 


Member Data Documentation

CGXSkeleton CGXModel::m_Skeleton [protected]
 

float CGXModel::m_fBoundingSphereRadius [protected]
 

float CGXModel::m_fDiffuseFactor [protected]
 

float CGXModel::m_fSpecularCooef [protected]
 

CGXDeviceContainer* CGXModel::m_pDevice [protected]
 

ID3DXPMesh* CGXModel::m_pMesh [protected]
 

IDirect3DTexture8* CGXModel::m_rgpTextures[TEXTURE_MAP_COUNT] [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu May 23 17:51:01 2002 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001