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 |
Generated from class MR::Color.
Generated from struct MR::Color. The fields are accessed directly.
| 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.
|
static |
Generated from method MR::Color::black.
Calls MR_Color_black().
|
static |
Generated from method MR::Color::blue.
Calls MR_Color_blue().
|
static |
Generated from method MR::Color::brown.
Calls MR_Color_brown().
|
static |
Generated from constructor MR::Color::Color.
Calls MR_Color_Construct().
|
static |
Generated from constructor MR::Color::Color.
Calls MR_Color_Construct_float().
|
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.
|
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.
|
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.
|
static |
Generated from constructor MR::Color::Color.
Calls MR_Color_Construct_rgb().
|
static |
Generated from constructor MR::Color::Color.
Calls MR_Color_Construct_rgbFloat().
| 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().
| 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().
| 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.
| auto meshlib::Color::get_u_int32 | ( | ) | const -> core::ffi::c_uint |
Generated from method MR::Color::getUInt32.
Calls MR_Color_getUInt32().
|
static |
Generated from method MR::Color::gray.
Calls MR_Color_gray().
|
static |
Generated from method MR::Color::green.
Calls MR_Color_green().
| auto meshlib::Color::index | ( | e:core::ffi::c_int | ) | const -> &core::ffi::c_uchar |
Generated from method MR::Color::operator[].
Calls MR_Color_index().
| 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().
| 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().
| 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.
|
static |
Constructs an empty (default-constructed) instance.
Calls MR_Color_DefaultConstruct().
|
static |
Generated from method MR::Color::purple.
Calls MR_Color_purple().
|
static |
Generated from method MR::Color::red.
Calls MR_Color_red().
| auto meshlib::Color::scaled_alpha | ( | m:f32 | ) | const -> meshlib::Color |
Generated from method MR::Color::scaledAlpha.
Calls MR_Color_scaledAlpha().
| 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.
|
static |
Generated from method MR::Color::transparent.
Calls MR_Color_transparent().
|
static |
Generated from method MR::Color::valToUint8<float>.
Calls MR_Color_valToUint8_float().
|
static |
Generated from method MR::Color::valToUint8<int>.
Calls MR_Color_valToUint8_int().
|
static |
Generated from method MR::Color::white.
Calls MR_Color_white().
|
static |
Generated from method MR::Color::yellow.
Calls MR_Color_yellow().
| core::ffi::c_uchar meshlib::Color::a |
| core::ffi::c_uchar meshlib::Color::b |
| core::ffi::c_uchar meshlib::Color::g |
| core::ffi::c_uchar meshlib::Color::r |