GFXPCD3D9Device Class Reference#include <gfxPCD3D9Device.h>
Inheritance diagram for GFXPCD3D9Device:
[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 GFXDevice * | createInstance (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] |
| virtual void GFXPCD3D9Device::enumerateVideoModes |
( |
|
) |
[virtual] |
| virtual void GFXPCD3D9Device::enterDebugEvent |
( |
ColorI |
color, |
|
|
const char * |
name | |
|
) |
| | [virtual] |
| virtual void GFXPCD3D9Device::leaveDebugEvent |
( |
|
) |
[virtual] |
| virtual void GFXPCD3D9Device::setDebugMarker |
( |
ColorI |
color, |
|
|
const char * |
name | |
|
) |
| | [virtual] |
| virtual void GFXPCD3D9Device::copyBBToSfxBuff |
( |
|
) |
[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] |
| virtual D3DPRESENT_PARAMETERS GFXPCD3D9Device::setupPresentParams |
( |
const GFXVideoMode & |
mode, |
|
|
const HWND & |
hwnd | |
|
) |
| | const [virtual] |
| 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
|