GLTFExporter Class

(Qt3DRender::GLTFExporter)

Manages the export of a 3D scene to the GLTF format. More...

Header: #include <GLTFExporter>
qmake: QT += 3drender

Public Types

class GltfOptions
class MaterialInfo
class MeshInfo
class Node

Public Functions

GLTFExporter()
~GLTFExporter()
bool exportScene(Qt3DCore::QEntity *sceneRoot, const QString &outDir, const QString &exportName, const QVariantHash &options)

Detailed Description

Manages the export of a 3D scene to the GLTF format.

Handles the export of a 3D scene to the GLTF format.

Member Function Documentation

GLTFExporter::GLTFExporter()

Default constructs an instance of GLTFExporter.

GLTFExporter::~GLTFExporter()

Destroys the instance of GLTFExporter.

bool GLTFExporter::exportScene(Qt3DCore::QEntity *sceneRoot, const QString &outDir, const QString &exportName, const QVariantHash &options)

Exports the scene to the GLTF format

sceneRoot is the root entity that will be exported. If the sceneRoot does not have any exportable components, it is not exported itself.

outDir is the directory in which the scene export is created.

exportName is the name of the directory created in outDir that will hold the exported scene.

options contain the export options.

Returns true if the export was carried out successfully.

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.