C# Класс Pokemon3D.Common.Shapes.ShapeRenderer

Показать файл Открыть проект Примеры использования класса

Private Properties

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

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

Метод Описание
DrawLine ( Point startPoint, Point endPoint, Color color, int thinkness = 1 ) : void
DrawLine ( int x1, int y1, int x2, int y2, Color color, int thinkness = 1 ) : void
DrawOutline ( Polygon polygon, Vector2 position, Color color, int thickness = 1 ) : void
DrawOutline ( Triangle triangle, Vector2 position, Color color, int thickness = 1 ) : void
DrawRectangle ( Rectangle destinationRectangle, Color color ) : void
DrawRectangle ( Rectangle destinationRectangle, Color color, float rotation = 0f, Vector2 origin = null, bool filled = true ) : void
DrawRectangle ( int x, int y, int width, int height, Color color ) : void
DrawShape ( Shape shape, Color color ) : void
DrawShape ( Shape shape, Rectangle destinationRectangle, Color color ) : void
DrawShape ( Shape shape, Rectangle destinationRectangle, Color color, float rotation = 0f, Vector2 origin = null, SpriteEffects effects = SpriteEffects.None ) : void
DrawShape ( Shape shape, Vector2 position, Color color ) : void
DrawShape ( ShapeFillData fillData, Rectangle destinationRectangle, Color color, float rotation = 0f, Vector2 origin = null, SpriteEffects effects = SpriteEffects.None ) : void
DrawShapeGradientFill ( Shape shape, Rectangle destinationRectangle, Color colorFrom, Color colorTo, bool vertical, float rotation = 0f, Vector2 origin = null, SpriteEffects effects = SpriteEffects.None ) : void
ShapeRenderer ( SpriteBatch spriteBatch ) : Microsoft.Xna.Framework

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

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

public DrawLine ( Point startPoint, Point endPoint, Color color, int thinkness = 1 ) : void
startPoint Point
endPoint Point
color Color
thinkness int
Результат void

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

public DrawLine ( int x1, int y1, int x2, int y2, Color color, int thinkness = 1 ) : void
x1 int
y1 int
x2 int
y2 int
color Color
thinkness int
Результат void

DrawOutline() публичный Метод

public DrawOutline ( Polygon polygon, Vector2 position, Color color, int thickness = 1 ) : void
polygon Polygon
position Vector2
color Color
thickness int
Результат void

DrawOutline() публичный Метод

public DrawOutline ( Triangle triangle, Vector2 position, Color color, int thickness = 1 ) : void
triangle Triangle
position Vector2
color Color
thickness int
Результат void

DrawRectangle() публичный Метод

public DrawRectangle ( Rectangle destinationRectangle, Color color ) : void
destinationRectangle Microsoft.Xna.Framework.Rectangle
color Color
Результат void

DrawRectangle() публичный Метод

public DrawRectangle ( Rectangle destinationRectangle, Color color, float rotation = 0f, Vector2 origin = null, bool filled = true ) : void
destinationRectangle Microsoft.Xna.Framework.Rectangle
color Color
rotation float
origin Vector2
filled bool
Результат void

DrawRectangle() публичный Метод

public DrawRectangle ( int x, int y, int width, int height, Color color ) : void
x int
y int
width int
height int
color Color
Результат void

DrawShape() публичный Метод

public DrawShape ( Shape shape, Color color ) : void
shape Shape
color Color
Результат void

DrawShape() публичный Метод

public DrawShape ( Shape shape, Rectangle destinationRectangle, Color color ) : void
shape Shape
destinationRectangle Microsoft.Xna.Framework.Rectangle
color Color
Результат void

DrawShape() публичный Метод

public DrawShape ( Shape shape, Rectangle destinationRectangle, Color color, float rotation = 0f, Vector2 origin = null, SpriteEffects effects = SpriteEffects.None ) : void
shape Shape
destinationRectangle Microsoft.Xna.Framework.Rectangle
color Color
rotation float
origin Vector2
effects SpriteEffects
Результат void

DrawShape() публичный Метод

public DrawShape ( Shape shape, Vector2 position, Color color ) : void
shape Shape
position Vector2
color Color
Результат void

DrawShape() публичный Метод

public DrawShape ( ShapeFillData fillData, Rectangle destinationRectangle, Color color, float rotation = 0f, Vector2 origin = null, SpriteEffects effects = SpriteEffects.None ) : void
fillData ShapeFillData
destinationRectangle Microsoft.Xna.Framework.Rectangle
color Color
rotation float
origin Vector2
effects SpriteEffects
Результат void

DrawShapeGradientFill() публичный Метод

public DrawShapeGradientFill ( Shape shape, Rectangle destinationRectangle, Color colorFrom, Color colorTo, bool vertical, float rotation = 0f, Vector2 origin = null, SpriteEffects effects = SpriteEffects.None ) : void
shape Shape
destinationRectangle Microsoft.Xna.Framework.Rectangle
colorFrom Color
colorTo Color
vertical bool
rotation float
origin Vector2
effects SpriteEffects
Результат void

ShapeRenderer() публичный Метод

public ShapeRenderer ( SpriteBatch spriteBatch ) : Microsoft.Xna.Framework
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат Microsoft.Xna.Framework