Class FBSpatialEntityUser
This extension enables creation and management of user objects which can be used by the application to reference a user other than the current user.
In order to enable the functionality of this extension, you must pass the name of the extension into CreateInstance via the XrInstanceCreateInfo::enabledExtensionNames parameter as indicated in the extension section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsXrObjectType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrCreateSpaceUserFB(XrSession session, long info, long user) Unsafe version of:CreateSpaceUserFBstatic intnxrGetSpaceUserIdFB(XrSpaceUserFB user, long userId) Unsafe version of:GetSpaceUserIdFBstatic intxrCreateSpaceUserFB(XrSession session, XrSpaceUserCreateInfoFB info, org.lwjgl.PointerBuffer user) Creates a user other than the current user.static intDestroys a user handle.static intxrGetSpaceUserIdFB(XrSpaceUserFB user, LongBuffer userId) Gets the user ID for a given user handle.
-
Field Details
-
XR_FB_spatial_entity_user_SPEC_VERSION
public static final int XR_FB_spatial_entity_user_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_SPATIAL_ENTITY_USER_EXTENSION_NAME
The extension name.- See Also:
-
XR_TYPE_SPACE_USER_CREATE_INFO_FB
public static final int XR_TYPE_SPACE_USER_CREATE_INFO_FBExtendsXrStructureType.- See Also:
-
XR_OBJECT_TYPE_SPACE_USER_FB
public static final int XR_OBJECT_TYPE_SPACE_USER_FBExtendsXrObjectType.- See Also:
-
-
Method Details
-
nxrCreateSpaceUserFB
Unsafe version of:CreateSpaceUserFB -
xrCreateSpaceUserFB
public static int xrCreateSpaceUserFB(XrSession session, XrSpaceUserCreateInfoFB info, org.lwjgl.PointerBuffer user) Creates a user other than the current user.C Specification
The
CreateSpaceUserFBfunction is defined as:XrResult xrCreateSpaceUserFB( XrSession session, const XrSpaceUserCreateInfoFB* info, XrSpaceUserFB* user);Description
The application can use this function to create a user handle with which it can then interact, such as sharing
XrSpaceobjects.Valid Usage (Implicit)
- The
XR_FB_spatial_entity_userextension must be enabled prior to callingCreateSpaceUserFB sessionmust be a validXrSessionhandleinfomust be a pointer to a validXrSpaceUserCreateInfoFBstructureusermust be a pointer to anXrSpaceUserFBhandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- a handle to anXrSession.info- a pointer to anXrSpaceUserCreateInfoFBstructure containing information to create the user handle.user- the output parameter that points to the handle of the user being created.
- The
-
nxrGetSpaceUserIdFB
Unsafe version of:GetSpaceUserIdFB -
xrGetSpaceUserIdFB
Gets the user ID for a given user handle.C Specification
The
GetSpaceUserIdFBfunction is defined as:XrResult xrGetSpaceUserIdFB( XrSpaceUserFB user, XrSpaceUserIdFB* userId);Description
The application can use this function to retrieve the user ID of a given user handle.
Valid Usage (Implicit)
- The
XR_FB_spatial_entity_userextension must be enabled prior to callingGetSpaceUserIdFB usermust be a validXrSpaceUserFBhandleuserIdmust be a pointer to anXrSpaceUserIdFBvalue
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
user- a handle to anXrSpaceUserFB.userId- the output parameter that points to the user ID of the user.
- The
-
xrDestroySpaceUserFB
Destroys a user handle.C Specification
The
DestroySpaceUserFBfunction is defined as:XrResult xrDestroySpaceUserFB( XrSpaceUserFB user);Description
The application should use this function to release resources tied to a given
XrSpaceUserFBonce the application no longer needs to reference the user.Valid Usage (Implicit)
- The
XR_FB_spatial_entity_userextension must be enabled prior to callingDestroySpaceUserFB usermust be a validXrSpaceUserFBhandle
Thread Safety
- Access to
user, and any child handles, must be externally synchronized
Return Codes
- On success, this command returns
- On failure, this command returns
- Parameters:
user- a handle to the user object to be destroyed.
- The
-