Plasma Engine  2.0
Loading...
Searching...
No Matches
plXRSpatialAnchorsInterface Class Referenceabstract

XR spatial anchors interface. More...

#include <XRSpatialAnchorsInterface.h>

Inheritance diagram for plXRSpatialAnchorsInterface:

Public Member Functions

virtual plXRSpatialAnchorID CreateAnchor (const plTransform &globalTransform)=0
 Creates a spatial anchor at the given world space position. Returns an invalid handle if anchors can't be created right now. Retry next frame.
 
virtual plResult DestroyAnchor (plXRSpatialAnchorID id)=0
 Destroys a previously created anchor.
 
virtual plResult TryGetAnchorTransform (plXRSpatialAnchorID id, plTransform &out_globalTransform)=0
 Tries to resolve the anchor position. Can fail of the anchor is invalid or tracking is currently lost.
 

Detailed Description

XR spatial anchors interface.

Aquire interface via plSingletonRegistry::GetSingletonInstance<plXRSpatialAnchorsInterface>().

Member Function Documentation

◆ CreateAnchor()

virtual plXRSpatialAnchorID plXRSpatialAnchorsInterface::CreateAnchor ( const plTransform & globalTransform)
pure virtual

Creates a spatial anchor at the given world space position. Returns an invalid handle if anchors can't be created right now. Retry next frame.

Implemented in plOpenXRSpatialAnchors.

◆ DestroyAnchor()

virtual plResult plXRSpatialAnchorsInterface::DestroyAnchor ( plXRSpatialAnchorID id)
pure virtual

Destroys a previously created anchor.

Implemented in plOpenXRSpatialAnchors.

◆ TryGetAnchorTransform()

virtual plResult plXRSpatialAnchorsInterface::TryGetAnchorTransform ( plXRSpatialAnchorID id,
plTransform & out_globalTransform )
pure virtual

Tries to resolve the anchor position. Can fail of the anchor is invalid or tracking is currently lost.

Implemented in plOpenXRSpatialAnchors.


The documentation for this class was generated from the following file: