Package org.lwjgl.openxr
Class XR11
java.lang.Object
org.lwjgl.openxr.XR11
The core OpenXR 1.1 functionality.
OpenXR version 1.1 promoted a number of key extensions into the core API:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe version of the OpenXR 1.1 API.static final intExtendsXrResult.static final intExtendsXrResult.static final intExtendsXrReferenceSpaceType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrViewConfigurationType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrLocateSpaces(XrSession session, long locateInfo, long spaceLocations) Unsafe version of:LocateSpacesstatic intxrLocateSpaces(XrSession session, XrSpacesLocateInfo locateInfo, XrSpaceLocations spaceLocations) Locate an array of spaces.
-
Field Details
-
XR_ERROR_EXTENSION_DEPENDENCY_NOT_ENABLED
public static final int XR_ERROR_EXTENSION_DEPENDENCY_NOT_ENABLED- See Also:
-
XR_ERROR_PERMISSION_INSUFFICIENT
public static final int XR_ERROR_PERMISSION_INSUFFICIENT- See Also:
-
XR_TYPE_SPACES_LOCATE_INFO
public static final int XR_TYPE_SPACES_LOCATE_INFOExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SPACE_LOCATIONS
public static final int XR_TYPE_SPACE_LOCATIONSExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SPACE_VELOCITIES
public static final int XR_TYPE_SPACE_VELOCITIESExtendsXrStructureType.Enum values:
- See Also:
-
XR_REFERENCE_SPACE_TYPE_LOCAL_FLOOR
public static final int XR_REFERENCE_SPACE_TYPE_LOCAL_FLOORExtendsXrReferenceSpaceType.- See Also:
-
XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO_WITH_FOVEATED_INSET
public static final int XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO_WITH_FOVEATED_INSETExtendsXrViewConfigurationType.- See Also:
-
XR_API_VERSION_1_1
public static final long XR_API_VERSION_1_1The version of the OpenXR 1.1 API.The "major" and "minor" components are always 1.1, while the "patch" component matches
CURRENT_API_VERSION.
-
-
Method Details
-
nxrLocateSpaces
Unsafe version of:LocateSpaces -
xrLocateSpaces
public static int xrLocateSpaces(XrSession session, XrSpacesLocateInfo locateInfo, XrSpaceLocations spaceLocations) Locate an array of spaces.C Specification
Applications can use
LocateSpacesfunction to locate an array of spaces.The
LocateSpacesfunction is defined as:XrResult xrLocateSpaces( XrSession session, const XrSpacesLocateInfo* locateInfo, XrSpaceLocations* spaceLocations);Description
LocateSpacesprovides the physical location of one or more spaces in a base space at a specified time, if currently known by the runtime.The
XrSpacesLocateInfo::time, theXrSpacesLocateInfo::baseSpace, and each space inXrSpacesLocateInfo::spaces, in thelocateInfoparameter, all follow the same specifics as the corresponding inputs to theLocateSpacefunction.Valid Usage (Implicit)
sessionmust be a validXrSessionhandlelocateInfomust be a pointer to a validXrSpacesLocateInfostructurespaceLocationsmust be a pointer to anXrSpaceLocationsstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- anXrSessionhandle previously created withCreateSession.locateInfo- a pointer to anXrSpacesLocateInfothat provides the input information to locate spaces.spaceLocations- a pointer to anXrSpaceLocationsfor the runtime to return the locations of the specified spaces in the base space.
-