1 | // Copyright (C) 2017 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #include "qt3dquickscene2d_global_p.h" |
5 | #include "qt3dquickscene2dnodefactory_p.h" |
6 | |
7 | #include <private/qrenderaspect_p.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | namespace Qt3DRender { |
12 | void initScene2dPlugin() |
13 | { |
14 | Qt3DRender::QRenderAspectPrivate::configurePlugin(plugin: QLatin1String("scene2d")); |
15 | } |
16 | |
17 | Q_COREAPP_STARTUP_FUNCTION(initScene2dPlugin) |
18 | |
19 | namespace Quick { |
20 | |
21 | |
22 | void Quick3DScene2D_initialize() |
23 | { |
24 | Qt3DCore::QAbstractNodeFactory::registerNodeFactory(factory: QuickScene2DNodeFactory::instance()); |
25 | } |
26 | |
27 | void Quick3DScene2D_registerType(const char *className, const char *quickName, int major, int minor) |
28 | { |
29 | QuickScene2DNodeFactory::instance()->registerType(className, quickName, major, minor); |
30 | } |
31 | |
32 | } // namespace Quick |
33 | } // namespace Qt3DRender |
34 | |
35 | QT_END_NAMESPACE |
36 |