Top Description Fields Constructors Methods
org.lwjgl.openxr

public Class MLCompat

extends Object
Class Inheritance
Imports
org.lwjgl.*, org.lwjgl.system.*

The XR_ML_compat extension.

This extension provides functionality to facilitate transitioning from Magic Leap SDK to OpenXR SDK, most notably interoperability between Coordinate Frame UUIDs and XrSpace.

Field Summary

Modifier and TypeField and Description
public static final String
XR_ML_COMPAT_EXTENSION_NAME

The extension name.

public static final int
XR_ML_compat_SPEC_VERSION

The extension specification version.

public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space)

Unsafe version of: CreateSpaceFromCoordinateFrameUIDML

public static int
xrCreateSpaceFromCoordinateFrameUIDML(XrSession
a handle to an XrSession previously created with CreateSession.
session
,
XrCoordinateSpaceCreateInfoML
the XrCoordinateSpaceCreateInfoML used to specify the space.
createInfo
,
PointerBuffer
the returned space handle.
space
)

Creates a space based on a cfuid.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

XR_ML_COMPAT_EXTENSION_NAMEback to summary
public static final String XR_ML_COMPAT_EXTENSION_NAME

The extension name.

XR_ML_compat_SPEC_VERSIONback to summary
public static final int XR_ML_compat_SPEC_VERSION

The extension specification version.

XR_TYPE_COORDINATE_SPACE_CREATE_INFO_MLback to summary
public static final int XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML

Extends XrStructureType.

Constructor Detail

MLCompatback to summary
protected MLCompat()

Method Detail

nxrCreateSpaceFromCoordinateFrameUIDMLback to summary
public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space)

Unsafe version of: CreateSpaceFromCoordinateFrameUIDML

xrCreateSpaceFromCoordinateFrameUIDMLback to summary
public static int xrCreateSpaceFromCoordinateFrameUIDML(XrSession session, XrCoordinateSpaceCreateInfoML createInfo, PointerBuffer space)

Creates a space based on a cfuid.

C Specification

The CreateSpaceFromCoordinateFrameUIDML function is defined as:


XrResult xrCreateSpaceFromCoordinateFrameUIDML(
    XrSession                                   session,
    const XrCoordinateSpaceCreateInfoML *       createInfo,
    XrSpace*                                    space);
Description

The service that created the underlying XrCoordinateSpaceCreateInfoML::cfuid must remain active for the lifetime of the XrSpace. If LocateSpace is called on a space created from a cfuid from a no-longer-active service, the runtime may set XrSpaceLocation::locationFlags to 0.

XrSpace handles are destroyed using DestroySpace.

Valid Usage (Implicit)
Return Codes
On success, this command returns
On failure, this command returns
See Also

XrCoordinateSpaceCreateInfoML

Parameters
session:XrSession

a handle to an XrSession previously created with CreateSession.

createInfo:XrCoordinateSpaceCreateInfoML

the XrCoordinateSpaceCreateInfoML used to specify the space.

space:PointerBuffer

the returned space handle.

Annotations
@NativeType:XrResult