MeshLib C Docs
Loading...
Searching...
No Matches
MRSceneLoad.h File Reference
#include <MRCMesh/MRUnitInfo.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float
 
typedef struct MR_std_function_void_from_MR_SceneLoad_Result MR_std_function_void_from_MR_SceneLoad_Result
 
typedef struct MR_std_optional_MR_LengthUnit MR_std_optional_MR_LengthUnit
 
typedef struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path
 
typedef struct MR_SceneLoad_Settings MR_SceneLoad_Settings
 Generated from class MR::SceneLoad::Settings.
 
typedef struct MR_SceneLoad_Result MR_SceneLoad_Result
 

Functions

MRC_API const MR_std_optional_MR_LengthUnitMR_SceneLoad_Settings_Get_targetUnit (const MR_SceneLoad_Settings *_this)
 
MRC_API void MR_SceneLoad_Settings_Set_targetUnit (MR_SceneLoad_Settings *_this, const MR_LengthUnit *value)
 
MRC_API MR_std_optional_MR_LengthUnitMR_SceneLoad_Settings_GetMutable_targetUnit (MR_SceneLoad_Settings *_this)
 
MRC_API const MR_std_function_bool_from_floatMR_SceneLoad_Settings_Get_progress (const MR_SceneLoad_Settings *_this)
 
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_function_bool_from_floatMR_SceneLoad_Settings_GetMutable_progress (MR_SceneLoad_Settings *_this)
 
MRC_API MR_SceneLoad_SettingsMR_SceneLoad_Settings_DefaultConstruct (void)
 
MRC_API MR_SceneLoad_SettingsMR_SceneLoad_Settings_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_SceneLoad_SettingsMR_SceneLoad_Settings_ConstructFrom (const MR_LengthUnit *targetUnit, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
 
MRC_API const MR_SceneLoad_SettingsMR_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 pointer points to an array element.
 
MRC_API MR_SceneLoad_SettingsMR_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 pointer points to an array element.
 
MRC_API MR_SceneLoad_SettingsMR_SceneLoad_Settings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_SceneLoad_Settings *_other)
 
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 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 MR_SceneLoad_SettingsMR_SceneLoad_Settings_AssignFromAnother (MR_SceneLoad_Settings *_this, MR_PassBy _other_pass_by, MR_SceneLoad_Settings *_other)
 
MRC_API const MR_std_shared_ptr_MR_SceneRootObjectMR_SceneLoad_Result_Get_scene (const MR_SceneLoad_Result *_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_std_shared_ptr_MR_SceneRootObjectMR_SceneLoad_Result_GetMutable_scene (MR_SceneLoad_Result *_this)
 
MRC_API const bool * MR_SceneLoad_Result_Get_isSceneConstructed (const MR_SceneLoad_Result *_this)
 
MRC_API void MR_SceneLoad_Result_Set_isSceneConstructed (MR_SceneLoad_Result *_this, bool value)
 
MRC_API bool * MR_SceneLoad_Result_GetMutable_isSceneConstructed (MR_SceneLoad_Result *_this)
 
MRC_API const MR_std_vector_std_filesystem_pathMR_SceneLoad_Result_Get_loadedFiles (const MR_SceneLoad_Result *_this)
 
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_std_vector_std_filesystem_pathMR_SceneLoad_Result_GetMutable_loadedFiles (MR_SceneLoad_Result *_this)
 
MRC_API const MR_std_stringMR_SceneLoad_Result_Get_errorSummary (const MR_SceneLoad_Result *_this)
 Error summary text.
 
MRC_API void MR_SceneLoad_Result_Set_errorSummary (MR_SceneLoad_Result *_this, const char *value, const char *value_end)
 Error summary text.
 
MRC_API MR_std_stringMR_SceneLoad_Result_GetMutable_errorSummary (MR_SceneLoad_Result *_this)
 Error summary text.
 
MRC_API const MR_std_stringMR_SceneLoad_Result_Get_warningSummary (const MR_SceneLoad_Result *_this)
 Warning summary text.
 
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_std_stringMR_SceneLoad_Result_GetMutable_warningSummary (MR_SceneLoad_Result *_this)
 Warning summary text.
 
MRC_API MR_SceneLoad_ResultMR_SceneLoad_Result_DefaultConstruct (void)
 
MRC_API MR_SceneLoad_ResultMR_SceneLoad_Result_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_SceneLoad_ResultMR_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 const MR_SceneLoad_ResultMR_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 pointer points to an array element.
 
MRC_API MR_SceneLoad_ResultMR_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 pointer points to an array element.
 
MRC_API MR_SceneLoad_ResultMR_SceneLoad_Result_ConstructFromAnother (MR_PassBy _other_pass_by, MR_SceneLoad_Result *_other)
 
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 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 MR_SceneLoad_ResultMR_SceneLoad_Result_AssignFromAnother (MR_SceneLoad_Result *_this, MR_PassBy _other_pass_by, MR_SceneLoad_Result *_other)
 
MRC_API MR_SceneLoad_ResultMR_SceneLoad_fromAnySupportedFormat (const MR_std_vector_std_filesystem_path *files, const MR_SceneLoad_Settings *settings)
 
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)
 

Typedef Documentation

◆ MR_SceneLoad_Result

Scene loading result Generated from class MR::SceneLoad::Result.

◆ MR_SceneLoad_Settings

◆ MR_std_function_bool_from_float

◆ MR_std_function_void_from_MR_SceneLoad_Result

◆ MR_std_optional_MR_LengthUnit

◆ MR_std_shared_ptr_MR_SceneRootObject

◆ MR_std_string

typedef struct MR_std_string MR_std_string

◆ MR_std_vector_std_filesystem_path

Function Documentation

◆ MR_SceneLoad_asyncFromAnySupportedFormat()

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 )

Generated from function MR::SceneLoad::asyncFromAnySupportedFormat. Parameter files can not be null. It is a single object. Parameter postLoadCallback can not be null. It is a single object. Parameter settings is a single object. Parameter settings has a default argument: {}, pass a null pointer to use it.

◆ MR_SceneLoad_fromAnySupportedFormat()

MRC_API MR_SceneLoad_Result * MR_SceneLoad_fromAnySupportedFormat ( const MR_std_vector_std_filesystem_path * files,
const MR_SceneLoad_Settings * settings )

Load scene from file; if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects Generated from function MR::SceneLoad::fromAnySupportedFormat. Parameter files can not be null. It is a single object. Parameter settings is a single object. Parameter settings has a default argument: {}, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Result_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_Result_AssignFromAnother()

MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_AssignFromAnother ( MR_SceneLoad_Result * _this,
MR_PassBy _other_pass_by,
MR_SceneLoad_Result * _other )

Generated from a method of class MR::SceneLoad::Result named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_ConstructFrom()

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 )

Constructs MR::SceneLoad::Result elementwise. Parameter errorSummary can not be null. If errorSummary_end is null, then errorSummary is assumed to be null-terminated. Parameter warningSummary can not be null. If warningSummary_end is null, then warningSummary is assumed to be null-terminated. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Result_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_Result_ConstructFromAnother()

MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_SceneLoad_Result * _other )

Generated from a constructor of class MR::SceneLoad::Result. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Result_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_Result_DefaultConstruct()

MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Result_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_Result_DefaultConstructArray()

MRC_API MR_SceneLoad_Result * MR_SceneLoad_Result_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_SceneLoad_Result_DestroyArray(). Use MR_SceneLoad_Result_OffsetMutablePtr() and MR_SceneLoad_Result_OffsetPtr() to access the array elements.

◆ MR_SceneLoad_Result_Destroy()

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.

◆ MR_SceneLoad_Result_DestroyArray()

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.

◆ MR_SceneLoad_Result_Get_errorSummary()

MRC_API const MR_std_string * MR_SceneLoad_Result_Get_errorSummary ( const MR_SceneLoad_Result * _this)

Error summary text.

Returns a pointer to a member variable of class MR::SceneLoad::Result named errorSummary. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_Get_isSceneConstructed()

MRC_API const bool * MR_SceneLoad_Result_Get_isSceneConstructed ( const MR_SceneLoad_Result * _this)

Marks whether the scene was loaded from a single file (false) or was built from scratch (true) Returns a pointer to a member variable of class MR::SceneLoad::Result named isSceneConstructed. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_Get_loadedFiles()

MRC_API const MR_std_vector_std_filesystem_path * MR_SceneLoad_Result_Get_loadedFiles ( const MR_SceneLoad_Result * _this)

List of successfully loaded files Returns a pointer to a member variable of class MR::SceneLoad::Result named loadedFiles. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_Get_scene()

MRC_API const MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_Result_Get_scene ( const MR_SceneLoad_Result * _this)

The loaded scene or empty object Returns a pointer to a member variable of class MR::SceneLoad::Result named scene. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_Get_warningSummary()

MRC_API const MR_std_string * MR_SceneLoad_Result_Get_warningSummary ( const MR_SceneLoad_Result * _this)

Warning summary text.

Returns a pointer to a member variable of class MR::SceneLoad::Result named warningSummary. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_GetMutable_errorSummary()

MRC_API MR_std_string * MR_SceneLoad_Result_GetMutable_errorSummary ( MR_SceneLoad_Result * _this)

Error summary text.

Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named errorSummary. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_GetMutable_isSceneConstructed()

MRC_API bool * MR_SceneLoad_Result_GetMutable_isSceneConstructed ( MR_SceneLoad_Result * _this)

Marks whether the scene was loaded from a single file (false) or was built from scratch (true) Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named isSceneConstructed. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_GetMutable_loadedFiles()

MRC_API MR_std_vector_std_filesystem_path * MR_SceneLoad_Result_GetMutable_loadedFiles ( MR_SceneLoad_Result * _this)

List of successfully loaded files Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named loadedFiles. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_GetMutable_scene()

MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_Result_GetMutable_scene ( MR_SceneLoad_Result * _this)

The loaded scene or empty object Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named scene. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_GetMutable_warningSummary()

MRC_API MR_std_string * MR_SceneLoad_Result_GetMutable_warningSummary ( MR_SceneLoad_Result * _this)

Warning summary text.

Returns a mutable pointer to a member variable of class MR::SceneLoad::Result named warningSummary. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Result_OffsetMutablePtr()

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 pointer points to an array element.

◆ MR_SceneLoad_Result_OffsetPtr()

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 pointer points to an array element.

◆ MR_SceneLoad_Result_Set_errorSummary()

MRC_API void MR_SceneLoad_Result_Set_errorSummary ( MR_SceneLoad_Result * _this,
const char * value,
const char * value_end )

Error summary text.

Modifies a member variable of class MR::SceneLoad::Result named errorSummary. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated.

◆ MR_SceneLoad_Result_Set_isSceneConstructed()

MRC_API void MR_SceneLoad_Result_Set_isSceneConstructed ( MR_SceneLoad_Result * _this,
bool value )

Marks whether the scene was loaded from a single file (false) or was built from scratch (true) Modifies a member variable of class MR::SceneLoad::Result named isSceneConstructed. Parameter _this can not be null. It is a single object.

◆ MR_SceneLoad_Result_Set_loadedFiles()

MRC_API void MR_SceneLoad_Result_Set_loadedFiles ( MR_SceneLoad_Result * _this,
MR_PassBy value_pass_by,
MR_std_vector_std_filesystem_path * value )

List of successfully loaded files Modifies a member variable of class MR::SceneLoad::Result named loadedFiles. Parameter _this can not be null. It is a single object.

◆ MR_SceneLoad_Result_Set_scene()

MRC_API void MR_SceneLoad_Result_Set_scene ( MR_SceneLoad_Result * _this,
MR_PassBy value_pass_by,
MR_std_shared_ptr_MR_SceneRootObject * value )

The loaded scene or empty object Modifies a member variable of class MR::SceneLoad::Result named scene. Parameter _this can not be null. It is a single object.

◆ MR_SceneLoad_Result_Set_warningSummary()

MRC_API void MR_SceneLoad_Result_Set_warningSummary ( MR_SceneLoad_Result * _this,
const char * value,
const char * value_end )

Warning summary text.

Modifies a member variable of class MR::SceneLoad::Result named warningSummary. Parameter _this can not be null. It is a single object. Parameter value can not be null. If value_end is null, then value is assumed to be null-terminated.

◆ MR_SceneLoad_Settings_AssignFromAnother()

MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_AssignFromAnother ( MR_SceneLoad_Settings * _this,
MR_PassBy _other_pass_by,
MR_SceneLoad_Settings * _other )

Generated from a method of class MR::SceneLoad::Settings named operator=. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Settings_ConstructFrom()

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 )

Constructs MR::SceneLoad::Settings elementwise. Parameter targetUnit is optional. To keep it empty, pass a null pointer. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Settings_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_Settings_ConstructFromAnother()

MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_SceneLoad_Settings * _other )

Generated from a constructor of class MR::SceneLoad::Settings. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Settings_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_Settings_DefaultConstruct()

MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_Settings_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_Settings_DefaultConstructArray()

MRC_API MR_SceneLoad_Settings * MR_SceneLoad_Settings_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_SceneLoad_Settings_DestroyArray(). Use MR_SceneLoad_Settings_OffsetMutablePtr() and MR_SceneLoad_Settings_OffsetPtr() to access the array elements.

◆ MR_SceneLoad_Settings_Destroy()

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.

◆ MR_SceneLoad_Settings_DestroyArray()

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.

◆ MR_SceneLoad_Settings_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_SceneLoad_Settings_Get_progress ( const MR_SceneLoad_Settings * _this)

to report loading progress and allow the user to cancel it Returns a pointer to a member variable of class MR::SceneLoad::Settings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Settings_Get_targetUnit()

MRC_API const MR_std_optional_MR_LengthUnit * MR_SceneLoad_Settings_Get_targetUnit ( const MR_SceneLoad_Settings * _this)

if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Returns a pointer to a member variable of class MR::SceneLoad::Settings named targetUnit. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Settings_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_SceneLoad_Settings_GetMutable_progress ( MR_SceneLoad_Settings * _this)

to report loading progress and allow the user to cancel it Returns a mutable pointer to a member variable of class MR::SceneLoad::Settings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Settings_GetMutable_targetUnit()

MRC_API MR_std_optional_MR_LengthUnit * MR_SceneLoad_Settings_GetMutable_targetUnit ( MR_SceneLoad_Settings * _this)

if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Returns a mutable pointer to a member variable of class MR::SceneLoad::Settings named targetUnit. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneLoad_Settings_OffsetMutablePtr()

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 pointer points to an array element.

◆ MR_SceneLoad_Settings_OffsetPtr()

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 pointer points to an array element.

◆ MR_SceneLoad_Settings_Set_progress()

MRC_API void MR_SceneLoad_Settings_Set_progress ( MR_SceneLoad_Settings * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to report loading progress and allow the user to cancel it Modifies a member variable of class MR::SceneLoad::Settings named progress. Parameter _this can not be null. It is a single object.

◆ MR_SceneLoad_Settings_Set_targetUnit()

MRC_API void MR_SceneLoad_Settings_Set_targetUnit ( MR_SceneLoad_Settings * _this,
const MR_LengthUnit * value )

if both targetUnit and loadedObject.lengthUnit are not nullopt, then adjusts transformations of the loaded objects to match target units Modifies a member variable of class MR::SceneLoad::Settings named targetUnit. Parameter _this can not be null. It is a single object. Parameter value is optional. To keep it empty, pass a null pointer.