Class OpenXRFBPassthrough
OpenXR implementation of passthrough.
Inherited Members
Namespace: Evergine.OpenXR.Passthrough.FB
Assembly: Evergine.OpenXR.dll
Syntax
public class OpenXRFBPassthrough : OpenXRPassthrough
Properties
IsColorSupported
Gets a value indicating whether the passthrough support color.
Declaration
public override bool IsColorSupported { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsSurfaceMeshSupported
Gets a value indicating whether the device supports pasthrough projected meshes.
Declaration
public override bool IsSurfaceMeshSupported { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
CreatePassthroughLayer()
Create a new passthrough layer.
Declaration
public override XRPassthroughLayer CreatePassthroughLayer()
Returns
Type | Description |
---|---|
XRPassthroughLayer | The passthrough layer instance. |
Overrides
CreateSurfaceMesh(Mesh, Matrix4x4)
Create a Mesh to the Insight Passthrough projection surface.
Declaration
public override XRPassthroughSurfaceMesh CreateSurfaceMesh(Mesh surfaceMesh, Matrix4x4 worldToTrackingSpace)
Parameters
Type | Name | Description |
---|---|---|
Mesh | surfaceMesh | The mesh. |
Matrix4x4 | worldToTrackingSpace | Transform of the mesh respect the tracking space. |
Returns
Type | Description |
---|---|
XRPassthroughSurfaceMesh | True if the mesh has been suscessfully added. |
Overrides
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
Initialize()
Initialize the Passthrough.
Declaration
public override void Initialize()
Overrides
PausePassthrough()
Pause the passthrough of all layers.
Declaration
public override void PausePassthrough()
Overrides
StartPassthrough()
Resume the passthrough of all layers.
Declaration
public override void StartPassthrough()
Overrides
Update(long)
Update the passthrough.
Declaration
public override void Update(long predictedDisplayTime)
Parameters
Type | Name | Description |
---|---|---|
long | predictedDisplayTime | The predicted display time. |