NativeBindings
Inherits from:
MagicLeapNativeBindings
Public Methods
XrResult MLCreateMarkerDetector
public XrResult MLCreateMarkerDetector(
in MarkerDetectorSettings settings,
out ulong markerDetector
)
Parameters
Type | Name | Description |
---|---|---|
in MarkerDetectorSettings | settings | |
out ulong | markerDetector |
XrResult MLCreateMarkerSpace
public XrResult MLCreateMarkerSpace(
ulong markerDetector,
ulong marker,
out ulong xrSpace
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector | |
ulong | marker | |
out ulong | xrSpace |
XrResult MLDestroyMarkerDetector
public XrResult MLDestroyMarkerDetector(
ulong markerDetector
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector |
XrResult MLGetMarkerDetectorState
public XrResult MLGetMarkerDetectorState(
ulong markerDetector,
out MarkerDetectorStatus status
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector | |
out MarkerDetectorStatus | status | The current status of the readiness of the marker tracker. |
XrResult MLGetMarkerLength
public XrResult MLGetMarkerLength(
ulong markerDetector,
ulong marker,
out float meters
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector | |
ulong | marker | |
out float | meters |
XrResult MLGetMarkerNumber
public XrResult MLGetMarkerNumber(
ulong markerDetector,
ulong marker,
out ulong number
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector | |
ulong | marker | |
out ulong | number |
XrResult MLGetMarkerReprojectionError
public XrResult MLGetMarkerReprojectionError(
ulong markerDetector,
ulong marker,
out float reprojectionErrorMeters
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector | |
ulong | marker | |
out float | reprojectionErrorMeters |
XrResult MLGetMarkerString
public XrResult MLGetMarkerString(
ulong markerDetector,
ulong marker,
uint bufferSize,
char [] buffer
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector | |
ulong | marker | |
uint | bufferSize | |
char [] | buffer |
XrResult MLGetMarkers
public XrResult MLGetMarkers(
ulong markerDetector,
out uint markerCountOutput,
ulong [] markers
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector | |
out uint | markerCountOutput | |
ulong [] | markers |
XrResult MLSnapshotMarkerDetector
public XrResult MLSnapshotMarkerDetector(
ulong markerDetector
)
Parameters
Type | Name | Description |
---|---|---|
ulong | markerDetector |