C# 클래스 Nez.BatcherDrawingExt

an assortment of helper methods to assist with drawing
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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