6#ifndef QQUICK3DXRMANAGER_P_H
7#define QQUICK3DXRMANAGER_P_H
20#include <QtQuick3DXr/private/qtquick3dxrglobal_p.h>
22#include <QtCore/QObject>
23#include <QtCore/QVersionNumber>
24#include <QtQml/QQmlEngine>
25#include <QtQml/QQmlComponent>
30class QQuickRenderControl;
32class QQuick3DViewport;
33class QQuick3DXrEyeCamera;
35class QQuick3DXrOrigin;
38class QQuick3DXrAnimationDriver;
95 bool event(QEvent *e)
override;
98 friend class QQuick3DXrRuntimeInfo;
99 friend class QQuick3DXrView;
103 bool setupGraphics();
107 void preSetupQuickScene();
108 bool setupQuickScene();
110 bool supportsPassthrough()
const;
112 QQuickWindow *m_quickWindow =
nullptr;
113 QQuickRenderControl *m_renderControl =
nullptr;
114 QQuick3DViewport *m_vrViewport =
nullptr;
115 QQuick3DXrOrigin *m_xrOrigin =
nullptr;
116 QQuick3DXrAnimationDriver *m_animationDriver =
nullptr;
117 bool m_xrOriginWarningShown =
false;
119 std::unique_ptr<QQuick3DXrManagerPrivate> d_ptr;
bool event(QEvent *event) override
This virtual function receives events to an object and should return true if the event e was recogniz...
void startWaitingForFrame()
static constexpr QEvent::Type asQEvent(QQuick3DOpenXRThreadWorker::Event event)
bool supportsFBPassthrough() const
bool isDepthSubmissionEnabled() const
QQuick3DXrManagerPrivate(QQuick3DXrManager &manager)
void setupWindow(QQuickWindow *window)
bool finalizeGraphics(QRhi *rhi)
QVersionNumber runtimeVersion() const
QtQuick3DXr::ReferenceSpace getReferenceSpace() const
void setReferenceSpace(QtQuick3DXr::ReferenceSpace newReferenceSpace)
bool isPassthroughEnabled() const
QStringList enabledExtensions() const
bool setTransparentBlendMode(bool enable)
~QQuick3DXrManagerPrivate()
bool supportsPassthrough() const
bool setupGraphics(QQuickWindow *window)
void setMultiViewRenderingEnabled(bool enable)
bool isMultiViewRenderingEnabled() const
bool supportsTransparentBlendMode() const
void setDepthSubmissionEnabled(bool enable)
static QQuick3DXrManagerPrivate * get(QQuick3DXrManager *manager)
void setFBPassthroughEnabled(bool enable)
QString errorString() const
void setSamples(int samples)
void getDefaultClipDistances(float &nearClip, float &farClip) const
bool isGraphicsInitialized() const
bool setPassthroughEnabled(bool enable)
QString runtimeName() const
void setDepthSubmissionEnabled(bool enable)
bool isPassthroughEnabled() const
void multiViewRenderingEnabledChanged()
void setFixedFoveationLevel(QtQuick3DXr::FoveationLevel level)
bool isMultiViewRenderingSupported() const
QString errorString() const
QtQuick3DXr::FoveationLevel getFixedFoveationLevel() const
bool isDepthSubmissionEnabled() const
void setMultiViewRenderingEnabled(bool enable)
void referenceSpaceChanged()
void setSamples(int samples)
void setXROrigin(QQuick3DXrOrigin *origin)
bool isMultiViewRenderingEnabled() const
void getDefaultClipDistances(float &nearClip, float &farClip) const
void setReferenceSpace(QtQuick3DXr::ReferenceSpace newReferenceSpace)
bool setPassthroughEnabled(bool enabled)
bool event(QEvent *e) override
This virtual function receives events to an object and should return true if the event e was recogniz...
QtQuick3DXr::ReferenceSpace getReferenceSpace() const
static bool isMultiviewRenderingDisabled()
Combined button and popup list for selecting options.
@ ReferenceSpaceLocalFloor
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
#define MAKE_TO_STRING_FUNC(enumType)
static bool isApiLayerSupported(const char *layerName, const QVector< XrApiLayerProperties > &apiLayerProperties)
#define ENUM_CASE_STR(name, val)
static const char s_workerThreadName[]
static QtQuick3DXr::ReferenceSpace getReferenceSpaceType(XrReferenceSpaceType referenceSpace)
static std::pair< XrResult, XrFrameState > waitForNextFrame(XrSession session)
static bool isExtensionSupported(const char *extensionName, const QVector< XrExtensionProperties > &instanceExtensionProperties, uint32_t *extensionVersion=nullptr)