Qt 6.x
The Qt SDK
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
5
7
10{
11
12}
13
16{
17
18}
19
21{
22
23}
24
26{
27 return m_textureData;
28}
29
31{
33 markDirty();
34}
35
37{
38 return m_size;
39}
40
42{
43 if (m_size == size)
44 return;
45 m_size = size;
46 markDirty();
47}
48
50{
51 return m_depth;
52}
53
55{
56 if (m_depth == depth)
57 return;
58 m_depth = depth;
59 markDirty();
60}
61
63{
64 return m_format;
65}
66
68{
69 if (m_format == format)
70 return;
71
73 markDirty();
74}
75
77{
78 return m_hasTransparency;
79}
80
82{
83 if (m_hasTransparency == hasTransparency)
84 return;
85
86 m_hasTransparency = hasTransparency;
87 markDirty();
88}
89
91{
92 return m_generationId;
93}
94
96{
97 // The generation ID changes every time a property of this texture
98 // changes so that the buffer manager can compare the generation it
99 // holds vs the current generation.
101}
102
\inmodule QtCore
Definition qbytearray.h:57
const QByteArray & textureData() const
void setSize(const QSize &size)
void setTextureData(const QByteArray &data)
void setFormat(QSSGRenderTextureFormat format)
QSSGRenderTextureFormat format() const
void setHasTransparency(bool hasTransparency)
QSSGRenderTextureFormat m_format
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
GLint GLenum GLsizei GLsizei GLsizei depth
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum type
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLint GLsizei GLsizei GLenum format
Definition moc.h:24