Meta_OpenXRViewport

An OpenXRViewport represents a viewport occupying a specified rectangle of a window (range 0 to 1) which renders the 3D scene using the projection and distortion calculated by the OpenXR SDK.

Public Types


enum IDX
Idx_Enabled

bool - When enabled, viewport is drawn to the screen

Idx_Rectangle

vec4f - The viewport bounds, scaled on the screen by the ViewportLayout size. (e.g. layout size 2.0, 1.0, and child viewport width 1.0 will fill half the screen with the viewport)

Idx_Camera

link - The camera from which the scene is rendered

Idx_ClipRange

vec2w - Specifies the default near and far clip planes for this viewport

Idx_MirrorFillWindow

bool - if true some of the image seen in the rift will be cropped when displayed in the main window.

Idx_MirrorSplitScreen

bool - if true then both eyes will be displayed in a split screen fashion

Idx_DrawMirror

bool - whether or not to draw the mirror viewport to the main window

Idx_UseVisibilityMask

Whether use the mask provided by the device to avoid drawing to invisible areas of the display.

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API