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={}) |
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
using MR::SceneLoad::SceneLoader = Expected<ObjectPtr>( * )( const std::filesystem::path&, std::string*, ProgressCallback ) |
MRMESH_API void MR::SceneLoad::asyncFromAnySupportedFormat | ( | const std::vector< std::filesystem::path > & | files, |
PostLoadCallback | postLoadCallback, | ||
ProgressCallback | progressCallback = {} ) |
MRMESH_API SceneLoadResult MR::SceneLoad::fromAnySupportedFormat | ( | const std::vector< std::filesystem::path > & | files, |
ProgressCallback | callback = {} ) |
Load scene from file.