C# Class Pokemon3D.Common.Shapes.ShapeRenderer

ファイルを表示 Open project: nilllzz/Pokemon3D Class Usage Examples

Private Properties

Property Type Description

Public Methods

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

Method Details

DrawLine() public method

public DrawLine ( Point startPoint, Point endPoint, Color color, int thinkness = 1 ) : void
startPoint Point
endPoint Point
color Color
thinkness int
return void

DrawLine() public method

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

DrawOutline() public method

public DrawOutline ( Polygon polygon, Vector2 position, Color color, int thickness = 1 ) : void
polygon Polygon
position Vector2
color Color
thickness int
return void

DrawOutline() public method

public DrawOutline ( Triangle triangle, Vector2 position, Color color, int thickness = 1 ) : void
triangle Triangle
position Vector2
color Color
thickness int
return void

DrawRectangle() public method

public DrawRectangle ( Rectangle destinationRectangle, Color color ) : void
destinationRectangle Microsoft.Xna.Framework.Rectangle
color Color
return void

DrawRectangle() public method

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

DrawRectangle() public method

public DrawRectangle ( int x, int y, int width, int height, Color color ) : void
x int
y int
width int
height int
color Color
return void

DrawShape() public method

public DrawShape ( Shape shape, Color color ) : void
shape Shape
color Color
return void

DrawShape() public method

public DrawShape ( Shape shape, Rectangle destinationRectangle, Color color ) : void
shape Shape
destinationRectangle Microsoft.Xna.Framework.Rectangle
color Color
return void

DrawShape() public method

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

DrawShape() public method

public DrawShape ( Shape shape, Vector2 position, Color color ) : void
shape Shape
position Vector2
color Color
return void

DrawShape() public method

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

DrawShapeGradientFill() public method

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

ShapeRenderer() public method

public ShapeRenderer ( SpriteBatch spriteBatch ) : Microsoft.Xna.Framework
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return Microsoft.Xna.Framework