3 #ifndef OPENVROVERLAYCONTROLLER_H
4 #define OPENVROVERLAYCONTROLLER_H
12 #include <QtCore/QtCore>
19 #include <QtGui/QOpenGLContext>
20 #include <QtWidgets/QGraphicsScene>
21 #include <QOffscreenSurface>
22 class QOpenGLFramebufferObject;
27 typedef QObject BaseClass;
57 bool ConnectToVRRuntime();
58 void DisconnectFromVRRuntime();
60 vr::TrackedDevicePose_t m_rTrackedDevicePose[ vr::k_unMaxTrackedDeviceCount ];
61 QString m_strVRDriver;
62 QString m_strVRDisplay;
65 vr::HmdError m_eLastHmdError;
68 vr::HmdError m_eCompositorError;
69 vr::HmdError m_eOverlayError;
70 vr::Compositor_OverlaySettings m_overlaySettings;
71 vr::VROverlayHandle_t m_ulOverlayHandle;
72 vr::VROverlayHandle_t m_ulOverlayThumbnailHandle;
74 QOpenGLContext *m_pOpenGLContext;
75 QGraphicsScene *m_pScene;
76 QOpenGLFramebufferObject *m_pFbo;
77 QOffscreenSurface *m_pOffscreenSurface;
79 QTimer *m_pPumpEventsTimer;
84 QPointF m_ptLastMouse;
85 Qt::MouseButtons m_lastMouseButtons;
86 bool m_bManualMouseHandling;
90 #endif // OPENVROVERLAYCONTROLLER_H
void OnTimeoutPumpEvents()
Definition: openvroverlaycontroller.cpp:200
void SetWidget(QWidget *pWidget)
Definition: openvroverlaycontroller.cpp:330
void OnSceneChanged(const QList< QRectF > &)
Definition: openvroverlaycontroller.cpp:171
QString GetName()
Definition: openvroverlaycontroller.h:46
void Shutdown()
Definition: openvroverlaycontroller.cpp:151
bool BHMDAvailable()
Definition: openvroverlaycontroller.cpp:404
static COpenVROverlayController * SharedInstance()
Definition: openvroverlaycontroller.cpp:24
Definition: openvroverlaycontroller.h:24
QString GetVRDriverString()
Definition: openvroverlaycontroller.cpp:386
COpenVROverlayController()
Definition: openvroverlaycontroller.cpp:37
vr::HmdError GetLastHmdError()
Definition: openvroverlaycontroller.cpp:414
bool Init()
Definition: openvroverlaycontroller.cpp:88
QString GetVRDisplayString()
Definition: openvroverlaycontroller.cpp:395
virtual ~COpenVROverlayController()
Definition: openvroverlaycontroller.cpp:60
vr::IVRSystem * GetVRSystem()