Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickrendercontrol_p.h
Go to the documentation of this file.
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 QQUICKRENDERCONTROL_P_H
5
#define QQUICKRENDERCONTROL_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 "
qquickrendercontrol.h
"
19
#include <QtQuick/private/qsgcontext_p.h>
20
21
QT_BEGIN_NAMESPACE
22
23
class
QRhi
;
24
class
QRhiCommandBuffer
;
25
class
QOffscreenSurface
;
26
class
QQuickGraphicsConfiguration
;
27
28
class
Q_QUICK_PRIVATE_EXPORT
QQuickRenderControlPrivate
:
public
QObjectPrivate
29
{
30
public
:
31
Q_DECLARE_PUBLIC(
QQuickRenderControl
)
32
33
enum
FrameStatus
{
34
NotRecordingFrame
,
35
RecordingFrame
,
36
DeviceLostInBeginFrame
,
37
ErrorInBeginFrame
38
};
39
40
QQuickRenderControlPrivate
(
QQuickRenderControl
*renderControl);
41
42
static
QQuickRenderControlPrivate
*
get
(
QQuickRenderControl
*renderControl) {
43
return
renderControl->d_func();
44
}
45
46
static
bool
isRenderWindowFor(
QQuickWindow
*quickWin,
const
QWindow
*renderWin);
47
virtual
bool
isRenderWindow(
const
QWindow
*
w
);
48
49
static
void
cleanup();
50
51
void
windowDestroyed();
52
53
void
update();
54
void
maybeUpdate();
55
56
bool
initRhi();
57
void
resetRhi(
const
QQuickGraphicsConfiguration
&
config
);
58
59
QImage
grab();
60
61
QQuickRenderControl
*
q
;
62
bool
initialized
;
63
QQuickWindow
*
window
;
64
static
QSGContext
*
sg
;
65
QSGRenderContext
*
rc
;
66
QRhi
*
rhi
;
67
bool
ownRhi
;
68
QRhiCommandBuffer
*
cb
;
69
QOffscreenSurface
*
offscreenSurface
;
70
int
sampleCount
;
71
FrameStatus
frameStatus
;
72
};
73
74
QT_END_NAMESPACE
75
76
#endif
// QQUICKRENDERCONTROL_P_H
QImage
\inmodule QtGui
Definition
qimage.h:37
QObjectPrivate
Definition
qobject_p.h:74
QOffscreenSurface
\inmodule QtGui
Definition
qoffscreensurface.h:21
QQuickGraphicsConfiguration
QQuickGraphicsConfiguration controls lower level graphics settings for the QQuickWindow.
Definition
qquickgraphicsconfiguration.h:16
QQuickRenderControlPrivate
Definition
qquickrendercontrol_p.h:29
QQuickRenderControlPrivate::window
QQuickWindow * window
Definition
qquickrendercontrol_p.h:63
QQuickRenderControlPrivate::rhi
QRhi * rhi
Definition
qquickrendercontrol_p.h:66
QQuickRenderControlPrivate::cb
QRhiCommandBuffer * cb
Definition
qquickrendercontrol_p.h:68
QQuickRenderControlPrivate::offscreenSurface
QOffscreenSurface * offscreenSurface
Definition
qquickrendercontrol_p.h:69
QQuickRenderControlPrivate::get
static QQuickRenderControlPrivate * get(QQuickRenderControl *renderControl)
Definition
qquickrendercontrol_p.h:42
QQuickRenderControlPrivate::frameStatus
FrameStatus frameStatus
Definition
qquickrendercontrol_p.h:71
QQuickRenderControlPrivate::q
QQuickRenderControl * q
Definition
qquickrendercontrol_p.h:61
QQuickRenderControlPrivate::rc
QSGRenderContext * rc
Definition
qquickrendercontrol_p.h:65
QQuickRenderControlPrivate::sampleCount
int sampleCount
Definition
qquickrendercontrol_p.h:70
QQuickRenderControlPrivate::initialized
bool initialized
Definition
qquickrendercontrol_p.h:62
QQuickRenderControlPrivate::sg
static QSGContext * sg
Definition
qquickrendercontrol_p.h:64
QQuickRenderControlPrivate::FrameStatus
FrameStatus
Definition
qquickrendercontrol_p.h:33
QQuickRenderControlPrivate::RecordingFrame
@ RecordingFrame
Definition
qquickrendercontrol_p.h:35
QQuickRenderControlPrivate::DeviceLostInBeginFrame
@ DeviceLostInBeginFrame
Definition
qquickrendercontrol_p.h:36
QQuickRenderControlPrivate::NotRecordingFrame
@ NotRecordingFrame
Definition
qquickrendercontrol_p.h:34
QQuickRenderControlPrivate::ownRhi
bool ownRhi
Definition
qquickrendercontrol_p.h:67
QQuickRenderControl
The QQuickRenderControl class provides a mechanism for rendering the Qt Quick scenegraph onto an offs...
Definition
qquickrendercontrol.h:21
QQuickWindow
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
Definition
qquickwindow.h:41
QRhiCommandBuffer
\inmodule QtGui
Definition
qrhi.h:1614
QRhi
\inmodule QtGui
Definition
qrhi.h:1767
QSGContext
The QSGContext holds the scene graph entry points for one QML engine.
Definition
qsgcontext_p.h:74
QSGRenderContext
Definition
qsgcontext_p.h:124
QWindow
\inmodule QtGui
Definition
qwindow.h:63
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
config
EGLConfig config
Definition
qeglstreamconvenience_p.h:79
w
GLfloat GLfloat GLfloat w
[0]
Definition
qopengles2ext.h:789
qquickrendercontrol.h
qtdeclarative
src
quick
items
qquickrendercontrol_p.h
Generated by
1.9.7