summaryrefslogtreecommitdiffstats
path: root/src/plugins/sceneparsers/gltf/gltfimporter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/sceneparsers/gltf/gltfimporter.h')
-rw-r--r--src/plugins/sceneparsers/gltf/gltfimporter.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/plugins/sceneparsers/gltf/gltfimporter.h b/src/plugins/sceneparsers/gltf/gltfimporter.h
index e97148600..8a8e1b3ee 100644
--- a/src/plugins/sceneparsers/gltf/gltfimporter.h
+++ b/src/plugins/sceneparsers/gltf/gltfimporter.h
@@ -52,13 +52,13 @@
// We mean it.
//
+#include <Qt3DRender/qattribute.h>
+#include <Qt3DRender/qbuffer.h>
#include <QtCore/qjsondocument.h>
#include <QtCore/qjsonobject.h>
#include <QtCore/qhash.h>
-#include <Qt3DRender/qattribute.h>
-#include <Qt3DRender/qbuffer.h>
-#include <private/qsceneimporter_p.h>
+#include <Qt3DRender/private/qsceneimporter_p.h>
QT_BEGIN_NAMESPACE
@@ -98,7 +98,8 @@ public:
// SceneParserInterface interface
void setSource(const QUrl &source) Q_DECL_FINAL;
- bool isFileTypeSupported(const QUrl &source) const Q_DECL_FINAL;
+ void setData(const QByteArray& data, const QString &basePath) Q_DECL_FINAL;
+ bool areFileTypesSupported(const QStringList &extensions) const Q_DECL_FINAL;
Qt3DCore::QEntity *node(const QString &id) Q_DECL_FINAL;
Qt3DCore::QEntity *scene(const QString &id = QString()) Q_DECL_FINAL;
@@ -139,7 +140,7 @@ private:
int stride;
};
- static bool isGLTFPath(const QString &path);
+ static bool isGLTFSupported(const QStringList &extensions);
static void renameFromJson(const QJsonObject& json, QObject * const object );
static bool hasStandardUniformNameFromSemantic(const QString &semantic);
static QString standardAttributeNameFromSemantic(const QString &semantic);