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 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DRender { |
13 | |
14 | class QParameter; |
15 | class QTechnique; |
16 | class QEffectPrivate; |
17 | |
18 | class Q_3DRENDERSHARED_EXPORT QEffect : public Qt3DCore::QNode |
19 | { |
20 | Q_OBJECT |
21 | public: |
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 | |
33 | protected: |
34 | explicit QEffect(QEffectPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
35 | |
36 | private: |
37 | Q_DECLARE_PRIVATE(QEffect) |
38 | }; |
39 | |
40 | } // namespace Qt3DRender |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | #endif // QT3DRENDER_QEFFECT_H |
45 | |