Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickrendertarget_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QQUICKRENDERTARGET_P_H
5#define QQUICKRENDERTARGET_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 <QtQuick/private/qtquickglobal_p.h>
19#include "qquickrendertarget.h"
20#include <QAtomicInt>
21
23
24class QRhi;
26
27class Q_QUICK_PRIVATE_EXPORT QQuickRenderTargetPrivate
28{
29public:
30 static QQuickRenderTargetPrivate *get(QQuickRenderTarget *rt) { return rt->d; }
31 static const QQuickRenderTargetPrivate *get(const QQuickRenderTarget *rt) { return rt->d; }
34 bool resolve(QRhi *rhi, QQuickWindowRenderTarget *dst);
35
36 enum class Type {
37 Null,
39 NativeRenderbuffer,
40 RhiRenderTarget,
41 PaintDevice
42 };
43
45 Type type = Type::Null;
47 qreal devicePixelRatio = 1.0;
48 int sampleCount = 1;
54 };
55 union {
60 } u;
61
62 bool mirrorVertically = false;
63};
64
66
67#endif // QQUICKRENDERTARGET_P_H
\inmodule QtCore
Definition qatomic.h:112
static QQuickRenderTargetPrivate * get(QQuickRenderTarget *rt)
static const QQuickRenderTargetPrivate * get(const QQuickRenderTarget *rt)
The QQuickRenderTarget class provides an opaque container for native graphics resources specifying a ...
\inmodule QtGui
Definition qrhi.h:1135
\inmodule QtGui
Definition qrhi.h:1767
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
GLenum type
GLenum GLenum dst
unsigned long long quint64
Definition qtypes.h:56
unsigned int uint
Definition qtypes.h:29
double qreal
Definition qtypes.h:92
QSharedPointer< T > other(t)
[5]
Definition moc.h:24