Monado OpenXR Runtime
Loading...
Searching...
No Matches
XRTVRSpatialAnchors.hpp
Go to the documentation of this file.
1// Copyright 2026, Beyley Cardellio
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Implementation of the latest IVRSpatialAnchors_001 interface version.
6 *
7 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
8 * @ingroup openvr_interfaces
9 */
10
11#pragma once
12
13#include "openvr_interfaces_unified.h"
14#include "openvr_forward_macros.h"
15
16#include "XRTVRClientCore.hpp"
17
18
19namespace xrt::state_trackers::openvr {
20
21using namespace vr;
22
23class XRTVRSpatialAnchors_001 : public vr::IVRSpatialAnchors_001
24{
25private:
27
28public:
30
31 virtual ~XRTVRSpatialAnchors_001() = default;
32
33 FnTable_IVRSpatialAnchors_001();
34
35 EVRSpatialAnchorError
36 CreateSpatialAnchorFromDescriptor(const char *pchDescriptor, SpatialAnchorHandle_t *pHandleOut) override;
37
38 EVRSpatialAnchorError
39 CreateSpatialAnchorFromPose(TrackedDeviceIndex_t unDeviceIndex,
40 ETrackingUniverseOrigin eOrigin,
41 SpatialAnchorPose_t *pPose,
42 SpatialAnchorHandle_t *pHandleOut) override;
43
44 EVRSpatialAnchorError
45 GetSpatialAnchorPose(SpatialAnchorHandle_t unHandle,
46 ETrackingUniverseOrigin eOrigin,
47 SpatialAnchorPose_t *pPoseOut) override;
48
49 EVRSpatialAnchorError
50 GetSpatialAnchorDescriptor(SpatialAnchorHandle_t unHandle,
51 char *pchDescriptorOut,
52 uint32_t *punDescriptorBufferLenInOut) override;
53};
54
55} // namespace xrt::state_trackers::openvr
Implementation of the latest IVRClientCore interface version.
Definition XRTVRClientCore.hpp:152
Definition XRTVRSpatialAnchors.hpp:24
Definitions missing from C++ header, present in C.
Definition blockqueue.hpp:15