Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsgdefaultinternalrectanglenode_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// Qt-Security score:significant reason:default
4
5
6#ifndef QSGDEFAULTINTERNALRECTANGLENODE_P_H
7#define QSGDEFAULTINTERNALRECTANGLENODE_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <private/qsgadaptationlayer_p.h>
21#include <private/qsgbasicinternalrectanglenode_p.h>
22#include <QtQuick/qsgvertexcolormaterial.h>
23
24QT_BEGIN_NAMESPACE
25
26class QSGContext;
27
28class Q_QUICK_EXPORT QSGSmoothColorMaterial : public QSGMaterial
29{
30public:
31 QSGSmoothColorMaterial();
32
33 int compare(const QSGMaterial *other) const override;
34
35protected:
36 QSGMaterialType *type() const override;
37 QSGMaterialShader *createShader(QSGRendererInterface::RenderMode renderMode) const override;
38};
39
40class Q_QUICK_EXPORT QSGDefaultInternalRectangleNode : public QSGBasicInternalRectangleNode
41{
42public:
43 QSGDefaultInternalRectangleNode();
44
45private:
46 void updateMaterialAntialiasing() override;
47 void updateMaterialBlending(QSGNode::DirtyState *state) override;
48
49 QSGVertexColorMaterial m_material;
50 QSGSmoothColorMaterial m_smoothMaterial;
51};
52
53QT_END_NAMESPACE
54
55#endif
bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to get the contents of the shader program's uniform buffer...
Combined button and popup list for selecting options.