1 | // Copyright (C) 2017 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 | #include "qt3dquickextras_global_p.h" |
5 | |
6 | #include <Qt3DQuickExtras/private/qt3dquickextrasnodefactory_p.h> |
7 | #include <QtQml/private/qqmlglobal_p.h> |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | namespace Qt3DExtras { |
12 | namespace Quick { |
13 | |
14 | void Quick3DExtras_initialize() |
15 | { |
16 | Qt3DCore::QAbstractNodeFactory::registerNodeFactory(factory: QuickExtrasNodeFactory::instance()); |
17 | } |
18 | |
19 | void Quick3DExtras_registerType(const char *className, const char *quickName, int major, int minor) |
20 | { |
21 | QuickExtrasNodeFactory::instance()->registerType(className, quickName, major, minor); |
22 | } |
23 | |
24 | } // namespace Quick |
25 | } // namespace Qt3DExtras |
26 | |
27 | QT_END_NAMESPACE |
28 |