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
7
9
10QSSGRenderTextureData::QSSGRenderTextureData()
11 : QSSGRenderTextureData(QSSGRenderGraphObject::Type::TextureData)
12{
13
14}
15
16QSSGRenderTextureData::QSSGRenderTextureData(QSSGRenderGraphObject::Type type)
17 : QSSGRenderGraphObject(type, FlagT(Flags::HasGraphicsResources))
18{
19
20}
21
22QSSGRenderTextureData::~QSSGRenderTextureData()
23{
24
25}
26
27const QByteArray &QSSGRenderTextureData::textureData() const
28{
29 return m_textureData;
30}
31
32void QSSGRenderTextureData::setTextureData(const QByteArray &data)
33{
34 m_textureData = data;
35 // Bump the version number
36 ++m_textureDataVersion;
37}
38
39void QSSGRenderTextureData::setSize(const QSize &size)
40{
41 if (m_size == size)
42 return;
43 m_size = size;
44}
45
46void QSSGRenderTextureData::setDepth(int depth)
47{
48 if (m_depth == depth)
49 return;
50 m_depth = depth;
51}
52
53void QSSGRenderTextureData::setFormat(QSSGRenderTextureFormat format)
54{
55 if (m_format == format)
56 return;
57
58 m_format = format;
59}
60
61void QSSGRenderTextureData::setHasTransparency(bool hasTransparency)
62{
63 if (m_hasTransparency == hasTransparency)
64 return;
65
66 m_hasTransparency = hasTransparency;
67}
68
69QT_END_NAMESPACE
Combined button and popup list for selecting options.