MeshLib C Docs
Loading...
Searching...
No Matches
MRSceneLoad.h File Reference
#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_SceneLoadResult MR_std_function_void_from_MR_SceneLoad_SceneLoadResult
 
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_SceneLoadResult MR_SceneLoad_SceneLoadResult
 

Functions

MRC_API const MR_std_shared_ptr_MR_SceneRootObjectMR_SceneLoad_SceneLoadResult_Get_scene (const MR_SceneLoad_SceneLoadResult *_this)
 
MRC_API void MR_SceneLoad_SceneLoadResult_Set_scene (MR_SceneLoad_SceneLoadResult *_this, MR_PassBy value_pass_by, MR_std_shared_ptr_MR_SceneRootObject *value)
 
MRC_API MR_std_shared_ptr_MR_SceneRootObjectMR_SceneLoad_SceneLoadResult_GetMutable_scene (MR_SceneLoad_SceneLoadResult *_this)
 
MRC_API const bool * MR_SceneLoad_SceneLoadResult_Get_isSceneConstructed (const MR_SceneLoad_SceneLoadResult *_this)
 
MRC_API void MR_SceneLoad_SceneLoadResult_Set_isSceneConstructed (MR_SceneLoad_SceneLoadResult *_this, bool value)
 
MRC_API bool * MR_SceneLoad_SceneLoadResult_GetMutable_isSceneConstructed (MR_SceneLoad_SceneLoadResult *_this)
 
MRC_API const MR_std_vector_std_filesystem_pathMR_SceneLoad_SceneLoadResult_Get_loadedFiles (const MR_SceneLoad_SceneLoadResult *_this)
 
MRC_API void MR_SceneLoad_SceneLoadResult_Set_loadedFiles (MR_SceneLoad_SceneLoadResult *_this, MR_PassBy value_pass_by, MR_std_vector_std_filesystem_path *value)
 
MRC_API MR_std_vector_std_filesystem_pathMR_SceneLoad_SceneLoadResult_GetMutable_loadedFiles (MR_SceneLoad_SceneLoadResult *_this)
 
MRC_API const MR_std_stringMR_SceneLoad_SceneLoadResult_Get_errorSummary (const MR_SceneLoad_SceneLoadResult *_this)
 Error summary text.
 
MRC_API void MR_SceneLoad_SceneLoadResult_Set_errorSummary (MR_SceneLoad_SceneLoadResult *_this, const char *value, const char *value_end)
 Error summary text.
 
MRC_API MR_std_stringMR_SceneLoad_SceneLoadResult_GetMutable_errorSummary (MR_SceneLoad_SceneLoadResult *_this)
 Error summary text.
 
MRC_API const MR_std_stringMR_SceneLoad_SceneLoadResult_Get_warningSummary (const MR_SceneLoad_SceneLoadResult *_this)
 Warning summary text.
 
MRC_API void MR_SceneLoad_SceneLoadResult_Set_warningSummary (MR_SceneLoad_SceneLoadResult *_this, const char *value, const char *value_end)
 Warning summary text.
 
MRC_API MR_std_stringMR_SceneLoad_SceneLoadResult_GetMutable_warningSummary (MR_SceneLoad_SceneLoadResult *_this)
 Warning summary text.
 
MRC_API MR_SceneLoad_SceneLoadResultMR_SceneLoad_SceneLoadResult_DefaultConstruct (void)
 
MRC_API MR_SceneLoad_SceneLoadResultMR_SceneLoad_SceneLoadResult_DefaultConstructArray (size_t num_elems)
 
MRC_API MR_SceneLoad_SceneLoadResultMR_SceneLoad_SceneLoadResult_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_SceneLoadResultMR_SceneLoad_SceneLoadResult_OffsetPtr (const MR_SceneLoad_SceneLoadResult *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_SceneLoadResultMR_SceneLoad_SceneLoadResult_OffsetMutablePtr (MR_SceneLoad_SceneLoadResult *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_SceneLoadResultMR_SceneLoad_SceneLoadResult_ConstructFromAnother (MR_PassBy _other_pass_by, MR_SceneLoad_SceneLoadResult *_other)
 
MRC_API void MR_SceneLoad_SceneLoadResult_Destroy (const MR_SceneLoad_SceneLoadResult *_this)
 Destroys a heap-allocated instance of MR_SceneLoad_SceneLoadResult. Does nothing if the pointer is null.
 
MRC_API void MR_SceneLoad_SceneLoadResult_DestroyArray (const MR_SceneLoad_SceneLoadResult *_this)
 Destroys a heap-allocated array of MR_SceneLoad_SceneLoadResult. Does nothing if the pointer is null.
 
MRC_API MR_SceneLoad_SceneLoadResultMR_SceneLoad_SceneLoadResult_AssignFromAnother (MR_SceneLoad_SceneLoadResult *_this, MR_PassBy _other_pass_by, MR_SceneLoad_SceneLoadResult *_other)
 
MRC_API MR_SceneLoad_SceneLoadResultMR_SceneLoad_fromAnySupportedFormat (const MR_std_vector_std_filesystem_path *files, MR_PassBy callback_pass_by, MR_std_function_bool_from_float *callback)
 
MRC_API void MR_SceneLoad_asyncFromAnySupportedFormat (const MR_std_vector_std_filesystem_path *files, MR_PassBy postLoadCallback_pass_by, MR_std_function_void_from_MR_SceneLoad_SceneLoadResult *postLoadCallback, MR_PassBy progressCallback_pass_by, MR_std_function_bool_from_float *progressCallback)
 

Typedef Documentation

◆ MR_SceneLoad_SceneLoadResult

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

◆ MR_std_function_bool_from_float

◆ MR_std_function_void_from_MR_SceneLoad_SceneLoadResult

◆ 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,
MR_PassBy postLoadCallback_pass_by,
MR_std_function_void_from_MR_SceneLoad_SceneLoadResult * postLoadCallback,
MR_PassBy progressCallback_pass_by,
MR_std_function_bool_from_float * progressCallback )

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

◆ MR_SceneLoad_fromAnySupportedFormat()

MRC_API MR_SceneLoad_SceneLoadResult * MR_SceneLoad_fromAnySupportedFormat ( const MR_std_vector_std_filesystem_path * files,
MR_PassBy callback_pass_by,
MR_std_function_bool_from_float * callback )

Load scene from file Generated from function MR::SceneLoad::fromAnySupportedFormat. Parameter files can not be null. It is a single object. Parameter callback has a default argument: {}, pass MR_PassBy_DefaultArgument and a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_SceneLoad_SceneLoadResult_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_SceneLoadResult_AssignFromAnother()

MRC_API MR_SceneLoad_SceneLoadResult * MR_SceneLoad_SceneLoadResult_AssignFromAnother ( MR_SceneLoad_SceneLoadResult * _this,
MR_PassBy _other_pass_by,
MR_SceneLoad_SceneLoadResult * _other )

Generated from a method of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_ConstructFrom()

MRC_API MR_SceneLoad_SceneLoadResult * MR_SceneLoad_SceneLoadResult_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::SceneLoadResult 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_SceneLoadResult_Destroy() to free it when you're done using it.

◆ MR_SceneLoad_SceneLoadResult_ConstructFromAnother()

MRC_API MR_SceneLoad_SceneLoadResult * MR_SceneLoad_SceneLoadResult_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_SceneLoad_SceneLoadResult * _other )

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

◆ MR_SceneLoad_SceneLoadResult_DefaultConstruct()

MRC_API MR_SceneLoad_SceneLoadResult * MR_SceneLoad_SceneLoadResult_DefaultConstruct ( void )

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

◆ MR_SceneLoad_SceneLoadResult_DefaultConstructArray()

MRC_API MR_SceneLoad_SceneLoadResult * MR_SceneLoad_SceneLoadResult_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_SceneLoadResult_DestroyArray(). Use MR_SceneLoad_SceneLoadResult_OffsetMutablePtr() and MR_SceneLoad_SceneLoadResult_OffsetPtr() to access the array elements.

◆ MR_SceneLoad_SceneLoadResult_Destroy()

MRC_API void MR_SceneLoad_SceneLoadResult_Destroy ( const MR_SceneLoad_SceneLoadResult * _this)

Destroys a heap-allocated instance of MR_SceneLoad_SceneLoadResult. Does nothing if the pointer is null.

◆ MR_SceneLoad_SceneLoadResult_DestroyArray()

MRC_API void MR_SceneLoad_SceneLoadResult_DestroyArray ( const MR_SceneLoad_SceneLoadResult * _this)

Destroys a heap-allocated array of MR_SceneLoad_SceneLoadResult. Does nothing if the pointer is null.

◆ MR_SceneLoad_SceneLoadResult_Get_errorSummary()

MRC_API const MR_std_string * MR_SceneLoad_SceneLoadResult_Get_errorSummary ( const MR_SceneLoad_SceneLoadResult * _this)

Error summary text.

Returns a pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_Get_isSceneConstructed()

MRC_API const bool * MR_SceneLoad_SceneLoadResult_Get_isSceneConstructed ( const MR_SceneLoad_SceneLoadResult * _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::SceneLoadResult 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_SceneLoadResult_Get_loadedFiles()

MRC_API const MR_std_vector_std_filesystem_path * MR_SceneLoad_SceneLoadResult_Get_loadedFiles ( const MR_SceneLoad_SceneLoadResult * _this)

List of successfully loaded files Returns a pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_Get_scene()

MRC_API const MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_SceneLoadResult_Get_scene ( const MR_SceneLoad_SceneLoadResult * _this)

The loaded scene or empty object Returns a pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_Get_warningSummary()

MRC_API const MR_std_string * MR_SceneLoad_SceneLoadResult_Get_warningSummary ( const MR_SceneLoad_SceneLoadResult * _this)

Warning summary text.

Returns a pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_GetMutable_errorSummary()

MRC_API MR_std_string * MR_SceneLoad_SceneLoadResult_GetMutable_errorSummary ( MR_SceneLoad_SceneLoadResult * _this)

Error summary text.

Returns a mutable pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_GetMutable_isSceneConstructed()

MRC_API bool * MR_SceneLoad_SceneLoadResult_GetMutable_isSceneConstructed ( MR_SceneLoad_SceneLoadResult * _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::SceneLoadResult 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_SceneLoadResult_GetMutable_loadedFiles()

MRC_API MR_std_vector_std_filesystem_path * MR_SceneLoad_SceneLoadResult_GetMutable_loadedFiles ( MR_SceneLoad_SceneLoadResult * _this)

List of successfully loaded files Returns a mutable pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_GetMutable_scene()

MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneLoad_SceneLoadResult_GetMutable_scene ( MR_SceneLoad_SceneLoadResult * _this)

The loaded scene or empty object Returns a mutable pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_GetMutable_warningSummary()

MRC_API MR_std_string * MR_SceneLoad_SceneLoadResult_GetMutable_warningSummary ( MR_SceneLoad_SceneLoadResult * _this)

Warning summary text.

Returns a mutable pointer to a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_OffsetMutablePtr()

MRC_API MR_SceneLoad_SceneLoadResult * MR_SceneLoad_SceneLoadResult_OffsetMutablePtr ( MR_SceneLoad_SceneLoadResult * 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_SceneLoadResult_OffsetPtr()

MRC_API const MR_SceneLoad_SceneLoadResult * MR_SceneLoad_SceneLoadResult_OffsetPtr ( const MR_SceneLoad_SceneLoadResult * 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_SceneLoadResult_Set_errorSummary()

MRC_API void MR_SceneLoad_SceneLoadResult_Set_errorSummary ( MR_SceneLoad_SceneLoadResult * _this,
const char * value,
const char * value_end )

Error summary text.

Modifies a member variable of class MR::SceneLoad::SceneLoadResult 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_SceneLoadResult_Set_isSceneConstructed()

MRC_API void MR_SceneLoad_SceneLoadResult_Set_isSceneConstructed ( MR_SceneLoad_SceneLoadResult * _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::SceneLoadResult named isSceneConstructed. Parameter _this can not be null. It is a single object.

◆ MR_SceneLoad_SceneLoadResult_Set_loadedFiles()

MRC_API void MR_SceneLoad_SceneLoadResult_Set_loadedFiles ( MR_SceneLoad_SceneLoadResult * _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::SceneLoadResult named loadedFiles. Parameter _this can not be null. It is a single object.

◆ MR_SceneLoad_SceneLoadResult_Set_scene()

MRC_API void MR_SceneLoad_SceneLoadResult_Set_scene ( MR_SceneLoad_SceneLoadResult * _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::SceneLoadResult named scene. Parameter _this can not be null. It is a single object.

◆ MR_SceneLoad_SceneLoadResult_Set_warningSummary()

MRC_API void MR_SceneLoad_SceneLoadResult_Set_warningSummary ( MR_SceneLoad_SceneLoadResult * _this,
const char * value,
const char * value_end )

Warning summary text.

Modifies a member variable of class MR::SceneLoad::SceneLoadResult 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.