1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#include <QtQml/qqmlextensionplugin.h>
5#include <QtQml/qqml.h>
6#include <QtQml/qqmlengine.h>
7
8#include <QtQuick3DPhysics/qtquick3dphysicsglobal.h>
9
10QT_BEGIN_NAMESPACE
11
12class QtQuick3DPhysicsPlugin : public QQmlEngineExtensionPlugin
13{
14 Q_OBJECT
15 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
16
17public:
18 QtQuick3DPhysicsPlugin(QObject *parent = nullptr) : QQmlEngineExtensionPlugin(parent)
19 {
20 volatile auto registration = &qml_register_types_QtQuick3D_Physics;
21 Q_UNUSED(registration);
22 }
23};
24
25QT_END_NAMESPACE
26
27#include "plugin.moc"
28

source code of qtquick3dphysics/src/quick3dphysics/plugin.cpp