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

CGXDeviceContainer Class Reference

#include <GXDeviceContainer.h>

List of all members.

Public Methods

 CGXDeviceContainer ()
virtual ~CGXDeviceContainer ()
virtual bool Init (SGXDeviceOptions *pOptions, void(*pErrorCallback)(char *))
virtual void Cleanup ()
virtual bool GetCaps (SGXCaps *pOut)
virtual bool ToggleWindowSize (bool bFullScreen, UINT uWidth, UINT uHeight)
virtual bool GXDrawText (char *szText, D3DXVECTOR2 *pStartPos, D3DCOLOR Color)
virtual bool BeginDrawSprites ()
virtual bool EndDrawSprites ()
virtual bool DrawSprite (IDirect3DTexture8 *pTexture, D3DXVECTOR2 *pUpperLeft, D3DXVECTOR2 *pSize, D3DXVECTOR2 *pRotationCenter, float fRotation, DWORD dwColor)
virtual bool InitCache ()
virtual bool Reset ()
HRESULT TestCooperativeLevel ()
HRESULT D3DXCreateTextureFromFileEx (LPCTSTR pSrcFile, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, DWORD Filter, DWORD MipFilter, D3DCOLOR ColorKey, D3DXIMAGE_INFO *pSrcInfo, PALETTEENTRY *pPalette, LPDIRECT3DTEXTURE8 *ppTexture)
HRESULT SetStreamSource (UINT StreamNumber, IDirect3DVertexBuffer8 *pStreamData, UINT Stride)
HRESULT SetIndices (IDirect3DIndexBuffer8 *pIndexData, UINT BaseVertexIndex)
HRESULT DrawIndexedPrimitive (D3DPRIMITIVETYPE Type, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount)
HRESULT CreateVertexBuffer (UINT Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer8 **ppVertexBuffer)
HRESULT CreateIndexBuffer (UINT Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer8 **ppIndexBuffer)
HRESULT CreateVertexShader (CONST DWORD *pDeclaration, CONST DWORD *pFunction, DWORD *pHandle, DWORD Usage)
HRESULT SetVertexShader (DWORD Handle)
HRESULT DeleteVertexShader (DWORD Handle)
HRESULT D3DXCreateTexture (UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, LPDIRECT3DTEXTURE8 *ppTexture)
HRESULT SetVertexShaderConstant (DWORD Register, CONST void *pConstantData, DWORD ConstantCount)
HRESULT SetTexture (DWORD Stage, IDirect3DBaseTexture8 *pTexture)
HRESULT GetCreationParameters (D3DDEVICE_CREATION_PARAMETERS *pParameters)
HRESULT SetTextureStageState (DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value)
HRESULT CloneMeshFVF (DWORD Options, DWORD FVF, ID3DXBaseMesh *pMesh, LPD3DXMESH *ppCloneMesh)
HRESULT D3DXCreateMeshFVF (DWORD NumFaces, DWORD NumVertices, DWORD Options, DWORD FVF, LPD3DXMESH *ppMesh)
HRESULT D3DXCreatePMeshFromStream (IStream *pStream, DWORD Options, LPD3DXBUFFER *ppMaterials, DWORD *pNumMaterials, LPD3DXPMESH *ppPMesh)
ULONG Release (void)
ULONG AddRef (void)
HRESULT D3DXCreateSphere (FLOAT Radius, UINT Slices, UINT Stacks, LPD3DXMESH *ppMesh, LPD3DXBUFFER *ppAdjacency)
HRESULT SetClipPlane (DWORD Index, CONST float *pPlane)
HRESULT Present (CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
HRESULT BeginScene ()
HRESULT EndScene ()
HRESULT Clear (DWORD Count, CONST D3DRECT *pRects, DWORD Flags, D3DCOLOR Color, float Z, DWORD Stencil)
HRESULT GetBackBuffer (UINT BackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface8 **ppBackBuffer)
HRESULT GetDepthStencilSurface (IDirect3DSurface8 **ppZStencilSurface)
HRESULT SetRenderTarget (IDirect3DSurface8 *pRenderTarget, IDirect3DSurface8 *pNewZStencil)
HRESULT GetRenderState (D3DRENDERSTATETYPE State, DWORD *pValue)
HRESULT SetRenderState (D3DRENDERSTATETYPE State, DWORD Value)
HRESULT SetTransform (D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX *pMatrix)
void DisplayStats (bool bDisplay)

Protected Methods

virtual bool DrawStats ()
virtual bool GXCreateFontAndSprite ()
virtual bool CreateDevice (D3DFORMAT BBFormat, D3DFORMAT DepthFormat, SGXDeviceOptions *pOptions)
virtual bool ShouldGoSWVP ()
virtual bool IsDepthBBCombinationSupported (D3DFORMAT BBFormat, D3DFORMAT DepthFormat, bool bFullScreen)

Protected Attributes

IDirect3D8 * m_pD3D
IDirect3DDevice8 * m_pDevice
ID3DXFont * m_pFont
ID3DXSprite * m_pSprite
IDirect3DBaseTexture8 * m_rgpTextureCache [TEXTURE_CACHE_SIZE]
IDirect3DVertexBuffer8 * m_pVBCache
IDirect3DIndexBuffer8 * m_pIBCache
D3DPRESENT_PARAMETERS m_PresentParams
bool m_bDisplayStats
UINT m_uTrianglesDrawn
UINT m_uFrame
UINT m_uLastTickCount
UINT m_uFPS


Constructor & Destructor Documentation

CGXDeviceContainer::CGXDeviceContainer  
 

CGXDeviceContainer::~CGXDeviceContainer   [virtual]
 


Member Function Documentation

ULONG CGXDeviceContainer::AddRef void   
 

bool CGXDeviceContainer::BeginDrawSprites   [virtual]
 

HRESULT CGXDeviceContainer::BeginScene  
 

void CGXDeviceContainer::Cleanup   [virtual]
 

HRESULT CGXDeviceContainer::Clear DWORD    Count,
CONST D3DRECT *    pRects,
DWORD    Flags,
D3DCOLOR    Color,
float    Z,
DWORD    Stencil
 

HRESULT CGXDeviceContainer::CloneMeshFVF DWORD    Options,
DWORD    FVF,
ID3DXBaseMesh *    pMesh,
LPD3DXMESH *    ppCloneMesh
 

bool CGXDeviceContainer::CreateDevice D3DFORMAT    BBFormat,
D3DFORMAT    DepthFormat,
SGXDeviceOptions   pOptions
[protected, virtual]
 

HRESULT CGXDeviceContainer::CreateIndexBuffer UINT    Length,
DWORD    Usage,
D3DFORMAT    Format,
D3DPOOL    Pool,
IDirect3DIndexBuffer8 **    ppIndexBuffer
 

HRESULT CGXDeviceContainer::CreateVertexBuffer UINT    Length,
DWORD    Usage,
DWORD    FVF,
D3DPOOL    Pool,
IDirect3DVertexBuffer8 **    ppVertexBuffer
 

HRESULT CGXDeviceContainer::CreateVertexShader CONST DWORD *    pDeclaration,
CONST DWORD *    pFunction,
DWORD *    pHandle,
DWORD    Usage
 

HRESULT CGXDeviceContainer::D3DXCreateMeshFVF DWORD    NumFaces,
DWORD    NumVertices,
DWORD    Options,
DWORD    FVF,
LPD3DXMESH *    ppMesh
 

HRESULT CGXDeviceContainer::D3DXCreatePMeshFromStream IStream *    pStream,
DWORD    Options,
LPD3DXBUFFER *    ppMaterials,
DWORD *    pNumMaterials,
LPD3DXPMESH *    ppPMesh
 

HRESULT CGXDeviceContainer::D3DXCreateSphere FLOAT    Radius,
UINT    Slices,
UINT    Stacks,
LPD3DXMESH *    ppMesh,
LPD3DXBUFFER *    ppAdjacency
 

HRESULT CGXDeviceContainer::D3DXCreateTexture UINT    Width,
UINT    Height,
UINT    MipLevels,
DWORD    Usage,
D3DFORMAT    Format,
D3DPOOL    Pool,
LPDIRECT3DTEXTURE8 *    ppTexture
 

HRESULT CGXDeviceContainer::D3DXCreateTextureFromFileEx LPCTSTR    pSrcFile,
UINT    Width,
UINT    Height,
UINT    MipLevels,
DWORD    Usage,
D3DFORMAT    Format,
D3DPOOL    Pool,
DWORD    Filter,
DWORD    MipFilter,
D3DCOLOR    ColorKey,
D3DXIMAGE_INFO *    pSrcInfo,
PALETTEENTRY *    pPalette,
LPDIRECT3DTEXTURE8 *    ppTexture
 

HRESULT CGXDeviceContainer::DeleteVertexShader DWORD    Handle
 

void CGXDeviceContainer::DisplayStats bool    bDisplay [inline]
 

HRESULT CGXDeviceContainer::DrawIndexedPrimitive D3DPRIMITIVETYPE    Type,
UINT    MinIndex,
UINT    NumVertices,
UINT    StartIndex,
UINT    PrimitiveCount
 

bool CGXDeviceContainer::DrawSprite IDirect3DTexture8 *    pTexture,
D3DXVECTOR2 *    pUpperLeft,
D3DXVECTOR2 *    pSize,
D3DXVECTOR2 *    pRotationCenter,
float    fRotation,
DWORD    dwColor
[virtual]
 

bool CGXDeviceContainer::DrawStats   [protected, virtual]
 

bool CGXDeviceContainer::EndDrawSprites   [virtual]
 

HRESULT CGXDeviceContainer::EndScene  
 

bool CGXDeviceContainer::GXCreateFontAndSprite   [protected, virtual]
 

bool CGXDeviceContainer::GXDrawText char *    szText,
D3DXVECTOR2 *    pStartPos,
D3DCOLOR    Color
[virtual]
 

HRESULT CGXDeviceContainer::GetBackBuffer UINT    BackBuffer,
D3DBACKBUFFER_TYPE    Type,
IDirect3DSurface8 **    ppBackBuffer
 

bool CGXDeviceContainer::GetCaps SGXCaps   pOut [virtual]
 

HRESULT CGXDeviceContainer::GetCreationParameters D3DDEVICE_CREATION_PARAMETERS *    pParameters
 

HRESULT CGXDeviceContainer::GetDepthStencilSurface IDirect3DSurface8 **    ppZStencilSurface
 

HRESULT CGXDeviceContainer::GetRenderState D3DRENDERSTATETYPE    State,
DWORD *    pValue
 

bool CGXDeviceContainer::Init SGXDeviceOptions   pOptions,
void(*    pErrorCallBack)(char *)
[virtual]
 

bool CGXDeviceContainer::InitCache   [virtual]
 

bool CGXDeviceContainer::IsDepthBBCombinationSupported D3DFORMAT    BBFormat,
D3DFORMAT    DepthFormat,
bool    bFullScreen
[protected, virtual]
 

HRESULT CGXDeviceContainer::Present CONST RECT *    pSourceRect,
CONST RECT *    pDestRect,
HWND    hDestWindowOverride,
CONST RGNDATA *    pDirtyRegion
 

ULONG CGXDeviceContainer::Release void   
 

bool CGXDeviceContainer::Reset   [virtual]
 

HRESULT CGXDeviceContainer::SetClipPlane DWORD    Index,
CONST float *    pPlane
 

HRESULT CGXDeviceContainer::SetIndices IDirect3DIndexBuffer8 *    pIndexData,
UINT    BaseVertexIndex
 

HRESULT CGXDeviceContainer::SetRenderState D3DRENDERSTATETYPE    State,
DWORD    Value
 

HRESULT CGXDeviceContainer::SetRenderTarget IDirect3DSurface8 *    pRenderTarget,
IDirect3DSurface8 *    pNewZStencil
 

HRESULT CGXDeviceContainer::SetStreamSource UINT    StreamNumber,
IDirect3DVertexBuffer8 *    pStreamData,
UINT    Stride
 

HRESULT CGXDeviceContainer::SetTexture DWORD    Stage,
IDirect3DBaseTexture8 *    pTexture
 

HRESULT CGXDeviceContainer::SetTextureStageState DWORD    Stage,
D3DTEXTURESTAGESTATETYPE    Type,
DWORD    Value
 

HRESULT CGXDeviceContainer::SetTransform D3DTRANSFORMSTATETYPE    State,
CONST D3DMATRIX *    pMatrix
 

HRESULT CGXDeviceContainer::SetVertexShader DWORD    Handle
 

HRESULT CGXDeviceContainer::SetVertexShaderConstant DWORD    Register,
CONST void *    pConstantData,
DWORD    ConstantCount
 

bool CGXDeviceContainer::ShouldGoSWVP   [protected, virtual]
 

HRESULT CGXDeviceContainer::TestCooperativeLevel  
 

bool CGXDeviceContainer::ToggleWindowSize bool    bFullScreen,
UINT    uWidth,
UINT    uHeight
[virtual]
 


Member Data Documentation

D3DPRESENT_PARAMETERS CGXDeviceContainer::m_PresentParams [protected]
 

bool CGXDeviceContainer::m_bDisplayStats [protected]
 

IDirect3D8* CGXDeviceContainer::m_pD3D [protected]
 

IDirect3DDevice8* CGXDeviceContainer::m_pDevice [protected]
 

ID3DXFont* CGXDeviceContainer::m_pFont [protected]
 

IDirect3DIndexBuffer8* CGXDeviceContainer::m_pIBCache [protected]
 

ID3DXSprite* CGXDeviceContainer::m_pSprite [protected]
 

IDirect3DVertexBuffer8* CGXDeviceContainer::m_pVBCache [protected]
 

IDirect3DBaseTexture8* CGXDeviceContainer::m_rgpTextureCache[TEXTURE_CACHE_SIZE] [protected]
 

UINT CGXDeviceContainer::m_uFPS [protected]
 

UINT CGXDeviceContainer::m_uFrame [protected]
 

UINT CGXDeviceContainer::m_uLastTickCount [protected]
 

UINT CGXDeviceContainer::m_uTrianglesDrawn [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