Microsoft.Xna.Framework.Graphics.SpriteBatcher.CompareDepth C# (CSharp) Method

CompareDepth() static private method

Compares the Depth of a against b returning -1 if a is less than b, 0 if equal, and 1 if a is greater than b. The test uses float.CompareTo(float)
static private CompareDepth ( SpriteBatchItem a, SpriteBatchItem b ) : int
a SpriteBatchItem
b SpriteBatchItem
return int
	    static int CompareDepth ( SpriteBatchItem a, SpriteBatchItem b )
		{
			return a.Depth.CompareTo(b.Depth);
		}