Static Public Member Functions | |
| static auto | new () -> meshlib::Owned< meshlib::MeshTexture > |
| static auto | construct_from_another (_other:&meshlib::MeshTexture) -> meshlib::Owned< meshlib::MeshTexture > |
| static auto | static_downcast_from_image (object:&meshlib::Image) -> &Self |
| static auto | static_downcast_from_image_mut (object:&mut meshlib::Image) -> &mut Self |
| Static Public Member Functions inherited from meshlib::CppClass | |
| static void | destroy (ptr:*mut Self) |
| Static Public Member Functions inherited from meshlib::CppCopy | |
| static auto | copy (ptr:*const Self) -> *mut Self |
Generated from class MR::MeshTexture. Base classes: Direct: (non-virtual) MR::Image
Generated from class MR::MeshTexture. Heap-allocated instances are held in Owned<MeshTexture>.
| auto meshlib::MeshTexture::assign_from_another | ( | _other:&meshlib::MeshTexture | ) | -> &mut meshlib::MeshTexture |
Generated from method MR::MeshTexture::operator=.
Calls MR_MeshTexture_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.
|
static |
Generated from constructor MR::MeshTexture::MeshTexture.
Calls MR_MeshTexture_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.
| auto meshlib::MeshTexture::filter | ( | ) | const -> &meshlib::FilterType |
Returns a pointer to a member variable of class MR::MeshTexture named filter.
Calls MR_MeshTexture_Get_filter(). The reference to this object might be preserved as the return value.
| auto meshlib::MeshTexture::filter_mut | ( | ) | -> &mut meshlib::FilterType |
Returns a mutable pointer to a member variable of class MR::MeshTexture named filter.
Calls MR_MeshTexture_GetMutable_filter(). The reference to this object might be preserved as the return value.
| auto meshlib::MeshTexture::heap_bytes | ( | ) | const -> usize |
returns the amount of memory this object occupies on heap Generated from method MR::MeshTexture::heapBytes.
Calls MR_MeshTexture_heapBytes().
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_MeshTexture_DefaultConstruct().
| auto meshlib::MeshTexture::pixels | ( | ) | const -> &meshlib::std_vector_MR_Color |
Returns a pointer to a member variable of class MR::MeshTexture named pixels.
Calls MR_MeshTexture_Get_pixels(). The reference to this object might be preserved as the return value.
| auto meshlib::MeshTexture::pixels_mut | ( | ) | -> &mut meshlib::std_vector_MR_Color |
Returns a mutable pointer to a member variable of class MR::MeshTexture named pixels.
Calls MR_MeshTexture_GetMutable_pixels(). The reference to this object might be preserved as the return value.
| auto meshlib::MeshTexture::resolution | ( | ) | const -> &meshlib::Vector2i |
Returns a pointer to a member variable of class MR::MeshTexture named resolution.
Calls MR_MeshTexture_Get_resolution(). The reference to this object might be preserved as the return value.
| auto meshlib::MeshTexture::resolution_mut | ( | ) | -> &mut meshlib::Vector2i |
Returns a mutable pointer to a member variable of class MR::MeshTexture named resolution.
Calls MR_MeshTexture_GetMutable_resolution(). The reference to this object might be preserved as the return value.
| auto meshlib::MeshTexture::sample | ( | filter:meshlib::FilterType | , |
| pos:&meshlib::Vector2f | ) const -> meshlib::Color |
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.
Calls MR_MeshTexture_sample().
| auto meshlib::MeshTexture::sample_bilinear | ( | pos:&meshlib::Vector2f | ) | const -> meshlib::Color |
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.
Calls MR_MeshTexture_sampleBilinear().
| auto meshlib::MeshTexture::sample_discrete | ( | pos:&meshlib::Vector2f | ) | const -> meshlib::Color |
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.
Calls MR_MeshTexture_sampleDiscrete().
| void meshlib::MeshTexture::set_filter | ( | value:meshlib::FilterType | ) |
Modifies a member variable of class MR::MeshTexture named filter.
Calls MR_MeshTexture_Set_filter(). The reference to the parameter value might be preserved in this object in element filter.
| void meshlib::MeshTexture::set_pixels | ( | value:&meshlib::std_vector_MR_Color | ) |
Modifies a member variable of class MR::MeshTexture named pixels.
Calls MR_MeshTexture_Set_pixels(). The reference to the parameter value might be preserved in this object in element pixels.
| void meshlib::MeshTexture::set_resolution | ( | value:meshlib::Vector2i | ) |
Modifies a member variable of class MR::MeshTexture named resolution.
Calls MR_MeshTexture_Set_resolution(). The reference to the parameter value might be preserved in this object in element resolution.
| void meshlib::MeshTexture::set_wrap | ( | value:meshlib::WrapType | ) |
Modifies a member variable of class MR::MeshTexture named wrap.
Calls MR_MeshTexture_Set_wrap(). The reference to the parameter value might be preserved in this object in element wrap.
|
static |
Static downcast from the base class MR::Image.
Calls MR_MeshTexture_StaticDowncastFrom_MR_Image(). Undefined behavior if the object isn't actually a MeshTexture.
|
static |
Static downcast from the base class MR::Image.
Calls MR_MeshTexture_MutableStaticDowncastFrom_MR_Image(). Undefined behavior if the object isn't actually a MeshTexture.
| auto meshlib::MeshTexture::upcast_to_image | ( | ) | const -> &meshlib::Image |
Upcasts to the base class MR::Image.
Calls MR_MeshTexture_UpcastTo_MR_Image().
| auto meshlib::MeshTexture::upcast_to_image_mut | ( | ) | -> &mut meshlib::Image |
Upcasts to the base class MR::Image.
Calls MR_MeshTexture_MutableUpcastTo_MR_Image().
| auto meshlib::MeshTexture::wrap | ( | ) | const -> &meshlib::WrapType |
Returns a pointer to a member variable of class MR::MeshTexture named wrap.
Calls MR_MeshTexture_Get_wrap(). The reference to this object might be preserved as the return value.
| auto meshlib::MeshTexture::wrap_mut | ( | ) | -> &mut meshlib::WrapType |
Returns a mutable pointer to a member variable of class MR::MeshTexture named wrap.
Calls MR_MeshTexture_GetMutable_wrap(). The reference to this object might be preserved as the return value.