C# Class Box2DX.Dynamics.DebugDraw

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

Protected Properties

Свойство Type Description
_drawFlags DrawFlags

Méthodes publiques

Méthode 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 méthode

Append flags to the current flags.
public AppendFlags ( DrawFlags flags ) : void
flags DrawFlags
Résultat void

ClearFlags() public méthode

Clear flags from the current flags.
public ClearFlags ( DrawFlags flags ) : void
flags DrawFlags
Résultat void

DebugDraw() public méthode

public DebugDraw ( ) : System
Résultat System

DrawCircle() public abstract méthode

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

DrawPolygon() public abstract méthode

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
Résultat void

DrawSegment() public abstract méthode

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

DrawSolidCircle() public abstract méthode

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
Résultat void

DrawSolidPolygon() public abstract méthode

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
Résultat void

DrawXForm() public abstract méthode

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

Property Details

_drawFlags protected_oe property

protected DrawFlags _drawFlags
Résultat DrawFlags