Microsoft SDK for Java

setPlane

This method of the Direct3dRMViewport Class sets the dimensions of the viewport on the front clipping plane, relative to the camera's z-axis.

Syntax

public void setPlane(float left, float right, float bottom, float top);

Parameters

left The minimum x-coordinate of the four sides of the viewport.
right The maximum x-coordinate of the four sides of the viewport.
bottom The minimum y-coordinate of the four sides of the viewport.
top The maximum y-coordinate of the four sides of the viewport.

Remarks

Unlike the setField method, which specifies a centered proportional viewport, this method enables you to specify a viewport of arbitrary proportion and position. For example, this method could be used to construct a sheared viewing frustum to implement a right- or left-eye stereo view.

See Also

getPlane, setField

© 1999 Microsoft Corporation. All rights reserved. Terms of use.