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>`.
15typedef 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>`.
16typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit; // Defined in `#include <MRCMisc/std_optional_MR_LengthUnit.h>`.
17typedef struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject; // Defined in `#include <MRCMisc/std_shared_ptr_MR_SceneRootObject.h>`.
18typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
19typedef struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path; // Defined in `#include <MRCMisc/std_vector_std_filesystem_path.h>`.
20
21
24
28
35
42
49
55
60
66
70
75
80
83
86
90
93
96
101
107
112
118
124
129
135
141
146
152
154// TODO: user-defined error format
159
161// TODO: user-defined error format
166MRC_API void MR_SceneLoad_Result_Set_errorSummary(MR_SceneLoad_Result *_this, const char *value, const char *value_end);
167
169// TODO: user-defined error format
174
176// TODO: user-defined warning format
181
183// TODO: user-defined warning format
188MRC_API void MR_SceneLoad_Result_Set_warningSummary(MR_SceneLoad_Result *_this, const char *value, const char *value_end);
189
191// TODO: user-defined warning format
196
200
205
212MRC_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);
213
216
219
223
226
229
234
243
250
251#ifdef __cplusplus
252} // extern "C"
253#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 MRE57.h:22
struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit
Definition MRLoadedObjects.h:13
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:15
struct MR_SceneLoad_Settings MR_SceneLoad_Settings
Generated from class MR::SceneLoad::Settings.
Definition MRSceneLoad.h:23
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_SceneLoad_Settings * MR_SceneLoad_Settings_ConstructFrom(const MR_LengthUnit *targetUnit, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
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 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:17
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:19
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 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:27
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_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 bool * MR_SceneLoad_Result_GetMutable_isSceneConstructed(MR_SceneLoad_Result *_this)
MR_LengthUnit
Definition MRUnitInfo.h:22
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11