MeshLib Documentation
Loading...
Searching...
No Matches
MRGltf.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4#ifndef MRIOEXTRAS_NO_GLTF
5#include "exports.h"
6
7#include <MRMesh/MRExpected.h>
8#include <MRMesh/MRObject.h>
9
10namespace MR
11{
12
13// loads scene from glTF file in a new container object
14MRIOEXTRAS_API Expected<std::shared_ptr<Object>> deserializeObjectTreeFromGltf( const std::filesystem::path& file, ProgressCallback callback = {} );
15// saves scene to a glTF file
16MRIOEXTRAS_API Expected<void> serializeObjectTreeToGltf( const Object& root, const std::filesystem::path& file, ProgressCallback callback = {} );
17
18} // namespace MR
19#endif
named object in the data model
Definition MRObject.h:60
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRIOEXTRAS_API Expected< std::shared_ptr< Object > > deserializeObjectTreeFromGltf(const std::filesystem::path &file, ProgressCallback callback={})
MRIOEXTRAS_API Expected< void > serializeObjectTreeToGltf(const Object &root, const std::filesystem::path &file, ProgressCallback callback={})