C# Класс Nez.BatcherDrawingExt

an assortment of helper methods to assist with drawing
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

drawCircle() публичный статический Метод

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
Результат void

drawCircle() публичный статический Метод

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
Результат void

drawHollowRect() публичный статический Метод

public static drawHollowRect ( this batcher, Rectangle rect, Color color, float thickness = 1 ) : void
batcher this
rect Microsoft.Xna.Framework.Rectangle
color Color
thickness float
Результат void

drawHollowRect() публичный статический Метод

public static drawHollowRect ( this batcher, RectangleF rect, Color color, float thickness = 1 ) : void
batcher this
rect RectangleF
color Color
thickness float
Результат void

drawHollowRect() публичный статический Метод

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
Результат void

drawHollowRect() публичный статический Метод

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
Результат void

drawLine() публичный статический Метод

public static drawLine ( this batcher, Vector2 start, Vector2 end, Color color ) : void
batcher this
start Vector2
end Vector2
color Color
Результат void

drawLine() публичный статический Метод

public static drawLine ( this batcher, Vector2 start, Vector2 end, Color color, float thickness ) : void
batcher this
start Vector2
end Vector2
color Color
thickness float
Результат void

drawLine() публичный статический Метод

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
Результат void

drawLineAngle() публичный статический Метод

public static drawLineAngle ( this batcher, Vector2 start, float radians, float length, Color color ) : void
batcher this
start Vector2
radians float
length float
color Color
Результат void

drawLineAngle() публичный статический Метод

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
Результат void

drawLineAngle() публичный статический Метод

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
Результат void

drawPixel() публичный статический Метод

public static drawPixel ( this batcher, Vector2 position, Color color, int size = 1 ) : void
batcher this
position Vector2
color Color
size int
Результат void

drawPixel() публичный статический Метод

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
Результат void

drawPoints() публичный статический Метод

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
Результат void

drawPoints() публичный статический Метод

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
Результат void

drawPoints() публичный статический Метод

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
Результат void

drawPolygon() публичный статический Метод

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
Результат void

drawRect() публичный статический Метод

public static drawRect ( this batcher, Rectangle rect, Color color ) : void
batcher this
rect Microsoft.Xna.Framework.Rectangle
color Color
Результат void

drawRect() публичный статический Метод

public static drawRect ( this batcher, Vector2 position, float width, float height, Color color ) : void
batcher this
position Vector2
width float
height float
color Color
Результат void

drawRect() публичный статический Метод

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
Результат void