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={}) |
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
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.