C# Class Nez.SpriteBatchExt

ファイルを表示 Open project: prime31/Nez

Public Methods

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

Draws a list of connected points

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

Draws a list of connected points

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

Draws a list of connected points

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

Method Details

drawCircle() public static method

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

drawCircle() public static method

public static drawCircle ( this spriteBatch, float x, float y, float radius, Color color, int resolution ) : void
spriteBatch this
x float
y float
radius float
color Color
resolution int
return void

drawHollowRect() public static method

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

drawHollowRect() public static method

public static drawHollowRect ( this spriteBatch, RectangleF rect, Color color ) : void
spriteBatch this
rect RectangleF
color Color
return void

drawHollowRect() public static method

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

drawHollowRect() public static method

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

drawLine() public static method

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

drawLine() public static method

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

drawLine() public static method

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

drawLineAngle() public static method

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

drawLineAngle() public static method

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

drawLineAngle() public static method

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

drawPixel() public static method

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

drawPixel() public static method

public static drawPixel ( this spriteBatch, float x, float y, Color color ) : void
spriteBatch this
x float
y float
color Color
return void

drawPoints() public static method

Draws a list of connected points
public static drawPoints ( this spriteBatch, List points, Color color, float thickness = 1 ) : void
spriteBatch 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 spriteBatch, Vector2 points, Color color, float thickness = 1 ) : void
spriteBatch 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 spriteBatch, Vector2 position, Vector2 points, Color color, bool closePoly = true, float thickness = 1 ) : void
spriteBatch 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 spriteBatch, Vector2 position, Vector2 points, Color color, bool closePoly = true, float thickness = 1 ) : void
spriteBatch this
position Vector2
points Vector2
color Color
closePoly bool
thickness float
return void

drawRect() public static method

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

drawRect() public static method

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

drawRect() public static method

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