#include <dx9_wrap.h>
Public Member Functions | |
| Device (HWND hWnd, bool bFullScreen) | |
| Create device object and tie it to given Window handle. | |
| void | BeginScene () |
| Call this before rendering the scene. | |
| void | EndScene () |
| Call this after you have rendered the whole scene. | |
| void | Clear (DWORD flags=D3DCLEAR_TARGET|D3DCLEAR_ZBUFFER, D3DCOLOR color=D3DCOLOR_XRGB(0x9F, 0x9F, 0x9F), float zvalue=1.0f, DWORD stencil=0, const D3DRECT *pRects=NULL) |
| Call this to clear screen before rendering the scene. | |
| void | Present () |
| Call this after EndScene() to swap internal buffer and window contents, essentially presenting drawn frame on the screen to the user. | |
| void | SetFVF (DWORD fvf) |
| The legacy "SetFVF()" call. | |
| void | DrawPrimitive (D3DPRIMITIVETYPE type, UINT StartVertex, UINT PrimitiveCount) |
| Call this to draw set of triangles. | |
| void | DrawIndexedPrimitive (D3DPRIMITIVETYPE type, INT BaseVertex, UINT MinIndex, UINT NumVertices, UINT StartIndex, UINT PrimitiveCount) |
| Call this to draw set of indexed triangles. | |
| void | SetRenderState (D3DRENDERSTATETYPE state, DWORD value) |
| Set D3D render state. | |
| void | SetVertexShaderConstantF (UINT StartRegister, CONST FLOAT *pConstantData, UINT Vector4fCount) |
| Set vertex shader constant (parameter) register(s) from the FLOAT bank of constants. | |
| void | SetVertexShaderConstantI (UINT StartRegister, CONST INT *pConstantData, UINT Vector4iCount) |
| Set vertex shader constant (parameter) register(s) from the INT bank of constants. | |
| void | SetVertexShaderConstantB (UINT StartRegister, CONST BOOL *pConstantData, UINT Vector4bCount) |
| Set vertex shader constant (parameter) register(s) from the BOOL bank of constants. | |
| void | SetPixelShaderConstantF (UINT StartRegister, CONST FLOAT *pConstantData, UINT Vector4fCount) |
| Set pixel shader constant (parameter) register(s) from the FLOAT bank of constants. | |
| void | SetPixelShaderConstantI (UINT StartRegister, CONST INT *pConstantData, UINT Vector4iCount) |
| Set pixel shader constant (parameter) register(s) from the INT bank of constants. | |
| void | SetPixelShaderConstantB (UINT StartRegister, CONST BOOL *pConstantData, UINT Vector4bCount) |
| Set pixel shader constant (parameter) register(s) from the BOOL bank of constants. | |
|
||||||||||||
|
Create device object and tie it to given Window handle. Specify bFullScreen=true if you wish the window to expand to full screen.
|
|
|
Call this before rendering the scene.
|
|
|
Call this after you have rendered the whole scene.
|
|
||||||||||||||||||||||||
|
Call this to clear screen before rendering the scene.
|
|
|
Call this after EndScene() to swap internal buffer and window contents, essentially presenting drawn frame on the screen to the user.
|
|
|
The legacy "SetFVF()" call.
|
|
||||||||||||||||
|
Call this to draw set of triangles.
|
|
||||||||||||||||||||||||||||
|
Call this to draw set of indexed triangles.
|
|
||||||||||||
|
Set D3D render state.
|
|
||||||||||||||||
|
Set vertex shader constant (parameter) register(s) from the FLOAT bank of constants.
|
|
||||||||||||||||
|
Set vertex shader constant (parameter) register(s) from the INT bank of constants.
|
|
||||||||||||||||
|
Set vertex shader constant (parameter) register(s) from the BOOL bank of constants.
|
|
||||||||||||||||
|
Set pixel shader constant (parameter) register(s) from the FLOAT bank of constants.
|
|
||||||||||||||||
|
Set pixel shader constant (parameter) register(s) from the INT bank of constants.
|
|
||||||||||||||||
|
Set pixel shader constant (parameter) register(s) from the BOOL bank of constants.
|
1.3.6