MeshLib
 
Loading...
Searching...
No Matches
MRGltfSerializer.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#ifndef MRMESH_NO_GLTF
5#include "MRObject.h"
6#include "MRExpected.h"
7
8namespace MR
9{
10//loads scene from glTF file in a new container object
12//saves scene to a glTF file
13MRMESH_API VoidOrErrStr serializeObjectTreeToGltf( const Object& root, const std::filesystem::path& file, ProgressCallback callback = {} );
14
15}
16#endif
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
named object in the data model
Definition MRObject.h:60
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:589
Definition MRCameraOrientationPlugin.h:7
MRMESH_API VoidOrErrStr serializeObjectTreeToGltf(const Object &root, const std::filesystem::path &file, ProgressCallback callback={})
tl::expected< T, E > Expected
Definition MRExpected.h:49
MRMESH_API Expected< std::shared_ptr< Object > > deserializeObjectTreeFromGltf(const std::filesystem::path &file, ProgressCallback callback={})
Expected< void > VoidOrErrStr
return type for a void function that can produce an error string
Definition MRExpected.h:60