xrt: Move xrt_reference_space_type to xrt_defines.h

This commit is contained in:
Jakob Bornecrantz 2023-12-21 20:35:18 +00:00
parent 67ce3d5fc0
commit 5d31fa7fe1
2 changed files with 32 additions and 32 deletions
src/xrt/include/xrt

View file

@ -534,6 +534,38 @@ struct xrt_api_requirements
uint32_t max_patch;
};
/*!
* Type of a OpenXR mapped reference space, maps to the semantic spaces on the
* @ref xrt_space_overseer struct. This is used to refer to indirectly for
* instance when letting the overseer know that an application is using a
* particular reference space.
*
* @ingroup xrt_iface
*/
enum xrt_reference_space_type
{
XRT_SPACE_REFERENCE_TYPE_VIEW,
XRT_SPACE_REFERENCE_TYPE_LOCAL,
XRT_SPACE_REFERENCE_TYPE_LOCAL_FLOOR,
XRT_SPACE_REFERENCE_TYPE_STAGE,
XRT_SPACE_REFERENCE_TYPE_UNBOUNDED,
};
/*!
* The number of enumerations in @ref xrt_reference_space_type.
*
* @ingroup xrt_iface
*/
#define XRT_SPACE_REFERENCE_TYPE_COUNT (XRT_SPACE_REFERENCE_TYPE_UNBOUNDED + 1)
/*!
* An invalid @ref xrt_reference_space_type, since it's invalid it's not listed
* in the enum.
*
* @ingroup xrt_iface
*/
#define XRT_SPACE_REFERENCE_TYPE_INVALID ((enum xrt_reference_space_type)(-1))
/*!
* Flags of which components of a @ref xrt_space_relation is valid.
*

View file

@ -72,38 +72,6 @@ xrt_space_reference(struct xrt_space **dst, struct xrt_space *src)
}
}
/*!
* Type of a OpenXR mapped reference space, maps to the semantic spaces on the
* @ref xrt_space_overseer struct. This is used to refer to indirectly for
* instance when letting the overseer know that an application is using a
* particular reference space.
*
* @ingroup xrt_iface
*/
enum xrt_reference_space_type
{
XRT_SPACE_REFERENCE_TYPE_VIEW,
XRT_SPACE_REFERENCE_TYPE_LOCAL,
XRT_SPACE_REFERENCE_TYPE_LOCAL_FLOOR,
XRT_SPACE_REFERENCE_TYPE_STAGE,
XRT_SPACE_REFERENCE_TYPE_UNBOUNDED,
};
/*!
* The number of enumerations in @ref xrt_reference_space_type.
*
* @ingroup xrt_iface
*/
#define XRT_SPACE_REFERENCE_TYPE_COUNT (XRT_SPACE_REFERENCE_TYPE_UNBOUNDED + 1)
/*!
* An invalid @ref xrt_reference_space_type, since it's invalid it's not listed
* in the enum.
*
* @ingroup xrt_iface
*/
#define XRT_SPACE_REFERENCE_TYPE_INVALID ((enum xrt_reference_space_type)(-1))
/*!
* Object that oversees and manages spaces, one created for each XR system.
*