C# Class Box2DX.Dynamics.DebugDraw

Implement and register this class with a b2World to provide debug drawing of physics entities in your game.
Show file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Protected Properties

Property Type Description
_drawFlags DrawFlags

Public Methods

Method Description
AppendFlags ( DrawFlags flags ) : void

Append flags to the current flags.

ClearFlags ( DrawFlags flags ) : void

Clear flags from the current flags.

DebugDraw ( ) : System
DrawCircle ( Vec2 center, float radius, Color color ) : void

Draw a circle.

DrawPolygon ( Vec2 vertices, int vertexCount, Color color ) : void

Draw a closed polygon provided in CCW order.

DrawSegment ( Vec2 p1, Vec2 p2, Color color ) : void

Draw a line segment.

DrawSolidCircle ( Vec2 center, float radius, Vec2 axis, Color color ) : void

Draw a solid circle.

DrawSolidPolygon ( Vec2 vertices, int vertexCount, Color color ) : void

Draw a solid closed polygon provided in CCW order.

DrawXForm ( XForm xf ) : void

Draw a transform. Choose your own length scale.

Method Details

AppendFlags() public method

Append flags to the current flags.
public AppendFlags ( DrawFlags flags ) : void
flags DrawFlags
return void

ClearFlags() public method

Clear flags from the current flags.
public ClearFlags ( DrawFlags flags ) : void
flags DrawFlags
return void

DebugDraw() public method

public DebugDraw ( ) : System
return System

DrawCircle() public abstract method

Draw a circle.
public abstract DrawCircle ( Vec2 center, float radius, Color color ) : void
center Box2DX.Common.Vec2
radius float
color Color
return void

DrawPolygon() public abstract method

Draw a closed polygon provided in CCW order.
public abstract DrawPolygon ( Vec2 vertices, int vertexCount, Color color ) : void
vertices Box2DX.Common.Vec2
vertexCount int
color Color
return void

DrawSegment() public abstract method

Draw a line segment.
public abstract DrawSegment ( Vec2 p1, Vec2 p2, Color color ) : void
p1 Box2DX.Common.Vec2
p2 Box2DX.Common.Vec2
color Color
return void

DrawSolidCircle() public abstract method

Draw a solid circle.
public abstract DrawSolidCircle ( Vec2 center, float radius, Vec2 axis, Color color ) : void
center Box2DX.Common.Vec2
radius float
axis Box2DX.Common.Vec2
color Color
return void

DrawSolidPolygon() public abstract method

Draw a solid closed polygon provided in CCW order.
public abstract DrawSolidPolygon ( Vec2 vertices, int vertexCount, Color color ) : void
vertices Box2DX.Common.Vec2
vertexCount int
color Color
return void

DrawXForm() public abstract method

Draw a transform. Choose your own length scale.
public abstract DrawXForm ( XForm xf ) : void
xf Box2DX.Common.XForm A transform.
return void

Property Details

_drawFlags protected property

protected DrawFlags _drawFlags
return DrawFlags