MeshLib C Docs
Loading...
Searching...
No Matches
MRSceneRoot.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_Object MR_Object
 
typedef struct MR_ObjectChildrenHolder MR_ObjectChildrenHolder
 
typedef struct MR_std_filesystem_path MR_std_filesystem_path
 
typedef struct MR_std_shared_ptr_MR_Object MR_std_shared_ptr_MR_Object
 
typedef struct MR_std_shared_ptr_MR_SceneRootObject MR_std_shared_ptr_MR_SceneRootObject
 
typedef struct MR_std_shared_ptr_const_MR_SceneRootObject MR_std_shared_ptr_const_MR_SceneRootObject
 
typedef struct MR_std_string MR_std_string
 
typedef struct MR_SceneRootObject MR_SceneRootObject
 
typedef struct MR_SceneRoot MR_SceneRoot
 

Functions

MRC_API MR_SceneRootObjectMR_SceneRootObject_DefaultConstruct (void)
 
MRC_API MR_SceneRootObjectMR_SceneRootObject_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_SceneRootObjectMR_SceneRootObject_OffsetPtr (const MR_SceneRootObject *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_SceneRootObjectMR_SceneRootObject_OffsetMutablePtr (MR_SceneRootObject *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 const MR_ObjectMR_SceneRootObject_UpcastTo_MR_Object (const MR_SceneRootObject *object)
 
MRC_API MR_ObjectMR_SceneRootObject_MutableUpcastTo_MR_Object (MR_SceneRootObject *object)
 Upcasts an instance of MR::SceneRootObject to its base class MR::Object.
 
MRC_API const MR_ObjectChildrenHolderMR_SceneRootObject_UpcastTo_MR_ObjectChildrenHolder (const MR_SceneRootObject *object)
 
MRC_API MR_ObjectChildrenHolderMR_SceneRootObject_MutableUpcastTo_MR_ObjectChildrenHolder (MR_SceneRootObject *object)
 Upcasts an instance of MR::SceneRootObject to its base class MR::ObjectChildrenHolder.
 
MRC_API MR_SceneRootObjectMR_SceneRootObject_ConstructFromAnother (MR_PassBy _other_pass_by, MR_SceneRootObject *_other)
 
MRC_API void MR_SceneRootObject_Destroy (const MR_SceneRootObject *_this)
 Destroys a heap-allocated instance of MR_SceneRootObject. Does nothing if the pointer is null.
 
MRC_API void MR_SceneRootObject_DestroyArray (const MR_SceneRootObject *_this)
 Destroys a heap-allocated array of MR_SceneRootObject. Does nothing if the pointer is null.
 
MRC_API MR_SceneRootObjectMR_SceneRootObject_AssignFromAnother (MR_SceneRootObject *_this, MR_PassBy _other_pass_by, MR_SceneRootObject *_other)
 
MRC_API const char * MR_SceneRootObject_TypeName (void)
 Generated from a method of class MR::SceneRootObject named TypeName.
 
MRC_API const char * MR_SceneRootObject_RootName (void)
 Generated from a method of class MR::SceneRootObject named RootName.
 
MRC_API MR_std_stringMR_SceneRootObject_getClassName (const MR_SceneRootObject *_this)
 
MRC_API MR_std_stringMR_SceneRootObject_getClassNameInPlural (const MR_SceneRootObject *_this)
 
MRC_API const char * MR_SceneRootObject_typeName (const MR_SceneRootObject *_this)
 
MRC_API void MR_SceneRootObject_setAncillary (MR_SceneRootObject *_this, bool _1)
 
MRC_API bool MR_SceneRootObject_select (MR_SceneRootObject *_this, bool _1)
 
MRC_API void MR_SceneRootObject_setName (MR_SceneRootObject *_this, const char *_1, const char *_1_end)
 
MRC_API MR_std_shared_ptr_MR_ObjectMR_SceneRootObject_clone (const MR_SceneRootObject *_this)
 
MRC_API MR_std_shared_ptr_MR_SceneRootObjectMR_SceneRootObject_cloneRoot (const MR_SceneRootObject *_this)
 
MRC_API MR_std_shared_ptr_MR_SceneRootObjectMR_createRootFormObject (MR_PassBy obj_pass_by, MR_std_shared_ptr_MR_Object *obj)
 
MRC_API MR_SceneRootMR_SceneRoot_ConstructFromAnother (MR_PassBy _other_pass_by, MR_SceneRoot *_other)
 
MRC_API const MR_SceneRootMR_SceneRoot_OffsetPtr (const MR_SceneRoot *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_SceneRootMR_SceneRoot_OffsetMutablePtr (MR_SceneRoot *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 void MR_SceneRoot_Destroy (const MR_SceneRoot *_this)
 Destroys a heap-allocated instance of MR_SceneRoot. Does nothing if the pointer is null.
 
MRC_API void MR_SceneRoot_DestroyArray (const MR_SceneRoot *_this)
 Destroys a heap-allocated array of MR_SceneRoot. Does nothing if the pointer is null.
 
MRC_API MR_SceneRootMR_SceneRoot_AssignFromAnother (MR_SceneRoot *_this, MR_PassBy _other_pass_by, MR_SceneRoot *_other)
 
MRC_API MR_SceneRootObjectMR_SceneRoot_get (void)
 
MRC_API MR_std_shared_ptr_MR_SceneRootObjectMR_SceneRoot_getSharedPtr (void)
 
MRC_API void MR_SceneRoot_setScenePath (const char *scenePath, const char *scenePath_end)
 
MRC_API const MR_SceneRootObjectMR_SceneRoot_constGet (void)
 
MRC_API MR_std_shared_ptr_const_MR_SceneRootObjectMR_SceneRoot_constGetSharedPtr (void)
 
MRC_API const MR_std_filesystem_pathMR_SceneRoot_getScenePath (void)
 

Typedef Documentation

◆ MR_Object

typedef struct MR_Object MR_Object

◆ MR_ObjectChildrenHolder

◆ MR_SceneRoot

typedef struct MR_SceneRoot MR_SceneRoot

Singleton to store scene root object Generated from class MR::SceneRoot.

◆ MR_SceneRootObject

Object that is parent of all scene Generated from class MR::SceneRootObject. Base classes: Direct: (non-virtual) MR::Object Indirect: (non-virtual) MR::ObjectChildrenHolder

◆ MR_std_filesystem_path

◆ MR_std_shared_ptr_const_MR_SceneRootObject

◆ MR_std_shared_ptr_MR_Object

◆ MR_std_shared_ptr_MR_SceneRootObject

◆ MR_std_string

typedef struct MR_std_string MR_std_string

Function Documentation

◆ MR_createRootFormObject()

MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_createRootFormObject ( MR_PassBy obj_pass_by,
MR_std_shared_ptr_MR_Object * obj )

Removes all obj children and attaches it to newly created SceneRootObject note that it does not respect obj xf Generated from function MR::createRootFormObject. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_SceneRootObject_Destroy() to free it when you're done using it.

◆ MR_SceneRoot_AssignFromAnother()

MRC_API MR_SceneRoot * MR_SceneRoot_AssignFromAnother ( MR_SceneRoot * _this,
MR_PassBy _other_pass_by,
MR_SceneRoot * _other )

Generated from a method of class MR::SceneRoot 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_SceneRoot_constGet()

MRC_API const MR_SceneRootObject * MR_SceneRoot_constGet ( void )

Generated from a method of class MR::SceneRoot named constGet. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneRoot_constGetSharedPtr()

MRC_API MR_std_shared_ptr_const_MR_SceneRootObject * MR_SceneRoot_constGetSharedPtr ( void )

Generated from a method of class MR::SceneRoot named constGetSharedPtr. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_const_MR_SceneRootObject_Destroy() to free it when you're done using it.

◆ MR_SceneRoot_ConstructFromAnother()

MRC_API MR_SceneRoot * MR_SceneRoot_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_SceneRoot * _other )

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

◆ MR_SceneRoot_Destroy()

MRC_API void MR_SceneRoot_Destroy ( const MR_SceneRoot * _this)

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

◆ MR_SceneRoot_DestroyArray()

MRC_API void MR_SceneRoot_DestroyArray ( const MR_SceneRoot * _this)

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

◆ MR_SceneRoot_get()

MRC_API MR_SceneRootObject * MR_SceneRoot_get ( void )

Generated from a method of class MR::SceneRoot named get. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneRoot_getScenePath()

MRC_API const MR_std_filesystem_path * MR_SceneRoot_getScenePath ( void )

Generated from a method of class MR::SceneRoot named getScenePath. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneRoot_getSharedPtr()

MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneRoot_getSharedPtr ( void )

Generated from a method of class MR::SceneRoot named getSharedPtr. The returned pointer will never be null. It is non-owning, do NOT destroy it.

◆ MR_SceneRoot_OffsetMutablePtr()

MRC_API MR_SceneRoot * MR_SceneRoot_OffsetMutablePtr ( MR_SceneRoot * 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_SceneRoot_OffsetPtr()

MRC_API const MR_SceneRoot * MR_SceneRoot_OffsetPtr ( const MR_SceneRoot * 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_SceneRoot_setScenePath()

MRC_API void MR_SceneRoot_setScenePath ( const char * scenePath,
const char * scenePath_end )

Generated from a method of class MR::SceneRoot named setScenePath. Parameter scenePath is a UTF-8 encoded filesystem path.

◆ MR_SceneRootObject_AssignFromAnother()

MRC_API MR_SceneRootObject * MR_SceneRootObject_AssignFromAnother ( MR_SceneRootObject * _this,
MR_PassBy _other_pass_by,
MR_SceneRootObject * _other )

Generated from a method of class MR::SceneRootObject 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_SceneRootObject_clone()

MRC_API MR_std_shared_ptr_MR_Object * MR_SceneRootObject_clone ( const MR_SceneRootObject * _this)

Generated from a method of class MR::SceneRootObject named clone. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_Object_Destroy() to free it when you're done using it.

◆ MR_SceneRootObject_cloneRoot()

MRC_API MR_std_shared_ptr_MR_SceneRootObject * MR_SceneRootObject_cloneRoot ( const MR_SceneRootObject * _this)

same as clone but returns correct type Generated from a method of class MR::SceneRootObject named cloneRoot. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_shared_ptr_MR_SceneRootObject_Destroy() to free it when you're done using it.

◆ MR_SceneRootObject_ConstructFromAnother()

MRC_API MR_SceneRootObject * MR_SceneRootObject_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_SceneRootObject * _other )

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

◆ MR_SceneRootObject_DefaultConstruct()

MRC_API MR_SceneRootObject * MR_SceneRootObject_DefaultConstruct ( void )

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

◆ MR_SceneRootObject_DefaultConstructArray()

MRC_API MR_SceneRootObject * MR_SceneRootObject_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_SceneRootObject_DestroyArray(). Use MR_SceneRootObject_OffsetMutablePtr() and MR_SceneRootObject_OffsetPtr() to access the array elements.

◆ MR_SceneRootObject_Destroy()

MRC_API void MR_SceneRootObject_Destroy ( const MR_SceneRootObject * _this)

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

◆ MR_SceneRootObject_DestroyArray()

MRC_API void MR_SceneRootObject_DestroyArray ( const MR_SceneRootObject * _this)

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

◆ MR_SceneRootObject_getClassName()

MRC_API MR_std_string * MR_SceneRootObject_getClassName ( const MR_SceneRootObject * _this)

Generated from a method of class MR::SceneRootObject named getClassName. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy() to free it when you're done using it.

◆ MR_SceneRootObject_getClassNameInPlural()

MRC_API MR_std_string * MR_SceneRootObject_getClassNameInPlural ( const MR_SceneRootObject * _this)

Generated from a method of class MR::SceneRootObject named getClassNameInPlural. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy() to free it when you're done using it.

◆ MR_SceneRootObject_MutableUpcastTo_MR_Object()

MRC_API MR_Object * MR_SceneRootObject_MutableUpcastTo_MR_Object ( MR_SceneRootObject * object)

Upcasts an instance of MR::SceneRootObject to its base class MR::Object.

◆ MR_SceneRootObject_MutableUpcastTo_MR_ObjectChildrenHolder()

MRC_API MR_ObjectChildrenHolder * MR_SceneRootObject_MutableUpcastTo_MR_ObjectChildrenHolder ( MR_SceneRootObject * object)

Upcasts an instance of MR::SceneRootObject to its base class MR::ObjectChildrenHolder.

◆ MR_SceneRootObject_OffsetMutablePtr()

MRC_API MR_SceneRootObject * MR_SceneRootObject_OffsetMutablePtr ( MR_SceneRootObject * 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_SceneRootObject_OffsetPtr()

MRC_API const MR_SceneRootObject * MR_SceneRootObject_OffsetPtr ( const MR_SceneRootObject * 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_SceneRootObject_RootName()

MRC_API const char * MR_SceneRootObject_RootName ( void )

Generated from a method of class MR::SceneRootObject named RootName.

◆ MR_SceneRootObject_select()

MRC_API bool MR_SceneRootObject_select ( MR_SceneRootObject * _this,
bool _1 )

Generated from a method of class MR::SceneRootObject named select. Parameter _this can not be null. It is a single object.

◆ MR_SceneRootObject_setAncillary()

MRC_API void MR_SceneRootObject_setAncillary ( MR_SceneRootObject * _this,
bool _1 )

Generated from a method of class MR::SceneRootObject named setAncillary. Parameter _this can not be null. It is a single object.

◆ MR_SceneRootObject_setName()

MRC_API void MR_SceneRootObject_setName ( MR_SceneRootObject * _this,
const char * _1,
const char * _1_end )

Generated from a method of class MR::SceneRootObject named setName. Parameter _this can not be null. It is a single object. Parameter _1 can not be null. If _1_end is null, then _1 is assumed to be null-terminated.

◆ MR_SceneRootObject_TypeName()

MRC_API const char * MR_SceneRootObject_TypeName ( void )

Generated from a method of class MR::SceneRootObject named TypeName.

◆ MR_SceneRootObject_typeName()

MRC_API const char * MR_SceneRootObject_typeName ( const MR_SceneRootObject * _this)

Generated from a method of class MR::SceneRootObject named typeName. Parameter _this can not be null. It is a single object.

◆ MR_SceneRootObject_UpcastTo_MR_Object()

MRC_API const MR_Object * MR_SceneRootObject_UpcastTo_MR_Object ( const MR_SceneRootObject * object)

Upcasts an instance of MR::SceneRootObject to its base class MR::Object. This version is acting on mutable pointers.

◆ MR_SceneRootObject_UpcastTo_MR_ObjectChildrenHolder()

MRC_API const MR_ObjectChildrenHolder * MR_SceneRootObject_UpcastTo_MR_ObjectChildrenHolder ( const MR_SceneRootObject * object)

Upcasts an instance of MR::SceneRootObject to its base class MR::ObjectChildrenHolder. This version is acting on mutable pointers.