ARCed.XnaExtensions.FillRectangle C# (CSharp) Method

FillRectangle() public static method

Draws and fills a rectangle with given location, size, and color.
public static FillRectangle ( this batch, Rectangle rect, Microsoft.Xna.Framework.Color color ) : void
batch this SpriteBatch to draw the rectangle.
rect Microsoft.Xna.Framework.Rectangle Rectangle to draw
color Microsoft.Xna.Framework.Color Color of the rectangle border
return void
        public static void FillRectangle(this SpriteBatch batch, Rectangle rect, Color color)
        {
            FillRectangle(batch, rect.X, rect.Y, rect.Width, rect.Height, color);
        }

Same methods

XnaExtensions::FillRectangle ( this batch, int x, int y, int width, int height, Microsoft.Xna.Framework.Color color ) : void