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

CGXGraphicsEngine Class Reference

#include <GXGraphicsEngine.h>

List of all members.

Public Methods

 CGXGraphicsEngine ()
 ~CGXGraphicsEngine ()
bool Cleanup ()
bool Init (UINT uWindowWidth, UINT uWindowHeight, UINT uBBWidth, UINT uBBHeight, bool bFullScreen, HWND hWnd, HINSTANCE hInstance)
bool SetCameraPos (CGXVector< 3 > *pPos)
bool GetCameraPos (CGXVector< 3 > *pPos)
bool MoveCamera (GXMOVEDIR Direction, float fAmt)
void SetCameraVelocity (const float fAmt)
float GetCameraVelocity () const
void RotateCamera (const float fX, const float fY)
void GetCameraDirection (CGXVector< 3 > *pOut)
bool ToggleWindowConfig (bool bFullScreen, UINT uWidth, UINT uHeight)
UINT GetTime ()
bool SetTime (UINT uNewTime)
bool IncrementTime ()
bool LoadLand (char *szFileName)
bool SaveLand (char *szFileName)
bool GenerateLand (const UINT uRandSeed, char *szColorSpline)
bool ToggleWireFrame ()
int PrecacheModel (char *szFileName)
int CreateEntity (UINT uModel)
bool DeleteEntity (UINT uEntityID)
bool GetEntityWaypoint (UINT uID, SGXEntityWaypoints *pOut)
bool SetEntityWaypoint (UINT uID, SGXEntityWaypoints *pIn)
bool GetEntityPosition (UINT uID, CGXVector< 3 > *pOut)
int PrecacheSprite (char *szFileName)
int AddSpriteInstance (SGXSpriteInfo *pInfo)
bool DeleteSpriteInstance (UINT uIndex)
bool GetSpriteInfo (UINT uIndex, SGXSpriteInfo *pOut)
bool SetSpriteInfo (UINT uIndex, SGXSpriteInfo *pIn)
bool RenderStuff ()
bool ShouldThreadExit ()
HANDLE GetThreadDeathEvent ()
bool WakeUpThread ()
HANDLE GetWorkerThreadHandle ()
HWND GetHWND ()
bool ValidateWindow ()
void DisplayStats (bool bStats)

Protected Methods

bool OnDeviceLost ()
bool KillWorkerThread ()
bool CreateWorkerThread ()
bool SetupMatrices ()
bool CheckForLostDevice ()
bool SetRenderStates ()

Protected Attributes

CGXDeviceContainer m_Device
CGXLandRenderer m_LandRenderer
CGXSky m_Sky
CGXMutex m_RenderMutex
CGXFirstPersonMovement m_Mover
CGXModelManager m_ModelManager
CGXEntityList m_EntityList
CGXSpriteManager m_SpriteManager
HANDLE m_hWorkerThread
HANDLE m_hThreadHasDiedEvent
bool m_bShouldThreadExit
UINT m_uCurrentTime
D3DXMATRIX m_mViewMatrix
D3DXMATRIX m_mProjectionMatrix
bool m_bReadyToRender
HWND m_hWnd
float m_fCameraVelocity
RECT m_WindowRect


Constructor & Destructor Documentation

CGXGraphicsEngine::CGXGraphicsEngine  
 

CGXGraphicsEngine::~CGXGraphicsEngine  
 


Member Function Documentation

int CGXGraphicsEngine::AddSpriteInstance SGXSpriteInfo   pInfo [inline]
 

bool CGXGraphicsEngine::CheckForLostDevice   [protected]
 

bool CGXGraphicsEngine::Cleanup  
 

int CGXGraphicsEngine::CreateEntity UINT    uModel
 

bool CGXGraphicsEngine::CreateWorkerThread   [protected]
 

bool CGXGraphicsEngine::DeleteEntity UINT    uEntityID
 

bool CGXGraphicsEngine::DeleteSpriteInstance UINT    uIndex [inline]
 

void CGXGraphicsEngine::DisplayStats bool    bStats
 

bool CGXGraphicsEngine::GenerateLand const UINT    uRandSeed,
char *    szColorSpline
 

void CGXGraphicsEngine::GetCameraDirection CGXVector< 3 > *    pOut [inline]
 

bool CGXGraphicsEngine::GetCameraPos CGXVector< 3 > *    pPos
 

float CGXGraphicsEngine::GetCameraVelocity   const [inline]
 

bool CGXGraphicsEngine::GetEntityPosition UINT    uID,
CGXVector< 3 > *    pOut
 

bool CGXGraphicsEngine::GetEntityWaypoint UINT    uID,
SGXEntityWaypoints   pOut
 

HWND CGXGraphicsEngine::GetHWND   [inline]
 

bool CGXGraphicsEngine::GetSpriteInfo UINT    uIndex,
SGXSpriteInfo   pOut
[inline]
 

HANDLE CGXGraphicsEngine::GetThreadDeathEvent  
 

UINT CGXGraphicsEngine::GetTime   [inline]
 

HANDLE CGXGraphicsEngine::GetWorkerThreadHandle   [inline]
 

bool CGXGraphicsEngine::IncrementTime  
 

bool CGXGraphicsEngine::Init UINT    uWindowWidth,
UINT    uWindowHeight,
UINT    uBBWidth,
UINT    uBBHeight,
bool    bFullScreen,
HWND    hWnd,
HINSTANCE    hInstance
 

bool CGXGraphicsEngine::KillWorkerThread   [protected]
 

bool CGXGraphicsEngine::LoadLand char *    szFileName
 

bool CGXGraphicsEngine::MoveCamera GXMOVEDIR    Direction,
float    fAmt
 

bool CGXGraphicsEngine::OnDeviceLost   [protected]
 

int CGXGraphicsEngine::PrecacheModel char *    szFileName
 

int CGXGraphicsEngine::PrecacheSprite char *    szFileName [inline]
 

bool CGXGraphicsEngine::RenderStuff  
 

void CGXGraphicsEngine::RotateCamera const float    fX,
const float    fY
[inline]
 

bool CGXGraphicsEngine::SaveLand char *    szFileName
 

bool CGXGraphicsEngine::SetCameraPos CGXVector< 3 > *    pPos
 

void CGXGraphicsEngine::SetCameraVelocity const float    fAmt [inline]
 

bool CGXGraphicsEngine::SetEntityWaypoint UINT    uID,
SGXEntityWaypoints   pIn
 

bool CGXGraphicsEngine::SetRenderStates   [protected]
 

bool CGXGraphicsEngine::SetSpriteInfo UINT    uIndex,
SGXSpriteInfo   pIn
[inline]
 

bool CGXGraphicsEngine::SetTime UINT    uNewTime
 

bool CGXGraphicsEngine::SetupMatrices   [protected]
 

bool CGXGraphicsEngine::ShouldThreadExit  
 

bool CGXGraphicsEngine::ToggleWindowConfig bool    bFullScreen,
UINT    uWidth,
UINT    uHeight
 

bool CGXGraphicsEngine::ToggleWireFrame  
 

bool CGXGraphicsEngine::ValidateWindow  
 

bool CGXGraphicsEngine::WakeUpThread  
 


Member Data Documentation

CGXDeviceContainer CGXGraphicsEngine::m_Device [protected]
 

CGXEntityList CGXGraphicsEngine::m_EntityList [protected]
 

CGXLandRenderer CGXGraphicsEngine::m_LandRenderer [protected]
 

CGXModelManager CGXGraphicsEngine::m_ModelManager [protected]
 

CGXFirstPersonMovement CGXGraphicsEngine::m_Mover [protected]
 

CGXMutex CGXGraphicsEngine::m_RenderMutex [protected]
 

CGXSky CGXGraphicsEngine::m_Sky [protected]
 

CGXSpriteManager CGXGraphicsEngine::m_SpriteManager [protected]
 

RECT CGXGraphicsEngine::m_WindowRect [protected]
 

bool CGXGraphicsEngine::m_bReadyToRender [protected]
 

bool CGXGraphicsEngine::m_bShouldThreadExit [protected]
 

float CGXGraphicsEngine::m_fCameraVelocity [protected]
 

HANDLE CGXGraphicsEngine::m_hThreadHasDiedEvent [protected]
 

HWND CGXGraphicsEngine::m_hWnd [protected]
 

HANDLE CGXGraphicsEngine::m_hWorkerThread [protected]
 

D3DXMATRIX CGXGraphicsEngine::m_mProjectionMatrix [protected]
 

D3DXMATRIX CGXGraphicsEngine::m_mViewMatrix [protected]
 

UINT CGXGraphicsEngine::m_uCurrentTime [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