IDirect3DRMViewport::SetFront

Sets the position of the front clipping plane for a viewport.

HRESULT SetFront(
D3DVALUE rvFront
);

Parameters

rvFront

Distance from the camera to the front clipping plane.

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 default position is 1.0. If the value passed is less than or equal to zero, this method returns the D3DRMERR_BADVALUE error.

This method is also used to add a front clipping plane position key to a Direct3DRMViewportInterpolator object.

See Also

IDirect3DRMViewport::GetFront, Viewing Frustum