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_LAYER_H |
5 | #define QT3DRENDER_RENDER_LAYER_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 <QStringList> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace Qt3DRender { |
25 | |
26 | class QLayer; |
27 | |
28 | namespace Render { |
29 | |
30 | class LayerManager; |
31 | |
32 | class Layer : public BackendNode |
33 | { |
34 | public: |
35 | Layer(); |
36 | ~Layer(); |
37 | void cleanup(); |
38 | |
39 | // QBackendNode interface |
40 | bool recursive() const; |
41 | void setRecursive(bool recursive); |
42 | |
43 | void syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) override; |
44 | |
45 | private: |
46 | bool m_recursive; |
47 | }; |
48 | |
49 | } // namespace Render |
50 | |
51 | } // namespace Qt3DRender |
52 | |
53 | QT_END_NAMESPACE |
54 | |
55 | #endif // QT3DRENDER_RENDER_LAYER_H |
56 | |