1 | // Copyright (C) 2017 The Qt Company Ltd and/or its subsidiary(-ies). |
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_SCENE2DPLUGIN_H |
5 | #define QT3DRENDER_SCENE2DPLUGIN_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 <private/qrenderaspect_p.h> |
19 | #include <private/qrenderplugin_p.h> |
20 | #include <private/abstractrenderer_p.h> |
21 | #include <private/qresourcemanager_p.h> |
22 | #include <private/scene2d_p.h> |
23 | |
24 | QT_BEGIN_NAMESPACE |
25 | |
26 | namespace Qt3DRender { |
27 | namespace Render { |
28 | |
29 | class Scene2DNode; |
30 | |
31 | class Scene2DNodeManager : public Qt3DCore::QResourceManager< |
32 | Render::Quick::Scene2D, |
33 | Qt3DCore::QNodeId, |
34 | Qt3DCore::ObjectLevelLockingPolicy> |
35 | { |
36 | }; |
37 | |
38 | class Scene2DPlugin : public QRenderPlugin |
39 | { |
40 | public: |
41 | Scene2DPlugin(); |
42 | ~Scene2DPlugin(); |
43 | bool registerBackendTypes(QRenderAspect *aspect, AbstractRenderer *renderer) override; |
44 | bool unregisterBackendTypes(QRenderAspect *aspect) override; |
45 | private: |
46 | Render::Scene2DNodeManager *m_scene2dNodeManager; |
47 | }; |
48 | |
49 | } // Render |
50 | } // namespace Qt3DRender |
51 | |
52 | QT_END_NAMESPACE |
53 | |
54 | #endif // QT3DRENDER_SCENE2DPLUGIN_H |
55 | |