C# Класс PathfindingTest.DrawUtil

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

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

Свойство Тип Описание
lineTexture Microsoft.Xna.Framework.Graphics.Texture2D

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

Метод Описание
DrawClearRectangle ( SpriteBatch batch, Rectangle rect, int width, Color c, float z ) : void
DrawCross ( SpriteBatch batch, Rectangle rect, int width, Color c, float z ) : void

Draws a cross.

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

Draws a line!

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

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

TextureTo2DArray ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : ].Color[
TextureToArray ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Color[]

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

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

public static DrawClearRectangle ( SpriteBatch batch, Rectangle rect, int width, Color c, float z ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
rect Microsoft.Xna.Framework.Rectangle
width int
c Color
z float
Результат void

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

Draws a cross.
public static DrawCross ( SpriteBatch batch, Rectangle rect, int width, Color c, float z ) : 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
z float
Результат void

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

Draws a line!
public static DrawLine ( SpriteBatch batch, Point start, Point end, Color c, int width, float z ) : 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
z float
Результат 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

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

public static TextureTo2DArray ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : ].Color[
texture Microsoft.Xna.Framework.Graphics.Texture2D
Результат ].Color[

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

public static TextureToArray ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Color[]
texture Microsoft.Xna.Framework.Graphics.Texture2D
Результат Color[]

Описание свойств

lineTexture публичное статическое свойство

public static Texture2D,Microsoft.Xna.Framework.Graphics lineTexture
Результат Microsoft.Xna.Framework.Graphics.Texture2D