Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3dxrvisionosrendermanager_p.h
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DXRVISIONOSRENDERMANAGER_P_H
5#define QQUICK3DXRVISIONOSRENDERMANAGER_P_H
6
7#include <QObject>
8#import <CompositorServices/CompositorServices.h>
9#import <Spatial/Spatial.h>
10#import <ARKit/ARKit.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
24
25class QQuickWindow;
28
30{
32public:
33 enum class RenderState {
34 Paused,
35 Running,
37 };
38
41
42 bool initialize();
43 bool finalizeGraphics(QRhi *rhi);
44 bool isReady() const;
45
47
48 void createSwapchains();
49
50 void teardown();
51
53
54 cp_layer_renderer_t layerRenderer() const;
55
57 ar_device_anchor_t createPoseForTiming(cp_frame_timing_t timing);
58
59 void renderFrame(QQuickWindow *quickWindow,
60 QQuickRenderControl *renderControl,
61 QQuick3DXrOrigin *xrOrigin,
62 QQuick3DViewport *xrViewport);
63
66
67private:
68 QRhiTexture *m_rhiDepthTexture = nullptr;
69 ar_session_t m_arSession;
70 ar_world_tracking_provider_t m_worldTrackingProvider;
71 bool m_isHandTrackingSupported = false;
72 ar_hand_tracking_provider_t m_handTrackingProvider;
73 ar_hand_anchor_t m_leftHandAnchor;
74 ar_hand_anchor_t m_rightHandAnchor;
75};
76
78
79#endif // QQUICK3DXRVISIONOSRENDERMANAGER_P_H
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
ar_device_anchor_t createPoseForTiming(cp_frame_timing_t timing)
void renderFrame(QQuickWindow *quickWindow, QQuickRenderControl *renderControl, QQuick3DXrOrigin *xrOrigin, QQuick3DViewport *xrViewport)
The QQuickRenderControl class provides a mechanism for rendering the Qt Quick scenegraph onto an offs...
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtGui
Definition qrhi.h:895
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Definition qrhi.h:1804
Combined button and popup list for selecting options.
#define Q_OBJECT
#define Q_SIGNALS
aWidget window() -> setWindowTitle("New Window Title")
[2]