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

Public Member Functions

auto convert_to_mr_vector4i () const -> meshlib::Vector4i
auto convert_to_mr_vector4f () const -> meshlib::Vector4f
auto get_u_int32 () const -> core::ffi::c_uint
auto index (e:core::ffi::c_int) const -> &core::ffi::c_uchar
auto index_mut (e:core::ffi::c_int) -> &mut core::ffi::c_uchar
auto add_assign (other:&meshlib::Color) -> &mut meshlib::Color
auto sub_assign (other:&meshlib::Color) -> &mut meshlib::Color
auto mul_assign (m:f32) -> &mut meshlib::Color
auto div_assign (m:f32) -> &mut meshlib::Color
auto scaled_alpha (m:f32) const -> meshlib::Color
auto is_translucent () const -> bool

Static Public Member Functions

static auto new () -> meshlib::Color
static auto construct_mr_no_init (_1:&meshlib::NoInit) -> meshlib::Color
static auto construct (r:core::ffi::c_int, g:core::ffi::c_int, b:core::ffi::c_int, a:core::ffi::c_int) -> meshlib::Color
static auto construct_rgb (r:core::ffi::c_int, g:core::ffi::c_int, b:core::ffi::c_int) -> meshlib::Color
static auto construct_float (r:f32, g:f32, b:f32, a:f32) -> meshlib::Color
static auto construct_rgb_float (r:f32, g:f32, b:f32) -> meshlib::Color
static auto construct_int (vec:&meshlib::Vector4i) -> meshlib::Color
static auto construct_float_mr_vector4f (vec:&meshlib::Vector4f) -> meshlib::Color
static auto white () -> meshlib::Color
static auto black () -> meshlib::Color
static auto gray () -> meshlib::Color
static auto red () -> meshlib::Color
static auto green () -> meshlib::Color
static auto blue () -> meshlib::Color
static auto yellow () -> meshlib::Color
static auto brown () -> meshlib::Color
static auto purple () -> meshlib::Color
static auto transparent () -> meshlib::Color
static auto val_to_uint8_int (val:core::ffi::c_int) -> core::ffi::c_uchar
static auto val_to_uint8_float (val:f32) -> core::ffi::c_uchar

Public Attributes

core::ffi::c_uchar r
core::ffi::c_uchar g
core::ffi::c_uchar b
core::ffi::c_uchar a

Detailed Description

Generated from class MR::Color.

Generated from struct MR::Color. The fields are accessed directly.

Member Function Documentation

◆ add_assign()

auto meshlib::Color::add_assign ( other:&meshlib::Color ) -> &mut meshlib::Color

Generated from method MR::Color::operator+=.

Calls MR_Color_add_assign(). The reference to this object might be preserved in the return value.

◆ black()

auto meshlib::Color::black ( ) -> meshlib::Color
static

Generated from method MR::Color::black.

Calls MR_Color_black().

◆ blue()

auto meshlib::Color::blue ( ) -> meshlib::Color
static

Generated from method MR::Color::blue.

Calls MR_Color_blue().

◆ brown()

auto meshlib::Color::brown ( ) -> meshlib::Color
static

Generated from method MR::Color::brown.

Calls MR_Color_brown().

◆ construct()

auto meshlib::Color::construct ( r:core::ffi::c_int ,
g:core::ffi::c_int ,
b:core::ffi::c_int ,
a:core::ffi::c_int  ) -> meshlib::Color
static

Generated from constructor MR::Color::Color.

Calls MR_Color_Construct().

◆ construct_float()

auto meshlib::Color::construct_float ( r:f32 ,
g:f32 ,
b:f32 ,
a:f32  ) -> meshlib::Color
static

Generated from constructor MR::Color::Color.

Calls MR_Color_Construct_float().

◆ construct_float_mr_vector4f()

auto meshlib::Color::construct_float_mr_vector4f ( vec:&meshlib::Vector4f ) -> meshlib::Color
static

Generated from constructor MR::Color::Color.

Calls MR_Color_Construct_float_MR_Vector4f(). The reference to the parameter vec might be preserved in the constructed object.

◆ construct_int()

auto meshlib::Color::construct_int ( vec:&meshlib::Vector4i ) -> meshlib::Color
static

Generated from constructor MR::Color::Color.

Calls MR_Color_Construct_int(). The reference to the parameter vec might be preserved in the constructed object.

◆ construct_mr_no_init()

auto meshlib::Color::construct_mr_no_init ( _1:&meshlib::NoInit ) -> meshlib::Color
static

Generated from constructor MR::Color::Color.

Calls MR_Color_Construct_MR_NoInit(). The reference to the parameter _1 might be preserved in the constructed object.

◆ construct_rgb()

auto meshlib::Color::construct_rgb ( r:core::ffi::c_int ,
g:core::ffi::c_int ,
b:core::ffi::c_int  ) -> meshlib::Color
static

Generated from constructor MR::Color::Color.

Calls MR_Color_Construct_rgb().

◆ construct_rgb_float()

auto meshlib::Color::construct_rgb_float ( r:f32 ,
g:f32 ,
b:f32  ) -> meshlib::Color
static

Generated from constructor MR::Color::Color.

Calls MR_Color_Construct_rgbFloat().

◆ convert_to_mr_vector4f()

auto meshlib::Color::convert_to_mr_vector4f ( ) const -> meshlib::Vector4f

Generated from conversion operator MR::Color::operator MR::Vector4f.

Calls MR_Color_ConvertTo_MR_Vector4f().

◆ convert_to_mr_vector4i()

auto meshlib::Color::convert_to_mr_vector4i ( ) const -> meshlib::Vector4i

Generated from conversion operator MR::Color::operator MR::Vector4i.

Calls MR_Color_ConvertTo_MR_Vector4i().

◆ div_assign()

auto meshlib::Color::div_assign ( m:f32 ) -> &mut meshlib::Color

Generated from method MR::Color::operator/=.

Calls MR_Color_div_assign(). The reference to this object might be preserved in the return value.

◆ get_u_int32()

auto meshlib::Color::get_u_int32 ( ) const -> core::ffi::c_uint

Generated from method MR::Color::getUInt32.

Calls MR_Color_getUInt32().

◆ gray()

auto meshlib::Color::gray ( ) -> meshlib::Color
static

Generated from method MR::Color::gray.

Calls MR_Color_gray().

◆ green()

auto meshlib::Color::green ( ) -> meshlib::Color
static

Generated from method MR::Color::green.

Calls MR_Color_green().

◆ index()

auto meshlib::Color::index ( e:core::ffi::c_int ) const -> &core::ffi::c_uchar

Generated from method MR::Color::operator[].

Calls MR_Color_index().

◆ index_mut()

auto meshlib::Color::index_mut ( e:core::ffi::c_int ) -> &mut core::ffi::c_uchar

Generated from method MR::Color::operator[].

Calls MR_Color_index_mut().

◆ is_translucent()

auto meshlib::Color::is_translucent ( ) const -> bool

returns true if the color is neither fully opaque nor fully transparent, so it has to be blended with the colors behind Generated from method MR::Color::isTranslucent.

Calls MR_Color_isTranslucent().

◆ mul_assign()

auto meshlib::Color::mul_assign ( m:f32 ) -> &mut meshlib::Color

Generated from method MR::Color::operator*=.

Calls MR_Color_mul_assign(). The reference to this object might be preserved in the return value.

◆ new()

auto meshlib::Color::new ( ) -> meshlib::Color
static

Constructs an empty (default-constructed) instance.

Calls MR_Color_DefaultConstruct().

◆ purple()

auto meshlib::Color::purple ( ) -> meshlib::Color
static

Generated from method MR::Color::purple.

Calls MR_Color_purple().

◆ red()

auto meshlib::Color::red ( ) -> meshlib::Color
static

Generated from method MR::Color::red.

Calls MR_Color_red().

◆ scaled_alpha()

auto meshlib::Color::scaled_alpha ( m:f32 ) const -> meshlib::Color

Generated from method MR::Color::scaledAlpha.

Calls MR_Color_scaledAlpha().

◆ sub_assign()

auto meshlib::Color::sub_assign ( other:&meshlib::Color ) -> &mut meshlib::Color

Generated from method MR::Color::operator-=.

Calls MR_Color_sub_assign(). The reference to this object might be preserved in the return value.

◆ transparent()

auto meshlib::Color::transparent ( ) -> meshlib::Color
static

Generated from method MR::Color::transparent.

Calls MR_Color_transparent().

◆ val_to_uint8_float()

auto meshlib::Color::val_to_uint8_float ( val:f32 ) -> core::ffi::c_uchar
static

Generated from method MR::Color::valToUint8<float>.

Calls MR_Color_valToUint8_float().

◆ val_to_uint8_int()

auto meshlib::Color::val_to_uint8_int ( val:core::ffi::c_int ) -> core::ffi::c_uchar
static

Generated from method MR::Color::valToUint8<int>.

Calls MR_Color_valToUint8_int().

◆ white()

auto meshlib::Color::white ( ) -> meshlib::Color
static

Generated from method MR::Color::white.

Calls MR_Color_white().

◆ yellow()

auto meshlib::Color::yellow ( ) -> meshlib::Color
static

Generated from method MR::Color::yellow.

Calls MR_Color_yellow().

Member Data Documentation

◆ a

core::ffi::c_uchar meshlib::Color::a

◆ b

core::ffi::c_uchar meshlib::Color::b

◆ g

core::ffi::c_uchar meshlib::Color::g

◆ r

core::ffi::c_uchar meshlib::Color::r

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