Class OpenXRFBPassthrough
OpenXR implementation of the passthrough feature.
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 supports color.
Declaration
public override bool IsColorSupported { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsSurfaceMeshSupported
Gets a value indicating whether the device supports passthrough projected meshes.
Declaration
public override bool IsSurfaceMeshSupported { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
CreatePassthroughLayer()
Creates a new passthrough layer.
Declaration
public override XRPassthroughLayer CreatePassthroughLayer()
Returns
Type | Description |
---|---|
XRPassthroughLayer | The passthrough layer instance. |
Overrides
CreateSurfaceMesh(Mesh, Matrix4x4)
Creates a Mesh for 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 with respect to the tracking space. |
Returns
Type | Description |
---|---|
XRPassthroughSurfaceMesh | True if the mesh has been successfully added. |
Overrides
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
Initialize()
Initializes the Passthrough.
Declaration
public override void Initialize()
Overrides
PausePassthrough()
Pauses the passthrough of all layers.
Declaration
public override void PausePassthrough()
Overrides
StartPassthrough()
Resumes the passthrough of all layers.
Declaration
public override void StartPassthrough()
Overrides
Update(long)
Updates the passthrough.
Declaration
public override void Update(long predictedDisplayTime)
Parameters
Type | Name | Description |
---|---|---|
long | predictedDisplayTime | The predicted display time. |