C# Class Oglr.Core.Drawing

Inheritance: IDrawing
Show file Open project: SteveDunn/oglr

Public Methods

Method 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

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

Method Details

CreateCircleTexture() public method

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
return Microsoft.Xna.Framework.Graphics.Texture2D

DrawBox() public method

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

DrawBoxFilled() public method

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

DrawBoxFilled() public method

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

DrawBoxFilled() public method

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

DrawCircle() public method

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

DrawCircleFilled() public method

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

DrawLine() public method

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

DrawLine() public method

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

DrawPath() public method

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

DrawPixel() public method

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

DrawPolygon() public method

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

DrawPolygonFilled() public method

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

Drawing() public method

public Drawing ( IGame game ) : System
game IGame
return System