12 #include <QtCore/QObject>
13 #include <QtCore/QThread>
14 #include <QtGui/qevent.h>
16 #include <GLMHelpers.h>
17 #include <gl/OffscreenGLCanvas.h>
19 namespace hifi {
namespace qml {
namespace impl {
23 class OffscreenEvent :
public QEvent {
26 Initialize = QEvent::User + 1,
32 OffscreenEvent(Type type) : QEvent(static_cast<QEvent::Type>(type)) {}
40 class RenderEventHandler :
public QObject {
42 RenderEventHandler(SharedObject* shared, QThread* targetThread);
45 bool event(QEvent* e)
override;
50 void qmlRender(
bool sceneGraphSync);
53 SharedObject*
const _shared;
54 OffscreenGLCanvas _canvas;
58 uint32_t _depthStencil{ 0 };
60 bool _initialized {
false };