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.