Skip to content
Download
API reference

OpenXRSpatialCapabilityConfigurationBaseHeader

Inherits: Shared < Object

Inherited by: OpenXRSpatialCapabilityConfigurationAnchor, OpenXRSpatialCapabilityConfigurationAprilTag, OpenXRSpatialCapabilityConfigurationAruco, OpenXRSpatialCapabilityConfigurationMicroQrCode, OpenXRSpatialCapabilityConfigurationPlaneTracking, OpenXRSpatialCapabilityConfigurationQrCode

Wrapper base class for OpenXR Spatial Capability Configuration headers.

Wrapper base class for OpenXR Spatial Capability Configuration headers. This class needs to be implemented for each capability configuration structure usable within OpenXR’s spatial entities system.

ReturnsMethod
int_get_configuration()
bool_has_valid_configuration()
intget_configuration()
boolhas_valid_configuration()

int _get_configuration() virtual

Return a pointer (encoded as an int64_t) to a struct holding the spatial capability configuration data. The memory for this struct should remain accessible as long as this object remains instantiated.

bool _has_valid_configuration() virtual const

Return true if this object contains a valid configuration that can be retrieved when calling _get_configuration().

int get_configuration()

Gets a pointer to the XrSpatialCapabilityConfigurationBaseHeaderEXT struct.

Note: This method is intended to be used from NativeExtensions.

bool has_valid_configuration() const

Returns true if this object contains a valid configuration that can be used when calling OpenXRSpatialEntityExtension.create_spatial_context().