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

Classes

struct  SceneLoadResult
 Scene loading result. More...
 

Typedefs

using SceneLoader = Expected<ObjectPtr>( * )( const std::filesystem::path&, std::string*, ProgressCallback )
 
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

◆ SceneLoader

using MR::SceneLoad::SceneLoader = Expected<ObjectPtr>( * )( const std::filesystem::path&, std::string*, ProgressCallback )

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.