1// Copyright (C) 2016 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#ifndef QT3DQUICK3DEXTRASPLUGIN_H
5#define QT3DQUICK3DEXTRASPLUGIN_H
6
7#include <QtQml/QQmlExtensionPlugin>
8
9static void initResources()
10{
11#ifdef QT_STATIC
12 Q_INIT_RESOURCE(extras); // from the Qt3DQuickExtras module
13#endif
14}
15
16QT_BEGIN_NAMESPACE
17
18class Qt3DQuick3DExtrasPlugin : public QQmlExtensionPlugin
19{
20 Q_OBJECT
21 Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
22public:
23 Qt3DQuick3DExtrasPlugin(QObject *parent = nullptr) : QQmlExtensionPlugin(parent) { initResources(); }
24 void registerTypes(const char *uri) override;
25};
26
27QT_END_NAMESPACE
28
29#endif // QT3DQUICK3DEXTRASPLUGIN_H
30

source code of qt3d/src/quick3d/imports/extras/qt3dquick3dextrasplugin.h