This extension enables applications to use spatial entities to specify world-locked frames of reference. It enables applications to persist the real world location of content over time and contains definitions for the Entity-Component System. All Facebook spatial entity and scene extensions are dependent on this one.
We use OpenXR XrSpace handles to give applications access to spatial entities such as Spatial Anchors. In other words, any operation which involves spatial entities uses XrSpace handles to identify the affected spatial entities.
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 extensions section.
This extension allows:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB
Extends |
| public static final int | XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB
Extends |
| public static final int | XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB
Extends |
| public static final int | XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB
Extends |
| public static final String | XR_FB_SPATIAL_ENTITY_EXTENSION_NAME
The extension name. |
| public static final int | XR_FB_spatial_entity_SPEC_VERSION
The extension specification version. |
| public static final int | XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_SPACE_COMPONENT_TYPE_LOCATABLE_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_SPACE_COMPONENT_TYPE_SHARABLE_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_SPACE_COMPONENT_TYPE_SPACE_CONTAINER_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_SPACE_COMPONENT_TYPE_STORABLE_FB
XrSpaceComponentTypeFB - Component type Description Specify the component interfaces attached to the spatial entity. |
| public static final int | XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB
Extends |
| public static final int | XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB
Extends |
| public static final int | XR_TYPE_SPACE_COMPONENT_STATUS_FB
Extends |
| public static final int | XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB
Extends |
| public static final int | XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB
Extends |
| public static final int | XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB
Extends |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | nxrCreateSpatialAnchorFB(XrSession session, long info, long requestId)
Unsafe version of: |
| public static int | nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int
the capacity of the componentTypeCapacityInput, long componentTypeCountOutput, long componentTypes)componentTypes array, or 0 to indicate a request to retrieve the required capacity.Unsafe version of: |
| public static int | nxrGetSpaceComponentStatusFB(XrSpace space, int componentType, long status)
Unsafe version of: |
| public static int | |
| public static int | nxrSetSpaceComponentStatusFB(XrSpace space, long info, long requestId)
Unsafe version of: |
| public static int | xrCreateSpatialAnchorFB(XrSession
a handle to an session, XrSpatialAnchorCreateInfoFB XrSession.a pointer to an info, LongBuffer XrSpatialAnchorCreateInfoFB structure containing information about how to create the anchor.the output parameter that points to the ID of this asynchronous request. requestId)Creates a new spatial anchor. |
| public static int | xrEnumerateSpaceSupportedComponentsFB(XrSpace
the space, IntBuffer XrSpace handle to the spatial entity.a pointer to the count of componentTypeCountOutput, IntBuffer componentTypes written, or a pointer to the required capacity in the case that componentTypeCapacityInput is insufficient.a pointer to an array of componentTypes)XrSpaceComponentTypeFB values, but can be NULL if componentTypeCapacityInput is 0.Enumerates supported components for a given spatial entity. |
| public static int | xrGetSpaceComponentStatusFB(XrSpace
the space, int XrSpace handle of a spatial entity.the component type to query. componentType, XrSpaceComponentStatusFB an output parameter pointing to the structure containing the status of the component that was queried. status)Provides the current state of a component. |
| public static int | xrGetSpaceUuidFB(XrSpace
the space, XrUuidEXT XrSpace handle of a spatial entity.an output parameter pointing to the entity’s UUID. uuid)Gets an entity. |
| public static int | xrSetSpaceComponentStatusFB(XrSpace
the space, XrSpaceComponentStatusSetInfoFB XrSpace handle to the spatial entity.a pointer to an info, LongBuffer XrSpaceComponentStatusSetInfoFB structure containing information about the component to be enabled or disabled.the output parameter that points to the ID of this asynchronous request. requestId)Enables or disables supported component interfaces for an entity. |
| XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB | back to summary |
|---|---|
| public static final int XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB Extends Enum values: | |
| XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB | back to summary |
|---|---|
| public static final int XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB Extends Enum values: | |
| XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB | back to summary |
|---|---|
| public static final int XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB Extends Enum values: | |
| XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB | back to summary |
|---|---|
| public static final int XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB Extends Enum values: | |
| XR_FB_SPATIAL_ENTITY_EXTENSION_NAME | back to summary |
|---|---|
| public static final String XR_FB_SPATIAL_ENTITY_EXTENSION_NAME The extension name. | |
| XR_FB_spatial_entity_SPEC_VERSION | back to summary |
|---|---|
| public static final int XR_FB_spatial_entity_SPEC_VERSION The extension specification version. | |
| XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_SPACE_COMPONENT_TYPE_LOCATABLE_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_LOCATABLE_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_SPACE_COMPONENT_TYPE_SHARABLE_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_SHARABLE_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_SPACE_COMPONENT_TYPE_SPACE_CONTAINER_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_SPACE_CONTAINER_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_SPACE_COMPONENT_TYPE_STORABLE_FB | back to summary |
|---|---|
| public static final int XR_SPACE_COMPONENT_TYPE_STORABLE_FB XrSpaceComponentTypeFB - Component type DescriptionSpecify the component interfaces attached to the spatial entity. Enumerant Descriptions
See Also
| |
| XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB | back to summary |
|---|---|
| public static final int XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB Extends Enum values: | |
| XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB | back to summary |
|---|---|
| public static final int XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB Extends Enum values: | |
| XR_TYPE_SPACE_COMPONENT_STATUS_FB | back to summary |
|---|---|
| public static final int XR_TYPE_SPACE_COMPONENT_STATUS_FB Extends Enum values: | |
| XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB | back to summary |
|---|---|
| public static final int XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB Extends Enum values: | |
| XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB | back to summary |
|---|---|
| public static final int XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB Extends Enum values: | |
| XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB | back to summary |
|---|---|
| public static final int XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB Extends Enum values: | |
| FBSpatialEntity | back to summary |
|---|---|
| protected FBSpatialEntity() | |
| nxrCreateSpatialAnchorFB | back to summary |
|---|---|
| public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long requestId) Unsafe version of: | |
| nxrEnumerateSpaceSupportedComponentsFB | back to summary |
|---|---|
| public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int componentTypeCapacityInput, long componentTypeCountOutput, long componentTypes) Unsafe version of:
| |
| nxrGetSpaceComponentStatusFB | back to summary |
|---|---|
| public static int nxrGetSpaceComponentStatusFB(XrSpace space, int componentType, long status) Unsafe version of: | |
| nxrGetSpaceUuidFB | back to summary |
|---|---|
| public static int nxrGetSpaceUuidFB(XrSpace space, long uuid) Unsafe version of: | |
| nxrSetSpaceComponentStatusFB | back to summary |
|---|---|
| public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long requestId) Unsafe version of: | |
| xrCreateSpatialAnchorFB | back to summary |
|---|---|
| public static int xrCreateSpatialAnchorFB(XrSession session, XrSpatialAnchorCreateInfoFB info, LongBuffer requestId) Creates a new spatial anchor. C SpecificationThe
DescriptionCreates a Spatial Anchor using the specified tracking origin and pose relative to the specified tracking origin. The anchor will be locatable at the time of creation, and the 6 DOF pose relative to the tracking origin can be queried using the Valid Usage (Implicit)
Return Codes
See Also
| |
| xrEnumerateSpaceSupportedComponentsFB | back to summary |
|---|---|
| public static int xrEnumerateSpaceSupportedComponentsFB(XrSpace space, IntBuffer componentTypeCountOutput, IntBuffer componentTypes) Enumerates supported components for a given spatial entity. C SpecificationThe
DescriptionLists any component types that an entity supports. The list of component types available for an entity depends on which extensions are enabled. Component types must not be enumerated unless the corresponding extension that defines them is also enabled. Valid Usage (Implicit)
Return Codes
| |
| xrGetSpaceComponentStatusFB | back to summary |
|---|---|
| public static int xrGetSpaceComponentStatusFB(XrSpace space, int componentType, XrSpaceComponentStatusFB status) Provides the current state of a component. C SpecificationThe
DescriptionGets the current status of the specified component for the specified entity. This function must return Valid Usage (Implicit)
Return Codes
See Also
| |
| xrGetSpaceUuidFB | back to summary |
|---|---|
| public static int xrGetSpaceUuidFB(XrSpace space, XrUuidEXT uuid) Gets an entity. C SpecificationThe
DescriptionGets the UUID for a spatial entity. If this space was previously created as a spatial anchor, Valid Usage (Implicit)
Return Codes
See Also
| |
| xrSetSpaceComponentStatusFB | back to summary |
|---|---|
| public static int xrSetSpaceComponentStatusFB(XrSpace space, XrSpaceComponentStatusSetInfoFB info, LongBuffer requestId) Enables or disables supported component interfaces for an entity. C SpecificationThe
DescriptionEnables or disables the specified component for the specified entity. This operation is asynchronous and always returns immediately, regardless of the value of Valid Usage (Implicit)
Return Codes
See Also
| |