MeshLib C Docs
Loading...
Searching...
No Matches
MRSceneLoad.h
Go to the documentation of this file.
1#pragma once
2
4#include <MRCMisc/common.h>
5#include <MRCMisc/exports.h>
6
7#include <stdbool.h>
8#include <stddef.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
16typedef struct MR_std_function_void_from_MR_SceneLoad_Result MR_std_function_void_from_MR_SceneLoad_Result; // Defined in `#include <MRCMisc/std_function_void_from_MR_SceneLoad_Result.h>`.
17typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit; // Defined in `#include <MRCMisc/std_optional_MR_LengthUnit.h>`.
18typedef struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject; // Defined in `#include <MRCMisc/std_shared_ptr_MR_SceneRootObject.h>`.
19typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
20typedef struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path; // Defined in `#include <MRCMisc/std_vector_std_filesystem_path.h>`.
21
22
26
31
38
45
52
58
63
69
74
78
83
87
92
97
100
103
107
110
113
118
124
129
135
141
146
152
158
163
169
171// TODO: user-defined error format
176
178// TODO: user-defined error format
183MRC_API void MR_SceneLoad_Result_Set_errorSummary(MR_SceneLoad_Result *_this, const char *value, const char *value_end);
184
186// TODO: user-defined error format
191
193// TODO: user-defined warning format
198
200// TODO: user-defined warning format
205MRC_API void MR_SceneLoad_Result_Set_warningSummary(MR_SceneLoad_Result *_this, const char *value, const char *value_end);
206
208// TODO: user-defined warning format
213
217
222
229MRC_API MR_SceneLoad_Result *MR_SceneLoad_Result_ConstructFrom(MR_PassBy scene_pass_by, MR_std_shared_ptr_MR_SceneRootObject *scene, bool isSceneConstructed, MR_PassBy loadedFiles_pass_by, MR_std_vector_std_filesystem_path *loadedFiles, const char *errorSummary, const char *errorSummary_end, const char *warningSummary, const char *warningSummary_end);
230
233
236
240
243
246
251
260
267
268#ifdef __cplusplus
269} // extern "C"
270#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_string MR_std_string
Definition MRCtm.h:32
struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit
Definition MRCtm.h:30
MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_AssignFromAnother(MR_SceneLoad_Settings *_this, MR_PassBy _other_pass_by, MR_SceneLoad_Settings *_other)
MRC_API void MR_SceneLoad_Settings_Set_targetUnit(MR_SceneLoad_Settings *_this, const MR_LengthUnit *value)
struct MR_std_function_void_from_MR_SceneLoad_Result MR_std_function_void_from_MR_SceneLoad_Result
Definition MRSceneLoad.h:16
struct MR_SceneLoad_Settings MR_SceneLoad_Settings
Definition MRSceneLoad.h:25
MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_OffsetMutablePtr(MR_SceneLoad_Result *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_SceneLoad_Result_Set_loadedFiles(MR_SceneLoad_Result *_this, MR_PassBy value_pass_by, MR_std_vector_std_filesystem_path *value)
MRC_API MR_SceneLoad_Result * MR_SceneLoad_fromAnySupportedFormat(const MR_std_vector_std_filesystem_path *files, const MR_SceneLoad_Settings *settings)
MRC_API void MR_SceneLoad_Result_Set_warningSummary(MR_SceneLoad_Result *_this, const char *value, const char *value_end)
Warning summary text.
MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_DefaultConstruct(void)
MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_DefaultConstructArray(size_t num_elems)
MRC_API MR_std_optional_MR_LengthUnit * MR_SceneLoad_Settings_GetMutable_targetUnit(MR_SceneLoad_Settings *_this)
MRC_API MR_std_vector_std_filesystem_path * MR_SceneLoad_Result_GetMutable_loadedFiles(MR_SceneLoad_Result *_this)
MRC_API const MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref * MR_SceneLoad_Settings_Get_openFolder(const MR_SceneLoad_Settings *_this)
MRC_API void MR_SceneLoad_Settings_DestroyArray(const MR_SceneLoad_Settings *_this)
Destroys a heap-allocated array of MR_SceneLoad_Settings. Does nothing if the pointer is null.
MRC_API void MR_SceneLoad_Result_DestroyArray(const MR_SceneLoad_Result *_this)
Destroys a heap-allocated array of MR_SceneLoad_Result. Does nothing if the pointer is null.
MRC_API const MR_std_optional_MR_LengthUnit * MR_SceneLoad_Settings_Get_targetUnit(const MR_SceneLoad_Settings *_this)
MRC_API void MR_SceneLoad_Result_Set_scene(MR_SceneLoad_Result *_this, MR_PassBy value_pass_by, MR_std_shared_ptr_MR_SceneRootObject *value)
MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_AssignFromAnother(MR_SceneLoad_Result *_this, MR_PassBy _other_pass_by, MR_SceneLoad_Result *_other)
struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject
Definition MRSceneLoad.h:18
MRC_API void MR_SceneLoad_asyncFromAnySupportedFormat(const MR_std_vector_std_filesystem_path *files, const MR_std_function_void_from_MR_SceneLoad_Result *postLoadCallback, const MR_SceneLoad_Settings *settings)
struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path
Definition MRSceneLoad.h:20
MRC_API void MR_SceneLoad_Result_Set_errorSummary(MR_SceneLoad_Result *_this, const char *value, const char *value_end)
Error summary text.
MRC_API void MR_SceneLoad_Result_Destroy(const MR_SceneLoad_Result *_this)
Destroys a heap-allocated instance of MR_SceneLoad_Result. Does nothing if the pointer is null.
MRC_API const MR_std_string * MR_SceneLoad_Result_Get_errorSummary(const MR_SceneLoad_Result *_this)
Error summary text.
MRC_API MR_std_string * MR_SceneLoad_Result_GetMutable_errorSummary(MR_SceneLoad_Result *_this)
Error summary text.
MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_DefaultConstructArray(size_t num_elems)
MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_ConstructFromAnother(MR_PassBy _other_pass_by, MR_SceneLoad_Result *_other)
MRC_API const MR_std_function_bool_from_float * MR_SceneLoad_Settings_Get_progress(const MR_SceneLoad_Settings *_this)
MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_ConstructFrom(MR_PassBy scene_pass_by, MR_std_shared_ptr_MR_SceneRootObject *scene, bool isSceneConstructed, MR_PassBy loadedFiles_pass_by, MR_std_vector_std_filesystem_path *loadedFiles, const char *errorSummary, const char *errorSummary_end, const char *warningSummary, const char *warningSummary_end)
MRC_API void MR_SceneLoad_Result_Set_isSceneConstructed(MR_SceneLoad_Result *_this, bool value)
MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_SceneLoad_Settings *_other)
MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_DefaultConstruct(void)
MRC_API const MR_std_string * MR_SceneLoad_Result_Get_warningSummary(const MR_SceneLoad_Result *_this)
Warning summary text.
MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_ConstructFrom(const MR_LengthUnit *targetUnit, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress, MR_PassBy openFolder_pass_by, MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref *openFolder)
MRC_API void MR_SceneLoad_Settings_Set_progress(MR_SceneLoad_Settings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_Result_GetMutable_scene(MR_SceneLoad_Result *_this)
struct MR_SceneLoad_Result MR_SceneLoad_Result
Definition MRSceneLoad.h:30
MRC_API const bool * MR_SceneLoad_Result_Get_isSceneConstructed(const MR_SceneLoad_Result *_this)
MRC_API MR_std_function_bool_from_float * MR_SceneLoad_Settings_GetMutable_progress(MR_SceneLoad_Settings *_this)
MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_OffsetMutablePtr(MR_SceneLoad_Settings *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_Result_Get_scene(const MR_SceneLoad_Result *_this)
MRC_API MR_std_string * MR_SceneLoad_Result_GetMutable_warningSummary(MR_SceneLoad_Result *_this)
Warning summary text.
MRC_API void MR_SceneLoad_Settings_Set_openFolder(MR_SceneLoad_Settings *_this, MR_PassBy value_pass_by, MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref *value)
struct MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref
Definition MRSceneLoad.h:15
MRC_API void MR_SceneLoad_Settings_Destroy(const MR_SceneLoad_Settings *_this)
Destroys a heap-allocated instance of MR_SceneLoad_Settings. Does nothing if the pointer is null.
MRC_API const MR_SceneLoad_Result * MR_SceneLoad_Result_OffsetPtr(const MR_SceneLoad_Result *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_SceneLoad_Settings * MR_SceneLoad_Settings_OffsetPtr(const MR_SceneLoad_Settings *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API const MR_std_vector_std_filesystem_path * MR_SceneLoad_Result_Get_loadedFiles(const MR_SceneLoad_Result *_this)
MRC_API MR_std_function_expected_MR_LoadedObjects_std_string_from_const_std_filesystem_path_ref_const_std_function_bool_func_from_float_ref * MR_SceneLoad_Settings_GetMutable_openFolder(MR_SceneLoad_Settings *_this)
MRC_API bool * MR_SceneLoad_Result_GetMutable_isSceneConstructed(MR_SceneLoad_Result *_this)
MR_LengthUnit
Definition MRUnitInfo.h:22
MR_PassBy
Definition common.h:23
#define MRC_API
Definition exports.h:11