1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QSSG_RENDER_ITEM2D_H
5#define QSSG_RENDER_ITEM2D_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 <QtQuick3DRuntimeRender/private/qssgrendergraphobject_p.h>
19#include <QtQuick3DRuntimeRender/private/qssgrendernode_p.h>
20#include <QtQuick3DRuntimeRender/private/qssgrenderimage_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class QSGNode;
25class QSGRenderer;
26class QRhiRenderPassDescriptor;
27
28struct Q_QUICK3DRUNTIMERENDER_EXPORT QSSGRenderItem2D : public QSSGRenderNode
29{
30 Q_DISABLE_COPY(QSSGRenderItem2D)
31
32 QMatrix4x4 MVP;
33 float combinedOpacity = 1.0;
34 float zOrder = 0;
35
36 QPointer<QSGRenderer> m_renderer;
37 QRhiRenderPassDescriptor *m_rp = nullptr;
38
39 QSSGRenderItem2D();
40 ~QSSGRenderItem2D();
41};
42QT_END_NAMESPACE
43
44#endif
45

source code of qtquick3d/src/runtimerender/graphobjects/qssgrenderitem2d_p.h