Class OpenXRPlatform
OpenVR Service.
Inheritance
Inherited Members
Namespace: Evergine.OpenXR
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRPlatform : XRPlatform, IDependencyObject, IGetNativePointers
Constructors
OpenXRPlatform()
Initializes a new instance of the OpenXRPlatform class.
Declaration
public OpenXRPlatform()
OpenXRPlatform(string[], OpenXRInteractionProfile[])
Initializes a new instance of the OpenXRPlatform class.
Declaration
public OpenXRPlatform(string[] extensionsToEnable, OpenXRInteractionProfile[] interactionProfiles = null)
Parameters
Type | Name | Description |
---|---|---|
string[] | extensionsToEnable | An optional collection of OpenXR extensions to be enabled. |
OpenXRInteractionProfile[] | interactionProfiles | The interaction profile list. |
Fields
ApplicationName
The application name. This is used when an XRInstance is created.
Declaration
public string ApplicationName
Field Value
Type | Description |
---|---|
string |
Properties
Display
Gets the display provided by this XR device.
Declaration
public override Display Display { get; }
Property Value
Type | Description |
---|---|
Display |
Overrides
ExtensionsToEnable
Gets the extensions to be enabled when creating the xrInstance.
Declaration
public string[] ExtensionsToEnable { get; }
Property Value
Type | Description |
---|---|
string[] |
Remarks
This extension list is used only during the OnAttached process. If you want to add new extensions, you need to reattach this service.
EyeCount
Gets the number of eyes required by this device to view.
Declaration
public override int EyeCount { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
FormFactor
Gets or sets the supported XR-tracked display form factor.
Declaration
public FormFactor FormFactor { get; set; }
Property Value
Type | Description |
---|---|
FormFactor |
GraphicBackend
Gets the graphic backend integration.
Declaration
public OpenXRGraphicBackend GraphicBackend { get; }
Property Value
Type | Description |
---|---|
OpenXRGraphicBackend |
InputTracking
Gets the input tracking.
Declaration
public override XRInputTracking InputTracking { get; }
Property Value
Type | Description |
---|---|
XRInputTracking |
Overrides
Passthrough
Gets the pass-through manager.
Declaration
public override XRPassthrough Passthrough { get; }
Property Value
Type | Description |
---|---|
XRPassthrough |
Overrides
ReferenceSpace
Gets or sets the reference space for this XR application.
Declaration
public ReferenceSpaceType ReferenceSpace { get; set; }
Property Value
Type | Description |
---|---|
ReferenceSpaceType |
RenderableModels
Gets the renderable models.
Declaration
public override XRRenderableModels RenderableModels { get; }
Property Value
Type | Description |
---|---|
XRRenderableModels |
Overrides
UseSimultaneousHandsAndControllers
Gets or sets a value indicating whether the hands and controllers can be used simultaneously.
Declaration
public bool UseSimultaneousHandsAndControllers { get; set; }
Property Value
Type | Description |
---|---|
bool |
ViewConfiguration
Gets or sets the supported view configuration type.
Declaration
public ViewConfigurationType ViewConfiguration { get; set; }
Property Value
Type | Description |
---|---|
ViewConfigurationType |
Methods
InternalUpdate()
Updates the XR device and all properties.
Declaration
protected override void InternalUpdate()
Overrides
OnActivated()
Invoked when the object is activated once it is attached.
Declaration
protected override void OnActivated()
Overrides
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if everything is OK. |
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()
Overrides
OnLoaded()
Invoked when the object is loaded.
Declaration
protected override void OnLoaded()