Axiom.Graphics.LayerBlendModeEx.operator C# (CSharp) Method

operator() public static method

Compares to blending modes for equality.
public static operator ( ) : bool
return bool
		public static bool operator ==( LayerBlendModeEx left, LayerBlendModeEx right )
		{
			if ( (object)left == null && (object)right == null )
			{
				return true;
			}

			if ( (object)left == null || (object)right == null )
			{
				return false;
			}

			if ( left.colorArg1 != right.colorArg1 ||
				 left.colorArg2 != right.colorArg2 ||
				 left.blendFactor != right.blendFactor ||
				 left.source1 != right.source1 ||
				 left.source2 != right.source2 ||
				 left.operation != right.operation )
			{
				return false;
			}
			else
			{
				return true;
			}
		}