MeshLib Rust Docs
Loading...
Searching...
No Matches
Inheritance diagram for meshlib::MeshTexture:

Public Member Functions

auto assign_from_another (_other:&meshlib::MeshTexture) -> &mut meshlib::MeshTexture
auto heap_bytes () const -> usize
auto sample_discrete (pos:&meshlib::Vector2f) const -> meshlib::Color
auto sample_bilinear (pos:&meshlib::Vector2f) const -> meshlib::Color
auto sample (filter:meshlib::FilterType, pos:&meshlib::Vector2f) const -> meshlib::Color
auto filter () const -> &meshlib::FilterType
auto filter_mut () -> &mut meshlib::FilterType
void set_filter (value:meshlib::FilterType)
auto wrap () const -> &meshlib::WrapType
auto wrap_mut () -> &mut meshlib::WrapType
void set_wrap (value:meshlib::WrapType)
auto pixels () const -> &meshlib::std_vector_MR_Color
auto pixels_mut () -> &mut meshlib::std_vector_MR_Color
void set_pixels (value:&meshlib::std_vector_MR_Color)
auto resolution () const -> &meshlib::Vector2i
auto resolution_mut () -> &mut meshlib::Vector2i
void set_resolution (value:meshlib::Vector2i)
auto upcast_to_image () const -> &meshlib::Image
auto upcast_to_image_mut () -> &mut meshlib::Image

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

Detailed Description

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>.

Member Function Documentation

◆ assign_from_another()

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.

◆ construct_from_another()

auto meshlib::MeshTexture::construct_from_another ( _other:&meshlib::MeshTexture ) -> meshlib::Owned< meshlib::MeshTexture >
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.

◆ filter()

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.

◆ filter_mut()

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.

◆ heap_bytes()

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().

◆ new()

auto meshlib::MeshTexture::new ( ) -> meshlib::Owned< meshlib::MeshTexture >
static

Constructs an empty (default-constructed) instance.

Calls MR_MeshTexture_DefaultConstruct().

◆ pixels()

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.

◆ pixels_mut()

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.

◆ resolution()

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.

◆ resolution_mut()

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.

◆ sample()

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().

◆ sample_bilinear()

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().

◆ sample_discrete()

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().

◆ set_filter()

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.

◆ set_pixels()

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.

◆ set_resolution()

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.

◆ set_wrap()

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_downcast_from_image()

auto meshlib::MeshTexture::static_downcast_from_image ( object:&meshlib::Image ) -> &Self
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.

Note
This function is unsafe.

◆ static_downcast_from_image_mut()

auto meshlib::MeshTexture::static_downcast_from_image_mut ( object:&mut meshlib::Image ) -> &mut Self
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.

Note
This function is unsafe.

◆ upcast_to_image()

auto meshlib::MeshTexture::upcast_to_image ( ) const -> &meshlib::Image

Upcasts to the base class MR::Image.

Calls MR_MeshTexture_UpcastTo_MR_Image().

◆ upcast_to_image_mut()

auto meshlib::MeshTexture::upcast_to_image_mut ( ) -> &mut meshlib::Image

Upcasts to the base class MR::Image.

Calls MR_MeshTexture_MutableUpcastTo_MR_Image().

◆ wrap()

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.

◆ wrap_mut()

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.


The documentation for this struct was generated from the following file: