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

Go to the source code of this file.

Typedefs

typedef struct MR_Image MR_Image
 
typedef struct MR_MeshTexture MR_MeshTexture
 

Functions

MRC_API const MR_FilterTypeMR_MeshTexture_Get_filter (const MR_MeshTexture *_this)
 
MRC_API void MR_MeshTexture_Set_filter (MR_MeshTexture *_this, MR_FilterType value)
 
MRC_API MR_FilterTypeMR_MeshTexture_GetMutable_filter (MR_MeshTexture *_this)
 
MRC_API const MR_WrapTypeMR_MeshTexture_Get_wrap (const MR_MeshTexture *_this)
 
MRC_API void MR_MeshTexture_Set_wrap (MR_MeshTexture *_this, MR_WrapType value)
 
MRC_API MR_WrapTypeMR_MeshTexture_GetMutable_wrap (MR_MeshTexture *_this)
 
MRC_API MR_MeshTextureMR_MeshTexture_DefaultConstruct (void)
 
MRC_API MR_MeshTextureMR_MeshTexture_DefaultConstructArray (size_t num_elems)
 
MRC_API const MR_MeshTextureMR_MeshTexture_OffsetPtr (const MR_MeshTexture *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_MeshTextureMR_MeshTexture_OffsetMutablePtr (MR_MeshTexture *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_ImageMR_MeshTexture_UpcastTo_MR_Image (const MR_MeshTexture *object)
 
MRC_API MR_ImageMR_MeshTexture_MutableUpcastTo_MR_Image (MR_MeshTexture *object)
 Upcasts an instance of MR::MeshTexture to its base class MR::Image.
 
MRC_API MR_MeshTextureMR_MeshTexture_ConstructFromAnother (MR_PassBy _other_pass_by, MR_MeshTexture *_other)
 
MRC_API void MR_MeshTexture_Destroy (const MR_MeshTexture *_this)
 Destroys a heap-allocated instance of MR_MeshTexture. Does nothing if the pointer is null.
 
MRC_API void MR_MeshTexture_DestroyArray (const MR_MeshTexture *_this)
 Destroys a heap-allocated array of MR_MeshTexture. Does nothing if the pointer is null.
 
MRC_API MR_MeshTextureMR_MeshTexture_AssignFromAnother (MR_MeshTexture *_this, MR_PassBy _other_pass_by, MR_MeshTexture *_other)
 

Typedef Documentation

◆ MR_Image

typedef struct MR_Image MR_Image

◆ MR_MeshTexture

Generated from class MR::MeshTexture. Base classes: Direct: (non-virtual) MR::Image

Function Documentation

◆ MR_MeshTexture_AssignFromAnother()

MRC_API MR_MeshTexture * MR_MeshTexture_AssignFromAnother ( MR_MeshTexture * _this,
MR_PassBy _other_pass_by,
MR_MeshTexture * _other )

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

MRC_API MR_MeshTexture * MR_MeshTexture_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_MeshTexture * _other )

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

◆ MR_MeshTexture_DefaultConstruct()

MRC_API MR_MeshTexture * MR_MeshTexture_DefaultConstruct ( void )

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

◆ MR_MeshTexture_DefaultConstructArray()

MRC_API MR_MeshTexture * MR_MeshTexture_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_MeshTexture_DestroyArray(). Use MR_MeshTexture_OffsetMutablePtr() and MR_MeshTexture_OffsetPtr() to access the array elements.

◆ MR_MeshTexture_Destroy()

MRC_API void MR_MeshTexture_Destroy ( const MR_MeshTexture * _this)

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

◆ MR_MeshTexture_DestroyArray()

MRC_API void MR_MeshTexture_DestroyArray ( const MR_MeshTexture * _this)

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

◆ MR_MeshTexture_Get_filter()

MRC_API const MR_FilterType * MR_MeshTexture_Get_filter ( const MR_MeshTexture * _this)

Returns a pointer to a member variable of class MR::MeshTexture named filter. 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_MeshTexture_Get_wrap()

MRC_API const MR_WrapType * MR_MeshTexture_Get_wrap ( const MR_MeshTexture * _this)

Returns a pointer to a member variable of class MR::MeshTexture named wrap. 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_MeshTexture_GetMutable_filter()

MRC_API MR_FilterType * MR_MeshTexture_GetMutable_filter ( MR_MeshTexture * _this)

Returns a mutable pointer to a member variable of class MR::MeshTexture named filter. 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_MeshTexture_GetMutable_wrap()

MRC_API MR_WrapType * MR_MeshTexture_GetMutable_wrap ( MR_MeshTexture * _this)

Returns a mutable pointer to a member variable of class MR::MeshTexture named wrap. 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_MeshTexture_MutableUpcastTo_MR_Image()

MRC_API MR_Image * MR_MeshTexture_MutableUpcastTo_MR_Image ( MR_MeshTexture * object)

Upcasts an instance of MR::MeshTexture to its base class MR::Image.

◆ MR_MeshTexture_OffsetMutablePtr()

MRC_API MR_MeshTexture * MR_MeshTexture_OffsetMutablePtr ( MR_MeshTexture * 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_MeshTexture_OffsetPtr()

MRC_API const MR_MeshTexture * MR_MeshTexture_OffsetPtr ( const MR_MeshTexture * 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_MeshTexture_Set_filter()

MRC_API void MR_MeshTexture_Set_filter ( MR_MeshTexture * _this,
MR_FilterType value )

Modifies a member variable of class MR::MeshTexture named filter. Parameter _this can not be null. It is a single object.

◆ MR_MeshTexture_Set_wrap()

MRC_API void MR_MeshTexture_Set_wrap ( MR_MeshTexture * _this,
MR_WrapType value )

Modifies a member variable of class MR::MeshTexture named wrap. Parameter _this can not be null. It is a single object.

◆ MR_MeshTexture_UpcastTo_MR_Image()

MRC_API const MR_Image * MR_MeshTexture_UpcastTo_MR_Image ( const MR_MeshTexture * object)

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