1// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_RENDER_QUICK_QUICK3DSHADERDATAARRAY_P_H
5#define QT3DRENDER_RENDER_QUICK_QUICK3DSHADERDATAARRAY_P_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 for the convenience
12// of other Qt classes. 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 <Qt3DCore/qnode.h>
19#include <QtQml/QQmlListProperty>
20
21#include <Qt3DQuickRender/private/qt3dquickrender_global_p.h>
22#include <Qt3DQuickRender/private/quick3dshaderdata_p.h>
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender {
27
28class QShaderData;
29
30namespace Render {
31namespace Quick {
32
33class Quick3DShaderDataArrayPrivate;
34class Quick3DShaderData;
35
36class Q_3DQUICKRENDERSHARED_PRIVATE_EXPORT Quick3DShaderDataArray : public Qt3DCore::QNode
37{
38 Q_OBJECT
39 Q_PROPERTY(QQmlListProperty<Qt3DRender::QShaderData> values READ valuesList)
40 Q_CLASSINFO("DefaultProperty", "values")
41
42public:
43 explicit Quick3DShaderDataArray(Qt3DCore::QNode *parent = nullptr);
44 QQmlListProperty<QShaderData> valuesList();
45 QList<QShaderData *> values() const;
46
47private:
48 Q_DECLARE_PRIVATE(Quick3DShaderDataArray)
49};
50
51} // namespace Quick
52} // namespace Render
53} // namespace Qt3DRender
54
55QT_END_NAMESPACE
56
57Q_DECLARE_METATYPE(Qt3DRender::Render::Quick::Quick3DShaderDataArray*) // LCOV_EXCL_LINE
58
59#endif // QT3DRENDER_RENDER_QUICK_QUICK3DSHADERDATAARRAY_P_H
60

source code of qt3d/src/quick3d/quick3drender/items/quick3dshaderdataarray_p.h