Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qsgdefaultinternalimagenode_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
QSGDEFAULTINTERNALIMAGENODE_P_H
7
#
define
QSGDEFAULTINTERNALIMAGENODE_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
/
qsgbasicinternalimagenode_p
.
h
>
22
#
include
<
QtQuick
/
qsgtexturematerial
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QSGDefaultRenderContext;
27
28
class
Q_QUICK_EXPORT
QSGSmoothTextureMaterial
:
public
QSGTextureMaterial
29
{
30
public
:
31
QSGSmoothTextureMaterial();
32
33
void
setTexture(QSGTexture *texture);
34
35
protected
:
36
QSGMaterialType *type()
const
override;
37
QSGMaterialShader *createShader(QSGRendererInterface::RenderMode renderMode)
const
override;
38
};
39
40
class
Q_QUICK_EXPORT
QSGDefaultInternalImageNode
:
public
QSGBasicInternalImageNode
41
{
42
public
:
43
QSGDefaultInternalImageNode(QSGDefaultRenderContext *rc);
44
45
void
setMipmapFiltering(QSGTexture::Filtering filtering) override;
46
void
setFiltering(QSGTexture::Filtering filtering) override;
47
void
setHorizontalWrapMode(QSGTexture::WrapMode wrapMode) override;
48
void
setVerticalWrapMode(QSGTexture::WrapMode wrapMode) override;
49
50
void
updateMaterialAntialiasing() override;
51
void
setMaterialTexture(QSGTexture *texture) override;
52
QSGTexture *materialTexture()
const
override;
53
bool
updateMaterialBlending() override;
54
bool
supportsWrap(
const
QSize &size)
const
override;
55
56
private
:
57
QSGDefaultRenderContext *m_rc;
58
QSGOpaqueTextureMaterial m_material;
59
QSGTextureMaterial m_materialO;
60
QSGSmoothTextureMaterial m_smoothMaterial;
61
};
62
63
QT_END_NAMESPACE
64
65
#
endif
QSGDefaultInternalImageNode
Definition
qsgdefaultinternalimagenode_p.h:41
QSGSmoothTextureMaterial
Definition
qsgdefaultinternalimagenode_p.h:29
SmoothTextureMaterialRhiShader
Definition
qsgdefaultinternalimagenode.cpp:16
SmoothTextureMaterialRhiShader::SmoothTextureMaterialRhiShader
SmoothTextureMaterialRhiShader(int viewCount)
Definition
qsgdefaultinternalimagenode.cpp:47
SmoothTextureMaterialRhiShader::updateUniformData
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...
Definition
qsgdefaultinternalimagenode.cpp:54
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
isPowerOfTwo
static bool isPowerOfTwo(int x)
Definition
qsgdefaultinternalimagenode.cpp:159
qtdeclarative
src
quick
scenegraph
qsgdefaultinternalimagenode_p.h
Generated on
for Qt by
1.18.0