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 optiona collection of OpenXR extensions to be enabled. |
OpenXRInteractionProfile[] | interactionProfiles | The interaction profile list. |
Fields
ApplicationName
The aplication name. This is used when a 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 create the xrInstance.
Declaration
public string[] ExtensionsToEnable { get; }
Property Value
Type | Description |
---|---|
string[] |
Remarks
This extension list is used only during OnAttached process. If you want to add new extensions, you need to reattach this service.
EyeCount
Gets the number of eyes needed by this device to draw.
Declaration
public override int EyeCount { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
FormFactor
Gets or sets the XR tracked display form factor supported.
Declaration
public FormFactor FormFactor { get; set; }
Property Value
Type | Description |
---|---|
FormFactor |
GraphicBackend
Gets the grpahic 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 passthrough 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
ViewConfiguration
Gets or sets the supported view configuration type.
Declaration
public ViewConfigurationType ViewConfiguration { get; set; }
Property Value
Type | Description |
---|---|
ViewConfigurationType |
Methods
InternalUpdate()
Update the XR device and all properties.
Declaration
protected override void InternalUpdate()
Overrides
OnActivated()
Invoked when the object is activated once 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 all 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()