public DrawInfo(Matrix3?matrix = null, Matrix3?matrixInverse = null, ColourInfo?colour = null, BlendingInfo?blending = null)
 {
     Matrix        = matrix ?? Matrix3.Identity;
     MatrixInverse = matrixInverse ?? Matrix3.Identity;
     Colour        = colour ?? ColourInfo.SingleColour(Color4.White);
     Blending      = blending ?? new BlendingInfo();
 }
Exemple #2
0
 public bool Equals(BlendingInfo other) =>
 other.Source == Source &&
 other.Destination == Destination &&
 other.SourceAlpha == SourceAlpha &&
 other.DestinationAlpha == DestinationAlpha &&
 other.RGBEquation == RGBEquation &&
 other.AlphaEquation == AlphaEquation;
 /// <summary>
 /// Copies the current BlendingInfo into target.
 /// </summary>
 /// <param name="target">The BlendingInfo to be filled with the copy.</param>
 public void Copy(ref BlendingInfo target)
 {
     target.Source           = Source;
     target.Destination      = Destination;
     target.SourceAlpha      = SourceAlpha;
     target.DestinationAlpha = DestinationAlpha;
 }
 public DrawColourInfo(ColourInfo?colour = null, BlendingInfo?blending = null)
 {
     Colour   = colour ?? ColourInfo.SingleColour(Color4.White);
     Blending = blending ?? new BlendingInfo();
 }
Exemple #5
0
 public bool Equals(BlendingInfo other)
 {
     return(other.Source == Source && other.Destination == Destination && other.SourceAlpha == SourceAlpha && other.DestinationAlpha == DestinationAlpha);
 }