| 1 | // Copyright (C) 2019 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 QOPENGL_PAINTDEVICE_P_H |
| 5 | #define QOPENGL_PAINTDEVICE_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 for the convenience |
| 12 | // of the Qt OpenGL classes. This header file may change from |
| 13 | // version to version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <qopenglpaintdevice.h> |
| 19 | #include <private/qglobal_p.h> |
| 20 | |
| 21 | QT_BEGIN_NAMESPACE |
| 22 | |
| 23 | class QOpenGLContext; |
| 24 | class QPaintEngine; |
| 25 | |
| 26 | class Q_OPENGL_EXPORT QOpenGLPaintDevicePrivate |
| 27 | { |
| 28 | public: |
| 29 | QOpenGLPaintDevicePrivate(const QSize &size); |
| 30 | virtual ~QOpenGLPaintDevicePrivate(); |
| 31 | |
| 32 | static QOpenGLPaintDevicePrivate *get(QOpenGLPaintDevice *dev) { return dev->d_func(); } |
| 33 | |
| 34 | virtual void beginPaint() { } |
| 35 | virtual void endPaint() { } |
| 36 | |
| 37 | public: |
| 38 | QSize size; |
| 39 | QOpenGLContext *ctx; |
| 40 | |
| 41 | qreal dpmx; |
| 42 | qreal dpmy; |
| 43 | qreal devicePixelRatio; |
| 44 | |
| 45 | bool flipped; |
| 46 | |
| 47 | QPaintEngine *engine; |
| 48 | }; |
| 49 | |
| 50 | QT_END_NAMESPACE |
| 51 | |
| 52 | #endif // QOPENGL_PAINTDEVICE_P_H |
| 53 | |