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_QEFFECT_H
5#define QT3DRENDER_QEFFECT_H
6
7#include <Qt3DCore/qnode.h>
8#include <Qt3DRender/qt3drender_global.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13
14class QParameter;
15class QTechnique;
16class QEffectPrivate;
17
18class Q_3DRENDERSHARED_EXPORT QEffect : public Qt3DCore::QNode
19{
20 Q_OBJECT
21public:
22 explicit QEffect(Qt3DCore::QNode *parent = nullptr);
23 ~QEffect();
24
25 void addParameter(QParameter *parameter);
26 void removeParameter(QParameter *parameter);
27 QList<QParameter *> parameters() const;
28
29 void addTechnique(QTechnique *t);
30 void removeTechnique(QTechnique *t);
31 QList<QTechnique *> techniques() const;
32
33protected:
34 explicit QEffect(QEffectPrivate &dd, Qt3DCore::QNode *parent = nullptr);
35
36private:
37 Q_DECLARE_PRIVATE(QEffect)
38};
39
40} // namespace Qt3DRender
41
42QT_END_NAMESPACE
43
44#endif // QT3DRENDER_QEFFECT_H
45

source code of qt3d/src/render/materialsystem/qeffect.h