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
qssgrendertexturedata.cpp
Go to the documentation of this file.
1
// Copyright (C) 2020 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
include
"qssgrendertexturedata_p.h"
7
8
QT_BEGIN_NAMESPACE
9
10
QSSGRenderTextureData::QSSGRenderTextureData()
11
: QSSGRenderTextureData(QSSGRenderGraphObject::Type::TextureData)
12
{
13
14
}
15
16
QSSGRenderTextureData::QSSGRenderTextureData(QSSGRenderGraphObject::Type type)
17
: QSSGRenderGraphObject(type, FlagT(Flags::HasGraphicsResources))
18
{
19
20
}
21
22
QSSGRenderTextureData::~QSSGRenderTextureData()
23
{
24
25
}
26
27
const
QByteArray &QSSGRenderTextureData::textureData()
const
28
{
29
return
m_textureData;
30
}
31
32
void
QSSGRenderTextureData::setTextureData(
const
QByteArray &data)
33
{
34
m_textureData = data;
35
// Bump the version number
36
++m_textureDataVersion;
37
}
38
39
void
QSSGRenderTextureData::setSize(
const
QSize &size)
40
{
41
if
(m_size == size)
42
return
;
43
m_size = size;
44
}
45
46
void
QSSGRenderTextureData::setDepth(
int
depth)
47
{
48
if
(m_depth == depth)
49
return
;
50
m_depth = depth;
51
}
52
53
void
QSSGRenderTextureData::setFormat(QSSGRenderTextureFormat format)
54
{
55
if
(m_format == format)
56
return
;
57
58
m_format = format;
59
}
60
61
void
QSSGRenderTextureData::setHasTransparency(
bool
hasTransparency)
62
{
63
if
(m_hasTransparency == hasTransparency)
64
return
;
65
66
m_hasTransparency = hasTransparency;
67
}
68
69
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtquick3d
src
runtimerender
graphobjects
qssgrendertexturedata.cpp
Generated on
for Qt by
1.16.1