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_MATERIAL_H |
5 | #define QT3DRENDER_RENDER_MATERIAL_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 <QVariant> |
19 | |
20 | #include <Qt3DRender/private/backendnode_p.h> |
21 | #include <Qt3DRender/private/parameterpack_p.h> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace Qt3DRender { |
26 | |
27 | class QMaterial; |
28 | class QParameter; |
29 | |
30 | namespace Render { |
31 | |
32 | class Renderer; |
33 | class GraphicsContext; |
34 | class Technique; |
35 | class Effect; |
36 | class MaterialManager; |
37 | |
38 | class Q_3DRENDERSHARED_PRIVATE_EXPORT Material : public BackendNode |
39 | { |
40 | public: |
41 | Material(); |
42 | ~Material(); |
43 | void cleanup(); |
44 | |
45 | void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override; |
46 | |
47 | QList<Qt3DCore::QNodeId> parameters() const; |
48 | Qt3DCore::QNodeId effect() const; |
49 | |
50 | private: |
51 | ParameterPack m_parameterPack; |
52 | Qt3DCore::QNodeId m_effectUuid; |
53 | }; |
54 | |
55 | } // namespace Render |
56 | } // namespace Qt3DRender |
57 | |
58 | QT_END_NAMESPACE |
59 | |
60 | #endif // QT3DRENDER_RENDER_MATERIAL_H |
61 | |