1// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
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 "qsceneexportfactory_p.h"
5#include "qsceneexportplugin_p.h"
6#include "qsceneexporter_p.h"
7
8#include <QtCore/qcoreapplication.h>
9#include <QtCore/qdir.h>
10
11#include <private/qfactoryloader_p.h>
12
13QT_BEGIN_NAMESPACE
14
15namespace Qt3DRender {
16
17Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, (QSceneExportFactoryInterface_iid, QLatin1String("/sceneparsers"), Qt::CaseInsensitive))
18
19QStringList QSceneExportFactory::keys()
20{
21 return loader()->keyMap().values();
22}
23
24QSceneExporter *QSceneExportFactory::create(const QString &name, const QStringList &args)
25{
26 return qLoadPlugin<QSceneExporter, QSceneExportPlugin>(loader: loader(), key: name, args);
27}
28
29} // namespace Qt3DRender
30
31QT_END_NAMESPACE
32

source code of qt3d/src/render/io/qsceneexportfactory.cpp