Share via


HolographicCameraPose.OverrideViewport(Rect, Rect) Method

Definition

Specifies an alternate viewport rectangle within the frame buffer that the app is rendering into this frame.

public:
 virtual void OverrideViewport(Rect leftViewport, Rect rightViewport) = OverrideViewport;
void OverrideViewport(Rect const& leftViewport, Rect const& rightViewport);
public void OverrideViewport(Rect leftViewport, Rect rightViewport);
function overrideViewport(leftViewport, rightViewport)
Public Sub OverrideViewport (leftViewport As Rect, rightViewport As Rect)

Parameters

leftViewport
Rect

The left eye viewport rectangle.

rightViewport
Rect

The right eye viewport rectangle.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

It is an error to call OverrideViewport on devices where CanOverrideViewport returns false, such as HoloLens.

Applies to