A game framework written with osu! in mind.
at master 23 lines 785 B view raw
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. 2// See the LICENCE file in the repository root for full licence text. 3 4using System; 5using osu.Framework.Graphics.Colour; 6using osuTK.Graphics; 7 8namespace osu.Framework.Graphics 9{ 10 public struct DrawColourInfo : IEquatable<DrawColourInfo> 11 { 12 public ColourInfo Colour; 13 public BlendingParameters Blending; 14 15 public DrawColourInfo(ColourInfo? colour = null, BlendingParameters? blending = null) 16 { 17 Colour = colour ?? ColourInfo.SingleColour(Color4.White); 18 Blending = blending ?? BlendingParameters.Inherit; 19 } 20 21 public readonly bool Equals(DrawColourInfo other) => Colour.Equals(other.Colour) && Blending == other.Blending; 22 } 23}