Torque3D Documentation / _generateds / GFXPCD3D9Device

GFXPCD3D9Device

Engine/source/gfx/D3D9/pc/gfxPCD3D9Device.h

More...

Private Types

Public Static Attributes

Public Functions

GFXPCD3D9Device(LPDIRECT3D9 d3d, U32 index)

Allocate a target for doing render to texture operations, with no depth/stencil buffer.

Allocate a target for a given window.

enterDebugEvent(ColorI color, const char * name)

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

State initialization.

reset(D3DPRESENT_PARAMETERS & d3dpp)

Reset.

selectSupportedFormat(GFXTextureProfile * profile, const Vector< GFXFormat > & formats, bool texture, bool mustblend, bool mustfilter)

Returns the first format from the list which meets all the criteria of the texture profile and query options.

setDebugMarker(ColorI color, const char * name)

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

D3DPRESENT_PARAMETERS

Device helper function.

Public Static Functions

createInstance(U32 adapterIndex)

Protected Static Functions

createDirect3D9(LPDIRECT3D9 & d3d9, LPDIRECT3D9EX & d3d9ex)

Protected Functions

_setTextureStageState(U32 stage, U32 state, U32 value)
_validateMultisampleParams(D3DFORMAT format, D3DMULTISAMPLE_TYPE & aatype, DWORD & aalevel)
createDevice(U32 adapter, D3DDEVTYPE deviceType, HWND hFocusWindow, DWORD behaviorFlags, D3DPRESENT_PARAMETERS * pPresentationParameters)

Detailed Description

Private Types

typedef GFXD3D9Device Parent 

Public Static Attributes

bool mEnableNVPerfHUD 

Protected Attributes

VideoFrameGrabberD3D9 * mVideoFrameGrabber 

Protected Static Attributes

GFXAdapter::CreateDeviceInstanceDelegate mCreateDeviceInstance 

Public Functions

GFXPCD3D9Device(LPDIRECT3D9 d3d, U32 index)

~GFXPCD3D9Device()

allocRenderToTextureTarget()

Reimplemented from: GFXDevice

allocWindowTarget(PlatformWindow * window)

Reimplemented from: GFXDevice

beginSceneInternal()

Reimplemented from: GFXD3D9Device

enterDebugEvent(ColorI color, const char * name)

Reimplemented from: GFXDevice

enumerateVideoModes()

Reimplemented from: GFXDevice

init(const GFXVideoMode & mode, PlatformWindow * window)

Reimplemented from: GFXD3D9Device

initStates()

Reimplemented from: GFXD3D9Device

leaveDebugEvent()

Reimplemented from: GFXDevice

reset(D3DPRESENT_PARAMETERS & d3dpp)

Reimplemented from: GFXD3D9Device

selectSupportedFormat(GFXTextureProfile * profile, const Vector< GFXFormat > & formats, bool texture, bool mustblend, bool mustfilter)

Reimplemented from: GFXDevice

setDebugMarker(ColorI color, const char * name)

Reimplemented from: GFXDevice

setMatrix(GFXMatrixType mtype, const MatrixF & mat)

Reimplemented from: GFXDevice

setupPresentParams(const GFXVideoMode & mode, const HWND & hwnd)

Reimplemented from: GFXD3D9Device

Public Static Functions

createInstance(U32 adapterIndex)

enumerateAdapters(Vector< GFXAdapter * > & adapterList)

Protected Static Functions

createDirect3D9(LPDIRECT3D9 & d3d9, LPDIRECT3D9EX & d3d9ex)

Protected Functions

_setTextureStageState(U32 stage, U32 state, U32 value)

_validateMultisampleParams(D3DFORMAT format, D3DMULTISAMPLE_TYPE & aatype, DWORD & aalevel)

createDevice(U32 adapter, D3DDEVTYPE deviceType, HWND hFocusWindow, DWORD behaviorFlags, D3DPRESENT_PARAMETERS * pPresentationParameters)