MeshLib C# Docs
Loading...
Searching...
No Matches

Generated from class MR.Color. This is the by-value version of the struct. More...

Inheritance diagram for MR.Color:

Public Member Functions

 Color (Color _other)
 Generated copy constructor.
unsafe Color ()
 Constructs an empty (default-constructed) instance.
unsafe Color (MR.Const_NoInit _1)
 Generated from constructor MR.Color.Color.
unsafe Color (int r, int g, int b, int a)
 Generated from constructor MR.Color.Color.
unsafe Color (int r, int g, int b)
 Generated from constructor MR.Color.Color.
unsafe Color (float r, float g, float b, float a)
 Generated from constructor MR.Color.Color.
unsafe Color (float r, float g, float b)
 Generated from constructor MR.Color.Color.
unsafe Color (in MR.Vector4i vec)
 Generated from constructor MR.Color.Color.
unsafe Color (in MR.Vector4f vec)
 Generated from constructor MR.Color.Color.
readonly unsafe uint getUInt32 ()
 Generated from method MR.Color.getUInt32.
unsafe ref byte index (int e)
 Generated from method MR::Color::operator[].
unsafe ref MR.Color addAssign (in MR.Color other)
 Generated from method MR::Color::operator+=.
unsafe ref MR.Color subAssign (in MR.Color other)
 Generated from method MR::Color::operator-=.
unsafe ref MR.Color mulAssign (float m)
 Generated from method MR::Color::operator*=.
unsafe ref MR.Color divAssign (float m)
 Generated from method MR::Color::operator/=.
readonly unsafe MR.Color scaledAlpha (float m)
 Generated from method MR.Color.scaledAlpha.
readonly unsafe bool isTranslucent ()
 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.
bool Equals (MR.Color b)
override bool Equals (object? other)

Static Public Member Functions

static implicit operator Color (ConstBox_Color other)
 Copy contents from a wrapper class to this struct.
static unsafe operator MR.Vector4i (MR.Color _this)
 Generated from conversion operator MR::Color::operator MR.Vector4i.
static unsafe operator MR.Vector4f (MR.Color _this)
 Generated from conversion operator MR::Color::operator MR.Vector4f.
static MR.Color white ()
 Generated from method MR.Color.white.
static MR.Color black ()
 Generated from method MR.Color.black.
static MR.Color gray ()
 Generated from method MR.Color.gray.
static MR.Color red ()
 Generated from method MR.Color.red.
static MR.Color green ()
 Generated from method MR.Color.green.
static MR.Color blue ()
 Generated from method MR.Color.blue.
static MR.Color yellow ()
 Generated from method MR.Color.yellow.
static MR.Color brown ()
 Generated from method MR.Color.brown.
static MR.Color purple ()
 Generated from method MR.Color.purple.
static MR.Color transparent ()
 Generated from method MR.Color.transparent.
static byte valToUint8 (int val)
 Generated from method MR.Color.valToUint8<int>.
static byte valToUint8 (float val)
 Generated from method MR.Color.valToUint8<float>.
static unsafe bool operator== (MR.Color a, MR.Color b)
 Generated from function MR::operator==.
static unsafe bool operator!= (MR.Color a, MR.Color b)
static unsafe MR.Color operator+ (MR.Color a, in MR.Color b)
 Generated from function MR::operator+.
static unsafe MR.Color operator- (MR.Color a, in MR.Color b)
 Generated from function MR::operator-.
static unsafe MR.Color operator* (float a, MR.Color b)
 Generated from function MR::operator*.
static unsafe MR.Color operator* (MR.Color b, float a)
 Generated from function MR::operator*.
static unsafe MR.Color operator/ (MR.Color b, float a)
 Generated from function MR::operator/.
static MR.Color __MR_Color_Construct (int r, int g, int b, int a)
static unsafe MR.Color __MR_Color_Construct_MR_NoInit (MR.NoInit._Underlying *_1)
static MR.Color __MR_Color_Construct_float (float r, float g, float b, float a)
static unsafe MR.Color __MR_Color_Construct_float_MR_Vector4f (MR.Vector4f *vec)
static unsafe MR.Color __MR_Color_Construct_int (MR.Vector4i *vec)
static MR.Color __MR_Color_Construct_rgb (int r, int g, int b)
static MR.Color __MR_Color_Construct_rgbFloat (float r, float g, float b)
static unsafe MR.Vector4f __MR_Color_ConvertTo_MR_Vector4f (MR.Color *_this)
static unsafe MR.Vector4i __MR_Color_ConvertTo_MR_Vector4i (MR.Color *_this)
static MR.Color __MR_Color_DefaultConstruct ()
static unsafe MR.Color * __MR_Color_add_assign (MR.Color *_this, MR.Color *other)
static MR.Color __MR_Color_black ()
static MR.Color __MR_Color_blue ()
static MR.Color __MR_Color_brown ()
static unsafe MR.Color * __MR_Color_div_assign (MR.Color *_this, float m)
static unsafe uint __MR_Color_getUInt32 (MR.Color *_this)
static MR.Color __MR_Color_gray ()
static MR.Color __MR_Color_green ()
static unsafe byte * __MR_Color_index (MR.Color *_this, int e)
static unsafe byte * __MR_Color_index_mut (MR.Color *_this, int e)
static unsafe byte __MR_Color_isTranslucent (MR.Color *_this)
static unsafe MR.Color * __MR_Color_mul_assign (MR.Color *_this, float m)
static MR.Color __MR_Color_purple ()
static MR.Color __MR_Color_red ()
static unsafe MR.Color __MR_Color_scaledAlpha (MR.Color *_this, float m)
static unsafe MR.Color * __MR_Color_sub_assign (MR.Color *_this, MR.Color *other)
static MR.Color __MR_Color_transparent ()
static byte __MR_Color_valToUint8_float (float val)
static byte __MR_Color_valToUint8_int (int val)
static MR.Color __MR_Color_white ()
static MR.Color __MR_Color_yellow ()
static unsafe MR.Color __MR_add_MR_Color (MR.Color *a, MR.Color *b)
static unsafe MR.Color __MR_div_MR_Color_float (MR.Color *b, float a)
static unsafe byte __MR_equal_MR_Color (MR.Color *a, MR.Color *b)
static unsafe MR.Color __MR_mul_MR_Color_float (MR.Color *b, float a)
static unsafe MR.Color __MR_mul_float_MR_Color (float a, MR.Color *b)
static unsafe MR.Color __MR_sub_MR_Color (MR.Color *a, MR.Color *b)

Public Attributes

byte r
byte g
byte b
byte a

Properties

readonly unsafe byte this[int e] [get]
 Generated from method MR::Color::operator[].

Detailed Description

Generated from class MR.Color. This is the by-value version of the struct.

Constructor & Destructor Documentation

◆ Color() [1/9]

MR.Color.Color ( Color _other)
inline

Generated copy constructor.

◆ Color() [2/9]

unsafe MR.Color.Color ( )
inline

Constructs an empty (default-constructed) instance.

◆ Color() [3/9]

unsafe MR.Color.Color ( MR.Const_NoInit _1)
inline

Generated from constructor MR.Color.Color.

◆ Color() [4/9]

unsafe MR.Color.Color ( int r,
int g,
int b,
int a )
inline

Generated from constructor MR.Color.Color.

◆ Color() [5/9]

unsafe MR.Color.Color ( int r,
int g,
int b )
inline

Generated from constructor MR.Color.Color.

◆ Color() [6/9]

unsafe MR.Color.Color ( float r,
float g,
float b,
float a )
inline

Generated from constructor MR.Color.Color.

◆ Color() [7/9]

unsafe MR.Color.Color ( float r,
float g,
float b )
inline

Generated from constructor MR.Color.Color.

◆ Color() [8/9]

unsafe MR.Color.Color ( in MR.Vector4i vec)
inline

Generated from constructor MR.Color.Color.

◆ Color() [9/9]

unsafe MR.Color.Color ( in MR.Vector4f vec)
inline

Generated from constructor MR.Color.Color.

Member Function Documentation

◆ __MR_add_MR_Color()

unsafe MR.Color MR.Color.__MR_add_MR_Color ( MR.Color * a,
MR.Color * b )
static

◆ __MR_Color_add_assign()

unsafe MR.Color * MR.Color.__MR_Color_add_assign ( MR.Color * _this,
MR.Color * other )
static

◆ __MR_Color_black()

MR.Color MR.Color.__MR_Color_black ( )
static

◆ __MR_Color_blue()

MR.Color MR.Color.__MR_Color_blue ( )
static

◆ __MR_Color_brown()

MR.Color MR.Color.__MR_Color_brown ( )
static

◆ __MR_Color_Construct()

MR.Color MR.Color.__MR_Color_Construct ( int r,
int g,
int b,
int a )
static

◆ __MR_Color_Construct_float()

MR.Color MR.Color.__MR_Color_Construct_float ( float r,
float g,
float b,
float a )
static

◆ __MR_Color_Construct_float_MR_Vector4f()

unsafe MR.Color MR.Color.__MR_Color_Construct_float_MR_Vector4f ( MR.Vector4f * vec)
static

◆ __MR_Color_Construct_int()

unsafe MR.Color MR.Color.__MR_Color_Construct_int ( MR.Vector4i * vec)
static

◆ __MR_Color_Construct_MR_NoInit()

unsafe MR.Color MR.Color.__MR_Color_Construct_MR_NoInit ( MR.NoInit._Underlying * _1)
static

◆ __MR_Color_Construct_rgb()

MR.Color MR.Color.__MR_Color_Construct_rgb ( int r,
int g,
int b )
static

◆ __MR_Color_Construct_rgbFloat()

MR.Color MR.Color.__MR_Color_Construct_rgbFloat ( float r,
float g,
float b )
static

◆ __MR_Color_ConvertTo_MR_Vector4f()

unsafe MR.Vector4f MR.Color.__MR_Color_ConvertTo_MR_Vector4f ( MR.Color * _this)
static

◆ __MR_Color_ConvertTo_MR_Vector4i()

unsafe MR.Vector4i MR.Color.__MR_Color_ConvertTo_MR_Vector4i ( MR.Color * _this)
static

◆ __MR_Color_DefaultConstruct()

MR.Color MR.Color.__MR_Color_DefaultConstruct ( )
static

◆ __MR_Color_div_assign()

unsafe MR.Color * MR.Color.__MR_Color_div_assign ( MR.Color * _this,
float m )
static

◆ __MR_Color_getUInt32()

unsafe uint MR.Color.__MR_Color_getUInt32 ( MR.Color * _this)
static

◆ __MR_Color_gray()

MR.Color MR.Color.__MR_Color_gray ( )
static

◆ __MR_Color_green()

MR.Color MR.Color.__MR_Color_green ( )
static

◆ __MR_Color_index()

unsafe byte * MR.Color.__MR_Color_index ( MR.Color * _this,
int e )
static

◆ __MR_Color_index_mut()

unsafe byte * MR.Color.__MR_Color_index_mut ( MR.Color * _this,
int e )
static

◆ __MR_Color_isTranslucent()

unsafe byte MR.Color.__MR_Color_isTranslucent ( MR.Color * _this)
static

◆ __MR_Color_mul_assign()

unsafe MR.Color * MR.Color.__MR_Color_mul_assign ( MR.Color * _this,
float m )
static

◆ __MR_Color_purple()

MR.Color MR.Color.__MR_Color_purple ( )
static

◆ __MR_Color_red()

MR.Color MR.Color.__MR_Color_red ( )
static

◆ __MR_Color_scaledAlpha()

unsafe MR.Color MR.Color.__MR_Color_scaledAlpha ( MR.Color * _this,
float m )
static

◆ __MR_Color_sub_assign()

unsafe MR.Color * MR.Color.__MR_Color_sub_assign ( MR.Color * _this,
MR.Color * other )
static

◆ __MR_Color_transparent()

MR.Color MR.Color.__MR_Color_transparent ( )
static

◆ __MR_Color_valToUint8_float()

byte MR.Color.__MR_Color_valToUint8_float ( float val)
static

◆ __MR_Color_valToUint8_int()

byte MR.Color.__MR_Color_valToUint8_int ( int val)
static

◆ __MR_Color_white()

MR.Color MR.Color.__MR_Color_white ( )
static

◆ __MR_Color_yellow()

MR.Color MR.Color.__MR_Color_yellow ( )
static

◆ __MR_div_MR_Color_float()

unsafe MR.Color MR.Color.__MR_div_MR_Color_float ( MR.Color * b,
float a )
static

◆ __MR_equal_MR_Color()

unsafe byte MR.Color.__MR_equal_MR_Color ( MR.Color * a,
MR.Color * b )
static

◆ __MR_mul_float_MR_Color()

unsafe MR.Color MR.Color.__MR_mul_float_MR_Color ( float a,
MR.Color * b )
static

◆ __MR_mul_MR_Color_float()

unsafe MR.Color MR.Color.__MR_mul_MR_Color_float ( MR.Color * b,
float a )
static

◆ __MR_sub_MR_Color()

unsafe MR.Color MR.Color.__MR_sub_MR_Color ( MR.Color * a,
MR.Color * b )
static

◆ addAssign()

unsafe ref MR.Color MR.Color.addAssign ( in MR.Color other)
inline

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

◆ black()

MR.Color MR.Color.black ( )
inlinestatic

Generated from method MR.Color.black.

◆ blue()

MR.Color MR.Color.blue ( )
inlinestatic

Generated from method MR.Color.blue.

◆ brown()

MR.Color MR.Color.brown ( )
inlinestatic

Generated from method MR.Color.brown.

◆ divAssign()

unsafe ref MR.Color MR.Color.divAssign ( float m)
inline

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

◆ Equals() [1/2]

bool MR.Color.Equals ( MR.Color b)
inline

◆ Equals() [2/2]

override bool MR.Color.Equals ( object? other)
inline

◆ getUInt32()

readonly unsafe uint MR.Color.getUInt32 ( )
inline

Generated from method MR.Color.getUInt32.

◆ gray()

MR.Color MR.Color.gray ( )
inlinestatic

Generated from method MR.Color.gray.

◆ green()

MR.Color MR.Color.green ( )
inlinestatic

Generated from method MR.Color.green.

◆ index()

unsafe ref byte MR.Color.index ( int e)
inline

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

◆ isTranslucent()

readonly unsafe bool MR.Color.isTranslucent ( )
inline

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.

◆ mulAssign()

unsafe ref MR.Color MR.Color.mulAssign ( float m)
inline

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

◆ operator Color()

implicit MR.Color.operator Color ( ConstBox_Color other)
static

Copy contents from a wrapper class to this struct.

◆ operator MR.Vector4f()

unsafe MR.Color.operator MR.Vector4f ( MR.Color _this)
inlineexplicitstatic

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

◆ operator MR.Vector4i()

unsafe MR.Color.operator MR.Vector4i ( MR.Color _this)
inlineexplicitstatic

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

◆ operator!=()

unsafe bool MR.Color.operator!= ( MR.Color a,
MR.Color b )
inlinestatic

◆ operator*() [1/2]

unsafe MR.Color MR.Color.operator* ( float a,
MR.Color b )
inlinestatic

Generated from function MR::operator*.

◆ operator*() [2/2]

unsafe MR.Color MR.Color.operator* ( MR.Color b,
float a )
inlinestatic

Generated from function MR::operator*.

◆ operator+()

unsafe MR.Color MR.Color.operator+ ( MR.Color a,
in MR.Color b )
inlinestatic

Generated from function MR::operator+.

◆ operator-()

unsafe MR.Color MR.Color.operator- ( MR.Color a,
in MR.Color b )
inlinestatic

Generated from function MR::operator-.

◆ operator/()

unsafe MR.Color MR.Color.operator/ ( MR.Color b,
float a )
inlinestatic

Generated from function MR::operator/.

◆ operator==()

unsafe bool MR.Color.operator== ( MR.Color a,
MR.Color b )
inlinestatic

Generated from function MR::operator==.

◆ purple()

MR.Color MR.Color.purple ( )
inlinestatic

Generated from method MR.Color.purple.

◆ red()

MR.Color MR.Color.red ( )
inlinestatic

Generated from method MR.Color.red.

◆ scaledAlpha()

readonly unsafe MR.Color MR.Color.scaledAlpha ( float m)
inline

Generated from method MR.Color.scaledAlpha.

◆ subAssign()

unsafe ref MR.Color MR.Color.subAssign ( in MR.Color other)
inline

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

◆ transparent()

MR.Color MR.Color.transparent ( )
inlinestatic

Generated from method MR.Color.transparent.

◆ valToUint8() [1/2]

byte MR.Color.valToUint8 ( float val)
inlinestatic

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

◆ valToUint8() [2/2]

byte MR.Color.valToUint8 ( int val)
inlinestatic

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

◆ white()

MR.Color MR.Color.white ( )
inlinestatic

Generated from method MR.Color.white.

◆ yellow()

MR.Color MR.Color.yellow ( )
inlinestatic

Generated from method MR.Color.yellow.

Member Data Documentation

◆ a

byte MR.Color.a

◆ b

byte MR.Color.b

◆ g

byte MR.Color.g

◆ r

byte MR.Color.r

Property Documentation

◆ this[int e]

readonly unsafe byte MR.Color.this[int e]
get

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


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