GFXPCD3D9Device Class Reference

#include <gfxPCD3D9Device.h>

Inheritance diagram for GFXPCD3D9Device:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFXPCD3D9Device (LPDIRECT3D9 d3d, U32 index)
virtual GFXFormat selectSupportedFormat (GFXTextureProfile *profile, const Vector< GFXFormat > &formats, bool texture, bool mustblend)
virtual void enumerateVideoModes ()
virtual void init (const GFXVideoMode &mode, PlatformWindow *window=NULL)
 Initialize this GFXDevice, optionally specifying a platform window to bind to.
virtual void enterDebugEvent (ColorI color, const char *name)
virtual void leaveDebugEvent ()
virtual void setDebugMarker (ColorI color, const char *name)
virtual void copyBBToSfxBuff ()
virtual void setMatrix (GFXMatrixType mtype, const MatrixF &mat)
 This function must be implemented differently per API and it should set ONLY the current matrix.
virtual void initStates ()
 State initialization.
virtual void reset (D3DPRESENT_PARAMETERS &d3dpp)
 Reset.
virtual D3DPRESENT_PARAMETERS setupPresentParams (const GFXVideoMode &mode, const HWND &hwnd) const
 Device helper function.

Static Public Member Functions

static GFXDevicecreateInstance (U32 adapterIndex)
static void enumerateAdapters (Vector< GFXAdapter * > &adapterList)

Static Public Attributes

static bool mEnableNVPerfHUD

Protected Member Functions

virtual void _setTextureStageState (U32 stage, U32 state, U32 value)
void _validateMultisampleParams (D3DFORMAT format, D3DMULTISAMPLE_TYPE &aatype, DWORD &aalevel) const

Static Protected Attributes

static GFXAdapter::CreateDeviceInstanceDelegate mCreateDeviceInstance

Constructor & Destructor Documentation

GFXPCD3D9Device::GFXPCD3D9Device ( LPDIRECT3D9  d3d,
U32  index 
) [inline]


Member Function Documentation

static GFXDevice* GFXPCD3D9Device::createInstance ( U32  adapterIndex  )  [static]

Reimplemented from GFXD3D9Device.

virtual GFXFormat GFXPCD3D9Device::selectSupportedFormat ( GFXTextureProfile profile,
const Vector< GFXFormat > &  formats,
bool  texture,
bool  mustblend 
) [virtual]

Implements GFXDevice.

static void GFXPCD3D9Device::enumerateAdapters ( Vector< GFXAdapter * > &  adapterList  )  [static]

virtual void GFXPCD3D9Device::enumerateVideoModes (  )  [virtual]

Implements GFXDevice.

virtual void GFXPCD3D9Device::init ( const GFXVideoMode mode,
PlatformWindow window = NULL 
) [virtual]

Initialize this GFXDevice, optionally specifying a platform window to bind to.

Implements GFXD3D9Device.

virtual void GFXPCD3D9Device::enterDebugEvent ( ColorI  color,
const char *  name 
) [virtual]

Implements GFXDevice.

virtual void GFXPCD3D9Device::leaveDebugEvent (  )  [virtual]

Implements GFXDevice.

virtual void GFXPCD3D9Device::setDebugMarker ( ColorI  color,
const char *  name 
) [virtual]

Implements GFXDevice.

virtual void GFXPCD3D9Device::copyBBToSfxBuff (  )  [virtual]

Implements GFXDevice.

virtual void GFXPCD3D9Device::setMatrix ( GFXMatrixType  mtype,
const MatrixF mat 
) [virtual]

This function must be implemented differently per API and it should set ONLY the current matrix.

For example, in OpenGL, there should be NO matrix stack activity, all the stack stuff is managed in the GFX layer.

OpenGL does not have separate world and view matrices. It has ModelView which is world * view. You must take this into consideration.

Parameters:
mtype Which matrix to set, world/view/projection
mat Matrix to assign

Implements GFXDevice.

virtual void GFXPCD3D9Device::initStates (  )  [virtual]

State initialization.

This MUST BE CALLED in setVideoMode after the device is created.

Implements GFXD3D9Device.

virtual void GFXPCD3D9Device::reset ( D3DPRESENT_PARAMETERS &  d3dpp  )  [virtual]

Reset.

Implements GFXD3D9Device.

virtual D3DPRESENT_PARAMETERS GFXPCD3D9Device::setupPresentParams ( const GFXVideoMode mode,
const HWND &  hwnd 
) const [virtual]

Device helper function.

Implements GFXD3D9Device.

virtual void GFXPCD3D9Device::_setTextureStageState ( U32  stage,
U32  state,
U32  value 
) [protected, virtual]

void GFXPCD3D9Device::_validateMultisampleParams ( D3DFORMAT  format,
D3DMULTISAMPLE_TYPE &  aatype,
DWORD aalevel 
) const [protected]


Member Data Documentation