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
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender {
27namespace Render {
28
29class Scene2DNode;
30
31class Scene2DNodeManager : public Qt3DCore::QResourceManager<
32 Render::Quick::Scene2D,
33 Qt3DCore::QNodeId,
34 Qt3DCore::ObjectLevelLockingPolicy>
35{
36};
37
38class Scene2DPlugin : public QRenderPlugin
39{
40public:
41 Scene2DPlugin();
42 ~Scene2DPlugin();
43 bool registerBackendTypes(QRenderAspect *aspect, AbstractRenderer *renderer) override;
44 bool unregisterBackendTypes(QRenderAspect *aspect) override;
45private:
46 Render::Scene2DNodeManager *m_scene2dNodeManager;
47};
48
49} // Render
50} // namespace Qt3DRender
51
52QT_END_NAMESPACE
53
54#endif // QT3DRENDER_SCENE2DPLUGIN_H
55

source code of qt3d/src/plugins/renderplugins/scene2d/scene2dplugin.h