The `SpriteBatch.DrawRectangle` method is a function available in the `Microsoft.Xna.Framework.Graphics.SpriteBatch` class in C#. This function allows you to draw a rectangle onto a specified render target or directly onto the screen. You can specify the position, size, color, and other parameters of the rectangle to be drawn. This method is commonly used in game development to create shapes or UI elements.
C# (CSharp) Microsoft.Xna.Framework.Graphics SpriteBatch.DrawRectangle - 23 examples found. These are the top rated real world C# (CSharp) examples of Microsoft.Xna.Framework.Graphics.SpriteBatch.DrawRectangle extracted from open source projects. You can rate examples to help us improve the quality of examples.