Package org.lwjgl.openxr
Class MLCompat
java.lang.Object
org.lwjgl.openxr.MLCompat
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
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space) Unsafe version of:CreateSpaceFromCoordinateFrameUIDMLstatic intxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, XrCoordinateSpaceCreateInfoML createInfo, org.lwjgl.PointerBuffer space) Creates a space based on a cfuid.
-
Field Details
-
XR_ML_compat_SPEC_VERSION
public static final int XR_ML_compat_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_ML_COMPAT_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML
public static final int XR_TYPE_COORDINATE_SPACE_CREATE_INFO_MLExtendsXrStructureType.- See Also:
-
-
Method Details
-
nxrCreateSpaceFromCoordinateFrameUIDML
public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space) Unsafe version of:CreateSpaceFromCoordinateFrameUIDML -
xrCreateSpaceFromCoordinateFrameUIDML
public static int xrCreateSpaceFromCoordinateFrameUIDML(XrSession session, XrCoordinateSpaceCreateInfoML createInfo, org.lwjgl.PointerBuffer space) Creates a space based on a cfuid.C Specification
The
CreateSpaceFromCoordinateFrameUIDMLfunction is defined as:XrResult xrCreateSpaceFromCoordinateFrameUIDML( XrSession session, const XrCoordinateSpaceCreateInfoML * createInfo, XrSpace* space);Description
The service that created the underlying
XrCoordinateSpaceCreateInfoML::cfuidmust remain active for the lifetime of theXrSpace. IfLocateSpaceis called on a space created from anXrCoordinateSpaceCreateInfoML::cfuidfrom a no-longer-active service, the runtime may setXrSpaceLocation::locationFlagsto 0.XrSpacehandles are destroyed usingDestroySpace.Valid Usage (Implicit)
- The
XR_ML_compatextension must be enabled prior to callingCreateSpaceFromCoordinateFrameUIDML sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrCoordinateSpaceCreateInfoMLstructurespacemust be a pointer to anXrSpacehandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- a handle to anXrSessionpreviously created withCreateSession.createInfo- theXrCoordinateSpaceCreateInfoMLused to specify the space.space- the returned space handle.
- The
-