#include <MRCMesh/MRColor.h>#include <MRCMesh/MREnums.h>#include <MRCMesh/MRVector2.h>#include <MRCMisc/common.h>#include <MRCMisc/exports.h>#include <stddef.h>Go to the source code of this file.
| MRC_API MR_MeshTexture * MR_MeshTexture_AssignFromAnother | ( | MR_MeshTexture * | _this, |
| MR_PassBy | _other_pass_by, | ||
| MR_MeshTexture * | _other ) |
Generated from method MR::MeshTexture::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.
| MRC_API MR_MeshTexture * MR_MeshTexture_ConstructFromAnother | ( | MR_PassBy | _other_pass_by, |
| MR_MeshTexture * | _other ) |
Generated from constructor MR::MeshTexture::MeshTexture. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_MeshTexture_Destroy() to free it when you're done using it.
| 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.
| 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.
| 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 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_std_vector_MR_Color * MR_MeshTexture_Get_pixels | ( | const MR_MeshTexture * | _this | ) |
Returns a pointer to a member variable of class MR::MeshTexture named pixels. 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. The reference to this object might be preserved as the return value.
| MRC_API const MR_Vector2i * MR_MeshTexture_Get_resolution | ( | const MR_MeshTexture * | _this | ) |
Returns a pointer to a member variable of class MR::MeshTexture named resolution. 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. The reference to this object might be preserved as the return value.
| 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. The reference to this object might be preserved as the return value.
| 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. The reference to this object might be preserved as the return value.
| MRC_API MR_std_vector_MR_Color * MR_MeshTexture_GetMutable_pixels | ( | MR_MeshTexture * | _this | ) |
Returns a mutable pointer to a member variable of class MR::MeshTexture named pixels. 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. The reference to this object might be preserved as the return value.
| MRC_API MR_Vector2i * MR_MeshTexture_GetMutable_resolution | ( | MR_MeshTexture * | _this | ) |
Returns a mutable pointer to a member variable of class MR::MeshTexture named resolution. 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. The reference to this object might be preserved as the return value.
| 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. The reference to this object might be preserved as the return value.
| MRC_API MR_uint64_t MR_MeshTexture_heapBytes | ( | const MR_MeshTexture * | _this | ) |
returns the amount of memory this object occupies on heap Generated from method MR::MeshTexture::heapBytes. Parameter _this can not be null. It is a single object.
| MRC_API MR_MeshTexture * MR_MeshTexture_MutableStaticDowncastFrom_MR_Image | ( | MR_Image * | object | ) |
Downcasts an instance of MR::Image to a derived class MR::MeshTexture. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. The reference to the parameter object might be preserved in the return value.
| MRC_API MR_Image * MR_MeshTexture_MutableUpcastTo_MR_Image | ( | MR_MeshTexture * | object | ) |
Upcasts an instance of MR::MeshTexture to its base class MR::Image. The reference to the parameter object might be preserved in the return value.
| 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. The reference to the parameter ptr might be preserved in the return value.
| 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. The reference to the parameter ptr might be preserved in the return value.
| MRC_API MR_Color MR_MeshTexture_sample | ( | const MR_MeshTexture * | _this, |
| MR_FilterType | filter, | ||
| const MR_Vector2f * | pos ) |
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns sampled color at it according to given filter Generated from method MR::MeshTexture::sample. Parameter _this can not be null. It is a single object. Parameter pos can not be null. It is a single object.
| MRC_API MR_Color MR_MeshTexture_sampleBilinear | ( | const MR_MeshTexture * | _this, |
| const MR_Vector2f * | pos ) |
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns bilinear interpolated color at it Generated from method MR::MeshTexture::sampleBilinear. Parameter _this can not be null. It is a single object. Parameter pos can not be null. It is a single object.
| MRC_API MR_Color MR_MeshTexture_sampleDiscrete | ( | const MR_MeshTexture * | _this, |
| const MR_Vector2f * | pos ) |
Given texture position in [0,1]x[0,1] (which is clamped if necessary), returns the color of the closest pixel Generated from method MR::MeshTexture::sampleDiscrete. Parameter _this can not be null. It is a single object. Parameter pos can not be null. It is a single object.
| 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. The reference to the parameter value might be preserved in this object in element filter. When this function is called, this object will drop object references it held previously in filter.
| MRC_API void MR_MeshTexture_Set_pixels | ( | MR_MeshTexture * | _this, |
| MR_PassBy | value_pass_by, | ||
| MR_std_vector_MR_Color * | value ) |
Modifies a member variable of class MR::MeshTexture named pixels. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element pixels. When this function is called, this object will drop object references it held previously in pixels.
| MRC_API void MR_MeshTexture_Set_resolution | ( | MR_MeshTexture * | _this, |
| MR_Vector2i | value ) |
Modifies a member variable of class MR::MeshTexture named resolution. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element resolution. When this function is called, this object will drop object references it held previously in resolution.
| 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. The reference to the parameter value might be preserved in this object in element wrap. When this function is called, this object will drop object references it held previously in wrap.
| MRC_API const MR_MeshTexture * MR_MeshTexture_StaticDowncastFrom_MR_Image | ( | const MR_Image * | object | ) |
Downcasts an instance of MR::Image to a derived class MR::MeshTexture. This is a static downcast, it trusts the programmer that the target type is correct. Results in UB and returns an invalid pointer otherwise. This version is acting on mutable pointers. The reference to the parameter object might be preserved in the return value.
| 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. The reference to the parameter object might be preserved in the return value.