Class METASpatialEntityMesh
This extension expands on the concept of spatial entities to include a way for a spatial entity to represent a triangle mesh that describes 3D geometry of the spatial entity in a scene. Spatial entities are defined in XR_FB_spatial_entity extension using the Entity-Component System. The triangle mesh is a component type that may be associated to a spatial entity.
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 intExtendsXrSpaceComponentTypeFB.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrGetSpaceTriangleMeshMETA(XrSpace space, long getInfo, long triangleMeshOutput) Unsafe version of:GetSpaceTriangleMeshMETAstatic intxrGetSpaceTriangleMeshMETA(XrSpace space, XrSpaceTriangleMeshGetInfoMETA getInfo, XrSpaceTriangleMeshMETA triangleMeshOutput) Gets an XrSpaceTriangleMeshMETA that represents a triangle mesh.
-
Field Details
-
XR_META_spatial_entity_mesh_SPEC_VERSION
public static final int XR_META_spatial_entity_mesh_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_META_SPATIAL_ENTITY_MESH_EXTENSION_NAME
The extension name.- See Also:
-
XR_SPACE_COMPONENT_TYPE_TRIANGLE_MESH_META
public static final int XR_SPACE_COMPONENT_TYPE_TRIANGLE_MESH_METAExtendsXrSpaceComponentTypeFB.- See Also:
-
XR_TYPE_SPACE_TRIANGLE_MESH_GET_INFO_META
public static final int XR_TYPE_SPACE_TRIANGLE_MESH_GET_INFO_METAExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SPACE_TRIANGLE_MESH_META
public static final int XR_TYPE_SPACE_TRIANGLE_MESH_METAExtendsXrStructureType.Enum values:
- See Also:
-
-
Method Details
-
nxrGetSpaceTriangleMeshMETA
Unsafe version of:GetSpaceTriangleMeshMETA -
xrGetSpaceTriangleMeshMETA
public static int xrGetSpaceTriangleMeshMETA(XrSpace space, XrSpaceTriangleMeshGetInfoMETA getInfo, XrSpaceTriangleMeshMETA triangleMeshOutput) Gets an XrSpaceTriangleMeshMETA that represents a triangle mesh.C Specification
The
GetSpaceTriangleMeshMETAfunction is defined as:XrResult xrGetSpaceTriangleMeshMETA( XrSpace space, const XrSpaceTriangleMeshGetInfoMETA* getInfo, XrSpaceTriangleMeshMETA* triangleMeshOutput);Description
The
GetSpaceTriangleMeshMETAfunction is used by the application to perform the two calls required to obtain a triangle mesh associated to a spatial entity specified byspace.The spatial entity
spacemust have theSPACE_COMPONENT_TYPE_TRIANGLE_MESH_METAcomponent type enabled, otherwise this function will returnERROR_SPACE_COMPONENT_NOT_ENABLED_FB.Valid Usage (Implicit)
- The
XR_META_spatial_entity_meshextension must be enabled prior to callingGetSpaceTriangleMeshMETA spacemust be a validXrSpacehandlegetInfomust be a pointer to a validXrSpaceTriangleMeshGetInfoMETAstructuretriangleMeshOutputmust be a pointer to anXrSpaceTriangleMeshMETAstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
space- a handle to anXrSpace.getInfo- exists for extensibility purposes. It isNULLor a pointer to a validXrSpaceTriangleMeshGetInfoMETA.triangleMeshOutput- the output parameter that points to anXrSpaceTriangleMeshMETA.
- The
-