C# Class AStarCollisionMap.DrawUtil

Exibir arquivo Open project: Wotuu/RTS_XNA_v2

Public Properties

Property Type Description
lineTexture Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
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.

Method Details

DrawClearRectangle() public static method

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
return void

DrawCross() public static method

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
return void

DrawLine() public static method

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
return void

GetClearTexture2D() public static method

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.
return Microsoft.Xna.Framework.Graphics.Texture2D

Property Details

lineTexture public_oe static_oe property

public static Texture2D,Microsoft.Xna.Framework.Graphics lineTexture
return Microsoft.Xna.Framework.Graphics.Texture2D