1 | // Copyright (C) 2019 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef ASSIMPIMPORTER_H |
5 | #define ASSIMPIMPORTER_H |
6 | |
7 | #include <QtQuick3DAssetImport/private/qssgassetimporter_p.h> |
8 | #include <QtQuick3DAssetUtils/private/qssgqmlutilities_p.h> |
9 | |
10 | #include <QtCore/QJsonObject> |
11 | #include <QtCore/QUrl> |
12 | #include <QtCore/QStringList> |
13 | |
14 | enum class QSSGRenderComponentType; |
15 | |
16 | QT_BEGIN_NAMESPACE |
17 | |
18 | class AssimpImporter : public QSSGAssetImporter |
19 | { |
20 | public: |
21 | AssimpImporter(); |
22 | ~AssimpImporter() override; |
23 | |
24 | QString name() const override; |
25 | QStringList inputExtensions() const override; |
26 | QString outputExtension() const override; |
27 | QString type() const override; |
28 | QString typeDescription() const override; |
29 | QJsonObject importOptions() const override; |
30 | QString import(const QString &sourceFile, const QDir &savePath, const QJsonObject &options, |
31 | QStringList *generatedFiles) override; |
32 | QString import(const QUrl &sourceFile, const QJsonObject &options, QSSGSceneDesc::Scene &scene) override; |
33 | |
34 | private: |
35 | QJsonObject m_options; |
36 | }; |
37 | |
38 | QT_END_NAMESPACE |
39 | |
40 | #endif // ASSIMPIMPORTER_H |
41 | |