C# Class SharpNeat.DomainsExtra.Box2D.OpenGLDebugDraw

Box2DX debug drawing class that redirects drawing calls to Open GL.
Inheritance: Box2DX.Dynamics.DebugDraw
显示文件 Open project: colgreen/sharpneat

Public Methods

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

DrawCircle() public method

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

DrawPolygon() public method

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

DrawSegment() public method

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

DrawSolidCircle() public method

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

DrawSolidPolygon() public method

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

DrawXForm() public method

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