C# Class Oglr.Core.Drawing

Inheritance: IDrawing
Afficher le fichier Open project: SteveDunn/oglr

Méthodes publiques

Méthode Description
CreateCircleTexture ( GraphicsDevice graphicsDevice, int radius, int borderWidth, int borderInnerTransitionWidth, int borderOuterTransitionWidth, Color color, Color borderColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
DrawBox ( SpriteBatch spriteBatch, Rectangle r, Color c, int lineWidth ) : void
DrawBoxFilled ( SpriteBatch sb, Rectangle r, Color c ) : void
DrawBoxFilled ( SpriteBatch sb, Vector2 upperLeft, Vector2 lowerRight, Color c ) : void
DrawBoxFilled ( SpriteBatch sb, float x, float y, float w, float h, Color c ) : void
DrawCircle ( SpriteBatch sb, Vector2 position, float radius, Color c, int linewidth ) : void
DrawCircleFilled ( SpriteBatch spriteBatch, Vector2 position, float radius, Color color ) : void
DrawLine ( SpriteBatch spriteBatch, Vector2 startpos, Vector2 endpos, Color c, int linewidth ) : void
DrawLine ( SpriteBatch spriteBatch, float x1, float y1, float x2, float y2, Color color, int lineWidth ) : void
DrawPath ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
DrawPixel ( SpriteBatch spriteBatch, int x, int y, Color color ) : void
DrawPolygon ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
DrawPolygonFilled ( SpriteBatch spriteBatch, Vector2 worldPoints, Color color ) : void
Drawing ( IGame game ) : System

Private Methods

Méthode Description
makeCircle ( Vector2 position, float radius, int numpoints ) : Vector2[]
resizeBasicEffect ( ) : void

Method Details

CreateCircleTexture() public méthode

public CreateCircleTexture ( GraphicsDevice graphicsDevice, int radius, int borderWidth, int borderInnerTransitionWidth, int borderOuterTransitionWidth, Color color, Color borderColor ) : Microsoft.Xna.Framework.Graphics.Texture2D
graphicsDevice GraphicsDevice
radius int
borderWidth int
borderInnerTransitionWidth int
borderOuterTransitionWidth int
color Color
borderColor Color
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

DrawBox() public méthode

public DrawBox ( SpriteBatch spriteBatch, Rectangle r, Color c, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
r Microsoft.Xna.Framework.Rectangle
c Color
lineWidth int
Résultat void

DrawBoxFilled() public méthode

public DrawBoxFilled ( SpriteBatch sb, Rectangle r, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
r Microsoft.Xna.Framework.Rectangle
c Color
Résultat void

DrawBoxFilled() public méthode

public DrawBoxFilled ( SpriteBatch sb, Vector2 upperLeft, Vector2 lowerRight, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
upperLeft Vector2
lowerRight Vector2
c Color
Résultat void

DrawBoxFilled() public méthode

public DrawBoxFilled ( SpriteBatch sb, float x, float y, float w, float h, Color c ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
x float
y float
w float
h float
c Color
Résultat void

DrawCircle() public méthode

public DrawCircle ( SpriteBatch sb, Vector2 position, float radius, Color c, int linewidth ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
radius float
c Color
linewidth int
Résultat void

DrawCircleFilled() public méthode

public DrawCircleFilled ( SpriteBatch spriteBatch, Vector2 position, float radius, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
position Vector2
radius float
color Color
Résultat void

DrawLine() public méthode

public DrawLine ( SpriteBatch spriteBatch, Vector2 startpos, Vector2 endpos, Color c, int linewidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
startpos Vector2
endpos Vector2
c Color
linewidth int
Résultat void

DrawLine() public méthode

public DrawLine ( SpriteBatch spriteBatch, float x1, float y1, float x2, float y2, Color color, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
x1 float
y1 float
x2 float
y2 float
color Color
lineWidth int
Résultat void

DrawPath() public méthode

public DrawPath ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
points Vector2
color Color
lineWidth int
Résultat void

DrawPixel() public méthode

public DrawPixel ( SpriteBatch spriteBatch, int x, int y, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
x int
y int
color Color
Résultat void

DrawPolygon() public méthode

public DrawPolygon ( SpriteBatch spriteBatch, Vector2 points, Color color, int lineWidth ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
points Vector2
color Color
lineWidth int
Résultat void

DrawPolygonFilled() public méthode

public DrawPolygonFilled ( SpriteBatch spriteBatch, Vector2 worldPoints, Color color ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
worldPoints Vector2
color Color
Résultat void

Drawing() public méthode

public Drawing ( IGame game ) : System
game IGame
Résultat System