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

CGXLand Class Reference

#include <GXLand.h>

List of all members.

Public Methods

 CGXLand ()
virtual ~CGXLand ()
bool Init (CGXDeviceContainer *pDevice, UINT uSideSize, void(*pFn)(GXVertex *, void *), void *pCustomData)
void OnDeviceLost ()
bool OnReset (CGXDeviceContainer *pDevice)
UINT GetSideSize ()
UINT GetVertNumFromIndex (UINT uIndex)
GXVertex * GetVertexPtr ()
unsigned short * GetIndexPtr ()
bool LockBuffers (IDirect3DVertexBuffer8 **ppVBOut, IDirect3DIndexBuffer8 **ppIBOut)
void UnlockBuffers ()
DWORD GetIndexFormat ()
bool GenerateVertices (D3DXVECTOR3 *pCameraPos, float fSideSize)
UINT GetIndexCount ()
UINT GetVertexCount ()

Protected Methods

void Cleanup ()
bool CreateBuffers (CGXDeviceContainer *pDevice)
UINT GetIndex (const UINT x, const UINT z)
bool GenerateIndices ()
bool GenerateNormals ()

Protected Attributes

CGXSquare< GXVertex > m_Vertices
CGXAutoArray< GXINDEX_TYPE > m_Indices
IDirect3DVertexBuffer8 * m_pVB
IDirect3DIndexBuffer8 * m_pIB
void(* m_pLandFunction )(GXVertex *, void *)
void * m_pCustomData
CGXMutex m_Mutex


Constructor & Destructor Documentation

CGXLand::CGXLand (    ) 
 

CGXLand::~CGXLand (    )  [virtual]
 


Member Function Documentation

void CGXLand::Cleanup (    )  [protected]
 

bool CGXLand::CreateBuffers (  CGXDeviceContainer *    pDevice )  [protected]
 

bool CGXLand::GenerateIndices (    )  [protected]
 

bool CGXLand::GenerateNormals (    )  [protected]
 

bool CGXLand::GenerateVertices (  D3DXVECTOR3 *    pCameraPos,
float    fSideSize
) 
 

UINT CGXLand::GetIndex (  const UINT    x,
const UINT    z
)  [inline, protected]
 

UINT CGXLand::GetIndexCount (    )  [inline]
 

DWORD CGXLand::GetIndexFormat (    )  [inline]
 

unsigned short* CGXLand::GetIndexPtr (    )  [inline]
 

UINT CGXLand::GetSideSize (    )  [inline]
 

UINT CGXLand::GetVertNumFromIndex (  UINT    uIndex ) 
 

UINT CGXLand::GetVertexCount (    )  [inline]
 

GXVertex* CGXLand::GetVertexPtr (    )  [inline]
 

bool CGXLand::Init (  CGXDeviceContainer *    pDevice,
UINT    uSideSize,
void(*    pFn)(GXVertex *, void *),
void *    pCustomData
) 
 

bool CGXLand::LockBuffers (  IDirect3DVertexBuffer8 **    ppVBOut,
IDirect3DIndexBuffer8 **    ppIBOut
) 
 

void CGXLand::OnDeviceLost (    ) 
 

bool CGXLand::OnReset (  CGXDeviceContainer *    pDevice ) 
 

void CGXLand::UnlockBuffers (    ) 
 


Member Data Documentation

CGXAutoArray<GXINDEX_TYPE> CGXLand::m_Indices [protected]
 

CGXMutex CGXLand::m_Mutex [protected]
 

CGXSquare<GXVertex> CGXLand::m_Vertices [protected]
 

void* CGXLand::m_pCustomData [protected]
 

IDirect3DIndexBuffer8* CGXLand::m_pIB [protected]
 

void(* CGXLand::m_pLandFunction)(GXVertex*, void*) [protected]
 

IDirect3DVertexBuffer8* CGXLand::m_pVB [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