IDirect3DRMViewport::Init

HRESULT Init(LPDIRECT3DRMDEVICE lpD3DRMDevice,

LPDIRECT3DRMFRAME lpD3DRMFrameCamera, DWORD xpos, DWORD ypos,

DWORD width, DWORD height);

Initializes a Direct3DRMViewport object.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

lpD3DRMDevice

Address of the DirectD3DRMDevice object associated with this viewport.

lpD3DRMFrameCamera

Address of the camera frame associated with this viewport.

xpos and ypos

The x- and y-coordinates of the upper-left corner of the viewport.

width and height

Width and height of the viewport.