Monado OpenXR Runtime
Loading...
Searching...
No Matches
XRTVRCompositor_015.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 IVRCompositor interface version 015.
6 *
7 * @author Beyley Cardellio <ep1cm1n10n123@gmail.com>
8 * @ingroup openvr_interfaces
9 */
10
11#pragma once
12
14
15#include "openvr_interfaces_unified.h"
16#include "openvr_forward_macros.h"
17
20
21
22namespace xrt::state_trackers::openvr {
23
24using namespace vr;
25
26class XRTVRCompositor_015 : public XRTVRCompositor_021, public vr::IVRCompositor_015
27{
28public:
29 // @todo Remove when clang-format is updated in CI
30 // clang-format off
32 // clang-format on
33
34 FnTable_IVRCompositor_015();
35
36 ForwardDeclareBase_IVRCompositor(XRTVRCompositor_021);
37
38 Forward_IVRCompositor_SetTrackingSpace_029();
39 Forward_IVRCompositor_GetTrackingSpace_029();
40 Forward_IVRCompositor_WaitGetPoses_029();
41 Forward_IVRCompositor_GetLastPoses_029();
42 Forward_IVRCompositor_GetLastPoseForTrackedDeviceIndex();
43 Forward_IVRCompositor_Submit_029();
44 Forward_IVRCompositor_ClearLastSubmittedFrame();
45 Forward_IVRCompositor_PostPresentHandoff();
46 Forward_IVRCompositor_GetFrameTiming();
47 Forward_IVRCompositor_GetFrameTimeRemaining();
48 Forward_IVRCompositor_GetCumulativeStats();
49 Forward_IVRCompositor_FadeToColor();
50 Forward_IVRCompositor_FadeGrid_026();
51 Forward_IVRCompositor_SetSkyboxOverride_029();
52 Forward_IVRCompositor_ClearSkyboxOverride();
53 Forward_IVRCompositor_CompositorBringToFront();
54 Forward_IVRCompositor_CompositorGoToBack();
55 Forward_IVRCompositor_CompositorQuit();
56 Forward_IVRCompositor_IsFullscreen();
57 Forward_IVRCompositor_GetCurrentSceneFocusProcess();
58 Forward_IVRCompositor_GetLastFrameRenderer();
59 Forward_IVRCompositor_CanRenderScene();
60 Forward_IVRCompositor_ShowMirrorWindow();
61 Forward_IVRCompositor_HideMirrorWindow();
62 Forward_IVRCompositor_IsMirrorWindowVisible();
63 Forward_IVRCompositor_CompositorDumpImages();
64 Forward_IVRCompositor_ShouldAppRenderWithLowResources();
65 Forward_IVRCompositor_ForceInterleavedReprojectionOn();
66 Forward_IVRCompositor_ForceReconnectProcess();
67 Forward_IVRCompositor_SuspendRendering();
68
69 vr::EVRCompositorError
70 RequestScreenshot(vr::EVRScreenshotType type,
71 const char *pchDestinationFileName,
72 const char *pchVRDestinationFileName) override
73 {
74 openvr_logger logger;
75 OPENVR_LOGGER_INIT(logger);
76
78 "RequestScreenshot(type=%d, pchDestinationFileName=%s, "
79 "pchVRDestinationFileName=%s) -> VRCompositorError_None",
80 vr::EVRCompositorError::VRCompositorError_None, static_cast<int>(type),
81 pchDestinationFileName, pchVRDestinationFileName);
82 }
83
84 vr::EVRScreenshotType
85 GetCurrentScreenshotType() override
86 {
87 openvr_logger logger;
88 OPENVR_LOGGER_INIT(logger);
89
90 OPENVR_LOG_UNIMPLEMENTED_RET(logger, "GetCurrentScreenshotType()", {});
91 }
92
93 Forward_IVRCompositor_GetMirrorTextureD3D11();
94 Forward_IVRCompositor_GetMirrorTextureGL();
95 Forward_IVRCompositor_ReleaseSharedGLTexture();
96 Forward_IVRCompositor_LockGLSharedTextureForAccess();
97 Forward_IVRCompositor_UnlockGLSharedTextureForAccess();
98};
99
100}; // namespace xrt::state_trackers::openvr
Implementation of the latest IVRCompositor interface version.
Implementation of the IVRCompositor interface version 021.
Definition XRTVRClientCore.hpp:152
Definition XRTVRCompositor_015.hpp:27
Definition XRTVRCompositor_021.hpp:26
Definitions missing from C++ header, present in C.
Definition blockqueue.hpp:15
Logging functions.
#define OPENVR_LOG_UNIMPLEMENTED_RET(logger, fmt, ret,...)
Specialized macro for logging an unimplemented function and returning a value.
Definition openvr_logger.hpp:57
Definition openvr_logger.hpp:30