IDirect3DRMDevice2::GetDirect3DDevice2
Retrieves a pointer to an IDirect3DDevice2 Immediate-Mode device.
HRESULT GetDirect3DDevice2(
LPDIRECT3DDEVICE2 * lplpD3DDevice
);
Parameters
lplpD3DDevice
Address of a pointer that is initialized with a pointer to an IDirect3DDevice2 Immediate-Mode device object.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
Remarks
The IDirect3DDevice2 device will support the DrawPrimitive interface and execute buffers, and is required for progressive meshes and for alpha blending and sorting of transparent objects.