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_EFFECT_H
5#define QT3DRENDER_RENDER_EFFECT_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 <Qt3DRender/private/backendnode_p.h>
19#include <Qt3DRender/qt3drender_global.h>
20#include <Qt3DRender/private/parameterpack_p.h>
21
22QT_BEGIN_NAMESPACE
23
24namespace Qt3DRender {
25
26class QTechnique;
27
28namespace Render {
29
30class Q_3DRENDERSHARED_PRIVATE_EXPORT Effect : public BackendNode
31{
32public:
33 Effect();
34 ~Effect();
35 void cleanup();
36
37 void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override;
38 void appendRenderTechnique(Qt3DCore::QNodeId t);
39
40 QList<Qt3DCore::QNodeId> techniques() const;
41 QList<Qt3DCore::QNodeId> parameters() const;
42
43private:
44 QList<Qt3DCore::QNodeId> m_techniques;
45 ParameterPack m_parameterPack;
46};
47
48} // namespace Render
49
50} // namespace Qt3DRender
51
52QT_END_NAMESPACE
53
54#endif // QT3DRENDER_RENDER_EFFECT_H
55

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