Qt
6.x
The Qt SDK
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
4
5
#ifndef QSGDEFAULTINTERNALRECTANGLENODE_P_H
6
#define QSGDEFAULTINTERNALRECTANGLENODE_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#include <private/qsgadaptationlayer_p.h>
20
#include <private/qsgbasicinternalrectanglenode_p.h>
21
#include <QtQuick/qsgvertexcolormaterial.h>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QSGContext
;
26
27
class
Q_QUICK_PRIVATE_EXPORT
QSGSmoothColorMaterial
:
public
QSGMaterial
28
{
29
public
:
30
QSGSmoothColorMaterial
();
31
32
int
compare
(
const
QSGMaterial
*
other
)
const override
;
33
34
protected
:
35
QSGMaterialType
*
type
()
const override
;
36
QSGMaterialShader
*
createShader
(
QSGRendererInterface::RenderMode
renderMode)
const override
;
37
};
38
39
class
Q_QUICK_PRIVATE_EXPORT
QSGDefaultInternalRectangleNode
:
public
QSGBasicInternalRectangleNode
40
{
41
public
:
42
QSGDefaultInternalRectangleNode
();
43
44
private
:
45
void
updateMaterialAntialiasing()
override
;
46
void
updateMaterialBlending(QSGNode::DirtyState *
state
)
override
;
47
48
QSGVertexColorMaterial
m_material;
49
QSGSmoothColorMaterial
m_smoothMaterial;
50
};
51
52
QT_END_NAMESPACE
53
54
#endif
QSGBasicInternalRectangleNode
Definition
qsgbasicinternalrectanglenode_p.h:24
QSGContext
The QSGContext holds the scene graph entry points for one QML engine.
Definition
qsgcontext_p.h:74
QSGDefaultInternalRectangleNode
Definition
qsgdefaultinternalrectanglenode_p.h:40
QSGMaterialShader
The QSGMaterialShader class represents a graphics API independent shader program.
Definition
qsgmaterialshader.h:23
QSGMaterial
The QSGMaterial class encapsulates rendering state for a shader program.
Definition
qsgmaterial.h:15
QSGMaterial::createShader
virtual QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const =0
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
QSGMaterial::compare
virtual int compare(const QSGMaterial *other) const
Compares this material to other and returns 0 if they are equal; -1 if this material should sort befo...
Definition
qsgmaterial.cpp:202
QSGMaterial::type
virtual QSGMaterialType * type() const =0
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
QSGRendererInterface::RenderMode
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
Definition
qsgrendererinterface.h:74
QSGSmoothColorMaterial
Definition
qsgdefaultinternalrectanglenode_p.h:28
QSGVertexColorMaterial
The QSGVertexColorMaterial class provides a convenient way of rendering per-vertex colored geometry i...
Definition
qsgvertexcolormaterial.h:12
state
else opt state
[0]
Definition
doc_src_styles.cpp:11
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
other
QSharedPointer< T > other(t)
[5]
QSGMaterialType
The QSGMaterialType class is used as a unique type token in combination with QSGMaterial.
Definition
qsgmaterialtype.h:11
qtdeclarative
src
quick
scenegraph
qsgdefaultinternalrectanglenode_p.h
Generated by
1.9.7