Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
13
19
24
29
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
66
75
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]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum type
GLint GLsizei GLsizei GLenum format
Definition moc.h:23