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
qquick3dtexturedata.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 QQUICK3DTEXTUREDATA_H
5#define QQUICK3DTEXTUREDATA_H
6
7#include <QtQuick3D/qquick3dobject.h>
8
10
12
13class Q_QUICK3D_EXPORT QQuick3DTextureData : public QQuick3DObject
14{
16 Q_DECLARE_PRIVATE(QQuick3DTextureData)
17
18 QML_NAMED_ELEMENT(TextureData)
19 QML_UNCREATABLE("TextureData is Abstract")
21public:
62
63 QQuick3DTextureData(QQuick3DObject *parent = nullptr);
65
66 const QByteArray textureData() const;
67 void setTextureData(const QByteArray &data);
68
69 QSize size() const;
70 void setSize(const QSize &size);
71
72 int depth() const;
73 void setDepth(int depth);
74
75 Format format() const;
77
78 bool hasTransparency() const;
79 void setHasTransparency(bool hasTransparency);
80
83
84protected:
85 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
86 void markAllDirty() override;
87};
88
90
91#endif // QQUICK3DTEXTUREDATA_H
\inmodule QtCore
Definition qbytearray.h:57
\qmltype Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DObject \inherits QtObject
\qmltype TextureData \inherits Object3D \inqmlmodule QtQuick3D \instantiates QQuick3DTextureData
Format
Returns the color format of the texture data assigned in \l textureData property.
\inmodule QtCore
Definition qsize.h:25
Format
Definition ddsheader.h:14
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
#define QML_UNCREATABLE(REASON)
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_ENUM(x)
#define Q_OBJECT
#define Q_SIGNALS