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
9QT_BEGIN_NAMESPACE
10
11namespace Qt3DRender {
12void initScene2dPlugin()
13{
14 Qt3DRender::QRenderAspectPrivate::configurePlugin(plugin: QLatin1String("scene2d"));
15}
16
17Q_COREAPP_STARTUP_FUNCTION(initScene2dPlugin)
18
19namespace Quick {
20
21
22void Quick3DScene2D_initialize()
23{
24 Qt3DCore::QAbstractNodeFactory::registerNodeFactory(factory: QuickScene2DNodeFactory::instance());
25}
26
27void 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
35QT_END_NAMESPACE
36

source code of qt3d/src/quick3d/quick3dscene2d/qt3dquickscene2d_global.cpp