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
qquick3dtextureproviderextension.h
Go to the documentation of this file.
1// Copyright (C) 2025 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
6#ifndef QQUICK3DTEXTUREPROVIDEREXTENSION_H
7#define QQUICK3DTEXTUREPROVIDEREXTENSION_H
8
9#include <QtQuick3D/QQuick3DRenderExtension>
10#include <QtQml/QQmlEngine>
11
12QT_BEGIN_NAMESPACE
13
14class QQuick3DTextureProviderExtensionPrivate;
15
16class Q_QUICK3D_EXPORT QQuick3DTextureProviderExtension : public QQuick3DRenderExtension
17{
18 Q_OBJECT
19 Q_DECLARE_PRIVATE(QQuick3DTextureProviderExtension)
20
21 Q_PROPERTY(SamplerHint samplerHint READ samplerHint WRITE setSamplerHint NOTIFY samplerHintChanged FINAL)
22 QML_NAMED_ELEMENT(TextureProviderExtension)
23 QML_UNCREATABLE("TextureProviderExtension is an abstract type")
24 QML_ADDED_IN_VERSION(6, 11)
25public:
26 // Sampler Types
27 enum class SamplerHint {
28 Sampler2D,
29 Sampler2DArray,
30 Sampler3D,
31 SamplerCube,
32 SamplerCubeArray,
33 SamplerBuffer,
34 };
35 Q_ENUM(SamplerHint)
36
37 explicit QQuick3DTextureProviderExtension(QQuick3DObject *parent = nullptr);
38 ~QQuick3DTextureProviderExtension() override;
39
40 SamplerHint samplerHint() const;
41 void setSamplerHint(SamplerHint newSamplerHint);
42
43Q_SIGNALS:
44 void samplerHintChanged();
45
46protected:
47 bool event(QEvent *event) override;
48 QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) override;
49};
50
51QT_END_NAMESPACE
52
53#endif // QQUICK3DTEXTUREPROVIDEREXTENSION_H
Combined button and popup list for selecting options.