C# Class Nez.BatcherDrawingExt

an assortment of helper methods to assist with drawing
Mostra file Open project: prime31/Nez

Public Methods

Method Description
drawCircle ( this batcher, Vector2 position, float radius, Color color, float thickness = 1f, int resolution = 12 ) : void
drawCircle ( this batcher, float x, float y, float radius, Color color, int thickness = 1, int resolution = 12 ) : void
drawHollowRect ( this batcher, Rectangle rect, Color color, float thickness = 1 ) : void
drawHollowRect ( this batcher, RectangleF rect, Color color, float thickness = 1 ) : void
drawHollowRect ( this batcher, Vector2 position, float width, float height, Color color, float thickness = 1 ) : void
drawHollowRect ( this batcher, float x, float y, float width, float height, Color color, float thickness = 1 ) : void
drawLine ( this batcher, Vector2 start, Vector2 end, Color color ) : void
drawLine ( this batcher, Vector2 start, Vector2 end, Color color, float thickness ) : void
drawLine ( this batcher, float x1, float y1, float x2, float y2, Color color ) : void
drawLineAngle ( this batcher, Vector2 start, float radians, float length, Color color ) : void
drawLineAngle ( this batcher, Vector2 start, float radians, float length, Color color, float thickness ) : void
drawLineAngle ( this batcher, float startX, float startY, float radians, float length, Color color ) : void
drawPixel ( this batcher, Vector2 position, Color color, int size = 1 ) : void
drawPixel ( this batcher, float x, float y, Color color, int size = 1 ) : void
drawPoints ( this batcher, List points, Color color, float thickness = 1 ) : void

Draws a list of connected points

drawPoints ( this batcher, Vector2 points, Color color, float thickness = 1 ) : void

Draws a list of connected points

drawPoints ( this batcher, Vector2 position, Vector2 points, Color color, bool closePoly = true, float thickness = 1 ) : void

Draws a list of connected points

drawPolygon ( this batcher, Vector2 position, Vector2 points, Color color, bool closePoly = true, float thickness = 1 ) : void
drawRect ( this batcher, Rectangle rect, Color color ) : void
drawRect ( this batcher, Vector2 position, float width, float height, Color color ) : void
drawRect ( this batcher, float x, float y, float width, float height, Color color ) : void

Method Details

drawCircle() public static method

public static drawCircle ( this batcher, Vector2 position, float radius, Color color, float thickness = 1f, int resolution = 12 ) : void
batcher this
position Vector2
radius float
color Color
thickness float
resolution int
return void

drawCircle() public static method

public static drawCircle ( this batcher, float x, float y, float radius, Color color, int thickness = 1, int resolution = 12 ) : void
batcher this
x float
y float
radius float
color Color
thickness int
resolution int
return void

drawHollowRect() public static method

public static drawHollowRect ( this batcher, Rectangle rect, Color color, float thickness = 1 ) : void
batcher this
rect Microsoft.Xna.Framework.Rectangle
color Color
thickness float
return void

drawHollowRect() public static method

public static drawHollowRect ( this batcher, RectangleF rect, Color color, float thickness = 1 ) : void
batcher this
rect RectangleF
color Color
thickness float
return void

drawHollowRect() public static method

public static drawHollowRect ( this batcher, Vector2 position, float width, float height, Color color, float thickness = 1 ) : void
batcher this
position Vector2
width float
height float
color Color
thickness float
return void

drawHollowRect() public static method

public static drawHollowRect ( this batcher, float x, float y, float width, float height, Color color, float thickness = 1 ) : void
batcher this
x float
y float
width float
height float
color Color
thickness float
return void

drawLine() public static method

public static drawLine ( this batcher, Vector2 start, Vector2 end, Color color ) : void
batcher this
start Vector2
end Vector2
color Color
return void

drawLine() public static method

public static drawLine ( this batcher, Vector2 start, Vector2 end, Color color, float thickness ) : void
batcher this
start Vector2
end Vector2
color Color
thickness float
return void

drawLine() public static method

public static drawLine ( this batcher, float x1, float y1, float x2, float y2, Color color ) : void
batcher this
x1 float
y1 float
x2 float
y2 float
color Color
return void

drawLineAngle() public static method

public static drawLineAngle ( this batcher, Vector2 start, float radians, float length, Color color ) : void
batcher this
start Vector2
radians float
length float
color Color
return void

drawLineAngle() public static method

public static drawLineAngle ( this batcher, Vector2 start, float radians, float length, Color color, float thickness ) : void
batcher this
start Vector2
radians float
length float
color Color
thickness float
return void

drawLineAngle() public static method

public static drawLineAngle ( this batcher, float startX, float startY, float radians, float length, Color color ) : void
batcher this
startX float
startY float
radians float
length float
color Color
return void

drawPixel() public static method

public static drawPixel ( this batcher, Vector2 position, Color color, int size = 1 ) : void
batcher this
position Vector2
color Color
size int
return void

drawPixel() public static method

public static drawPixel ( this batcher, float x, float y, Color color, int size = 1 ) : void
batcher this
x float
y float
color Color
size int
return void

drawPoints() public static method

Draws a list of connected points
public static drawPoints ( this batcher, List points, Color color, float thickness = 1 ) : void
batcher this
points List The points to connect with lines
color Color The color to use
thickness float The thickness of the lines
return void

drawPoints() public static method

Draws a list of connected points
public static drawPoints ( this batcher, Vector2 points, Color color, float thickness = 1 ) : void
batcher this
points Vector2 The points to connect with lines
color Color The color to use
thickness float The thickness of the lines
return void

drawPoints() public static method

Draws a list of connected points
public static drawPoints ( this batcher, Vector2 position, Vector2 points, Color color, bool closePoly = true, float thickness = 1 ) : void
batcher this
position Vector2
points Vector2 The points to connect with lines
color Color The color to use
closePoly bool If set to true the first and last points will be connected.
thickness float The thickness of the lines
return void

drawPolygon() public static method

public static drawPolygon ( this batcher, Vector2 position, Vector2 points, Color color, bool closePoly = true, float thickness = 1 ) : void
batcher this
position Vector2
points Vector2
color Color
closePoly bool
thickness float
return void

drawRect() public static method

public static drawRect ( this batcher, Rectangle rect, Color color ) : void
batcher this
rect Microsoft.Xna.Framework.Rectangle
color Color
return void

drawRect() public static method

public static drawRect ( this batcher, Vector2 position, float width, float height, Color color ) : void
batcher this
position Vector2
width float
height float
color Color
return void

drawRect() public static method

public static drawRect ( this batcher, float x, float y, float width, float height, Color color ) : void
batcher this
x float
y float
width float
height float
color Color
return void