HolographicQuadLayerUpdateParameters.UpdateViewport(Rect) Method

Definition

Updates the viewport rectangle within the quad layer's texture that will be displayed to the screen.

public:
 virtual void UpdateViewport(Rect value) = UpdateViewport;
void UpdateViewport(Rect const& value);
public void UpdateViewport(Rect value);
function updateViewport(value)
Public Sub UpdateViewport (value As Rect)

Parameters

value
Rect

The viewport rectangle.

Remarks

By default, quad layers display the full contents of the texture buffer to fill the specified extents. If the app fills the buffer with a texture atlas, it can then specify a viewport to fill the quad layer with just a subset of the image.

For example, if the quad layer is used to display a reticle, the app can fill the texture buffer with one texture containing four reticle images. The app can then change just the viewport rectangle to select among those four images.

Applies to