Overte C++ Documentation
RenderControl.h
1 //
2 // Created by Bradley Austin Davis on 2018-01-04
3 // Copyright 2013-2018 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 #pragma once
9 
10 #include <QtQuick/QQuickRenderControl>
11 
12 namespace hifi { namespace qml { namespace impl {
13 
14 class RenderControl : public QQuickRenderControl {
15 public:
16  RenderControl(QObject* parent = Q_NULLPTR);
17  void setRenderWindow(QWindow* renderWindow);
18 
19 protected:
20  QWindow* renderWindow(QPoint* offset) override;
21 
22 private:
23  QWindow* _renderWindow{ nullptr };
24 };
25 
26 }}} // namespace hifi::qml::impl