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_p.h
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
4#ifndef QSSGRENDERTEXTUREDATA_H
5#define QSSGRENDERTEXTUREDATA_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick3DRuntimeRender/private/qssgrendergraphobject_p.h>
19#include <QtQuick3DRuntimeRender/private/qssgrenderimagetexture_p.h>
20#include <QtQuick3DRuntimeRender/private/qssgrenderbuffermanager_p.h>
21#include <QtQuick3DUtils/private/qssgrenderbasetypes_p.h>
22#include <QtCore/qsize.h>
23#include <QtCore/qbytearray.h>
24
26
27class Q_QUICK3DRUNTIMERENDER_EXPORT QSSGRenderTextureData : public QSSGRenderGraphObject
28{
29public:
30 explicit QSSGRenderTextureData();
31 // it's specially used for Type::Skin
33 virtual ~QSSGRenderTextureData();
34
35 const QByteArray &textureData() const;
36 void setTextureData(const QByteArray &data);
37
38 QSize size() const;
39 void setSize(const QSize &size);
40
41 int depth() const;
42 void setDepth(int depth);
43
46
47 bool hasTransparancy() const;
48 void setHasTransparency(bool hasTransparency);
49
50 uint32_t generationId() const;
51
53
54protected:
55 Q_DISABLE_COPY(QSSGRenderTextureData)
56
57 void markDirty();
58
61 int m_depth = 0;
63 bool m_hasTransparency = false;
64 uint32_t m_generationId = 1;
65};
66
68
69#endif // QSSGRENDERTEXTUREDATA_H
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
widget setFormat(format)
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
GLint GLsizei GLsizei GLenum format