1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QSGABSTRACTRENDERER_P_P_H |
5 | #define QSGABSTRACTRENDERER_P_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists purely as an |
12 | // implementation detail. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include "qsgabstractrenderer_p.h" |
19 | |
20 | #include "qsgnode.h" |
21 | #include <qcolor.h> |
22 | |
23 | #include <QtCore/private/qobject_p.h> |
24 | #include <QtQuick/private/qtquickglobal_p.h> |
25 | |
26 | QT_BEGIN_NAMESPACE |
27 | |
28 | class Q_QUICK_PRIVATE_EXPORT QSGAbstractRendererPrivate : public QObjectPrivate |
29 | { |
30 | Q_DECLARE_PUBLIC(QSGAbstractRenderer) |
31 | public: |
32 | static const QSGAbstractRendererPrivate *get(const QSGAbstractRenderer *q) { return q->d_func(); } |
33 | |
34 | QSGAbstractRendererPrivate(); |
35 | void updateProjectionMatrix(); |
36 | |
37 | QSGRootNode *m_root_node; |
38 | QColor m_clear_color; |
39 | QSGAbstractRenderer::ClearMode m_clear_mode; |
40 | |
41 | QRect m_device_rect; |
42 | QRect m_viewport_rect; |
43 | |
44 | QMatrix4x4 m_projection_matrix; |
45 | QMatrix4x4 m_projection_matrix_native_ndc; |
46 | uint m_mirrored : 1; |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif |
52 | |