IDirect3DRMViewport::SetCamera

HRESULT SetCamera(LPDIRECT3DRMFRAME lpCamera);

Sets a camera for a viewport.

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

lpCamera

Address of a variable that represents the Direct3DRMFrame object that represents the camera.

This method sets a viewport's position, direction, and orientation to that of the given camera frame. The view is oriented along the positive z-axis of the camera frame, with the up direction being in the direction of the positive y-axis.