Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qssgassetimporterfactory.cpp
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
7
8#include <QtCore/qdebug.h>
9#include <QtCore/private/qfactoryloader_p.h>
10#include <QtCore/QCoreApplication>
11#include <QtCore/QDir>
12
14
15Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, (QSSGAssetImporterFactoryInterface_iid, QLatin1String("/assetimporters"), Qt::CaseInsensitive))
16
17QStringList QSSGAssetImporterFactory::keys()
18{
19 return loader->keyMap().values();
20}
21
22QSSGAssetImporter *QSSGAssetImporterFactory::create(const QString &name, const QStringList &args)
23{
24 return qLoadPlugin<QSSGAssetImporter, QSSGAssetImporterPlugin>(loader(), name, args);
25}
26
27QT_END_NAMESPACE
#define QSSGAssetImporterFactoryInterface_iid