AStarCollisionMap.DrawUtil.DrawClearRectangle C# (CSharp) Метод

DrawClearRectangle() публичный статический Метод

public static DrawClearRectangle ( SpriteBatch batch, Rectangle rect, int width, Color c ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
rect Microsoft.Xna.Framework.Rectangle
width int
c Color
Результат void
        public static void DrawClearRectangle(SpriteBatch batch, Rectangle rect, int width, Color c)
        {
            DrawUtil.DrawLine(batch,
                new Point(rect.Left, rect.Top),
                new Point(rect.Left, rect.Bottom),
                c,
                width);
            // Top left to top right
            DrawUtil.DrawLine(batch,
                new Point(rect.Left, rect.Top),
                new Point(rect.Right, rect.Top),
                c,
                width);
            // Top right to bottom right
            DrawUtil.DrawLine(batch,
                new Point(rect.Right, rect.Top),
                new Point(rect.Right, rect.Bottom - 1),
                c,
                width);
            // Bottom right to bottom left
            DrawUtil.DrawLine(batch,
                new Point(rect.Right, rect.Bottom - 1),
                new Point(rect.Left, rect.Bottom - 1),
                c,
                width);
        }