MeshLib
 
Loading...
Searching...
No Matches
MR::SceneLoad Namespace Reference

Classes

struct  SceneLoadResult
 Scene loading result. More...
 

Typedefs

using PostLoadCallback = std::function<void ( SceneLoadResult )>
 

Functions

MRMESH_API SceneLoadResult fromAnySupportedFormat (const std::vector< std::filesystem::path > &files, ProgressCallback callback={})
 Load scene from file.
 
MRMESH_API void asyncFromAnySupportedFormat (const std::vector< std::filesystem::path > &files, PostLoadCallback postLoadCallback, ProgressCallback progressCallback={})
 

Typedef Documentation

◆ PostLoadCallback

using MR::SceneLoad::PostLoadCallback = std::function<void ( SceneLoadResult )>

Async load scene from file calls postLoadCallback from a working thread (or from the main thread on single-thread platforms) after all files being loaded

Function Documentation

◆ asyncFromAnySupportedFormat()

MRMESH_API void MR::SceneLoad::asyncFromAnySupportedFormat ( const std::vector< std::filesystem::path > & files,
PostLoadCallback postLoadCallback,
ProgressCallback progressCallback = {} )

◆ fromAnySupportedFormat()

MRMESH_API SceneLoadResult MR::SceneLoad::fromAnySupportedFormat ( const std::vector< std::filesystem::path > & files,
ProgressCallback callback = {} )

Load scene from file.