1// Copyright (C) 2015 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 "qtquickscene3dplugin.h"
5
6#include <QtQml>
7
8#include <scene3ditem_p.h>
9
10QT_BEGIN_NAMESPACE
11
12void QtQuickScene3DPlugin::registerTypes(const char *uri)
13{
14 qmlRegisterType<Qt3DRender::Scene3DItem>(uri, versionMajor: 2, versionMinor: 0, qmlName: "Scene3D");
15 qmlRegisterType<Qt3DRender::Scene3DItem, 14>(uri, versionMajor: 2, versionMinor: 14, qmlName: "Scene3D");
16
17 // The minor version used to be the current Qt 5 minor. For compatibility it is the last
18 // Qt 5 release.
19 qmlRegisterModule(uri, versionMajor: 2, versionMinor: 15);
20}
21
22QT_END_NAMESPACE
23
24#include "moc_qtquickscene3dplugin.cpp"
25

source code of qt3d/src/quick3d/imports/scene3d/qtquickscene3dplugin.cpp