C# 클래스 AStarCollisionMap.DrawUtil

파일 보기 프로젝트 열기: Wotuu/RTS_XNA_v2

공개 프로퍼티들

프로퍼티 타입 설명
lineTexture Microsoft.Xna.Framework.Graphics.Texture2D

공개 메소드들

메소드 설명
DrawClearRectangle ( SpriteBatch batch, Rectangle rect, int width, Color c ) : void
DrawCross ( SpriteBatch batch, Rectangle rect, int width, Color c ) : void

Draws a cross.

DrawLine ( SpriteBatch batch, Point start, Point end, Color c, int width ) : void

Draws a line!

GetClearTexture2D ( SpriteBatch batch ) : Microsoft.Xna.Framework.Graphics.Texture2D

Gets a 1x1 texture with a clear transparent pixel in it.

메소드 상세

DrawClearRectangle() 공개 정적인 메소드

public static DrawClearRectangle ( SpriteBatch batch, Rectangle rect, int width, Color c ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
rect Microsoft.Xna.Framework.Rectangle
width int
c Color
리턴 void

DrawCross() 공개 정적인 메소드

Draws a cross.
public static DrawCross ( SpriteBatch batch, Rectangle rect, int width, Color c ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch to draw on.
rect Microsoft.Xna.Framework.Rectangle The rectangle to draw on.
width int The width of the border.
c Color The Color
리턴 void

DrawLine() 공개 정적인 메소드

Draws a line!
public static DrawLine ( SpriteBatch batch, Point start, Point end, Color c, int width ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch The batch to draw on.
start Point Startpoint
end Point Endpoint
c Color The color of the line
width int
리턴 void

GetClearTexture2D() 공개 정적인 메소드

Gets a 1x1 texture with a clear transparent pixel in it.
public static GetClearTexture2D ( SpriteBatch batch ) : Microsoft.Xna.Framework.Graphics.Texture2D
batch Microsoft.Xna.Framework.Graphics.SpriteBatch The batch to create the texture from.
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

프로퍼티 상세

lineTexture 공개적으로 정적으로 프로퍼티

public static Texture2D,Microsoft.Xna.Framework.Graphics lineTexture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D