C# Класс AStarCollisionMap.DrawUtil

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
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