C# Class SmartboyDevelopments.Haxxit.MonoGame.PrimiviteDrawing

Show file Open project: smartboyathome/Haxxit

Public Methods

Method Description
DrawCircle ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch spritbatch, Vector2 center, float radius, Color color, int lineWidth = 2, int segments = 16 ) : void
DrawLineSegment ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch spriteBatch, Vector2 point1, Vector2 point2, Color color, int lineWidth ) : void
DrawPolygon ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch spriteBatch, Vector2 vertex, int count, Color color, int lineWidth ) : void
DrawRectangle ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch batch, Rectangle area ) : void
DrawRectangle ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch batch, Rectangle area, int width, Color color ) : void

Method Details

DrawCircle() public static method

public static DrawCircle ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch spritbatch, Vector2 center, float radius, Color color, int lineWidth = 2, int segments = 16 ) : void
whitePixel Microsoft.Xna.Framework.Graphics.Texture2D
spritbatch Microsoft.Xna.Framework.Graphics.SpriteBatch
center Vector2
radius float
color Color
lineWidth int
segments int
return void

DrawLineSegment() public static method

public static DrawLineSegment ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch spriteBatch, Vector2 point1, Vector2 point2, Color color, int lineWidth ) : void
whitePixel Microsoft.Xna.Framework.Graphics.Texture2D
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
point1 Vector2
point2 Vector2
color Color
lineWidth int
return void

DrawPolygon() public static method

public static DrawPolygon ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch spriteBatch, Vector2 vertex, int count, Color color, int lineWidth ) : void
whitePixel Microsoft.Xna.Framework.Graphics.Texture2D
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
vertex Vector2
count int
color Color
lineWidth int
return void

DrawRectangle() public static method

public static DrawRectangle ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch batch, Rectangle area ) : void
whitePixel Microsoft.Xna.Framework.Graphics.Texture2D
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
area Microsoft.Xna.Framework.Rectangle
return void

DrawRectangle() public static method

public static DrawRectangle ( Microsoft.Xna.Framework.Graphics.Texture2D whitePixel, SpriteBatch batch, Rectangle area, int width, Color color ) : void
whitePixel Microsoft.Xna.Framework.Graphics.Texture2D
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
area Microsoft.Xna.Framework.Rectangle
width int
color Color
return void