C# Class TestBed.OpenGLDebugDraw

Inheritance: Box2DX.Dynamics.DebugDraw
Show file Open project: colgreen/box2dx Class Usage Examples

Public Methods

Method Description
DrawAABB ( AABB aabb, Color c ) : void
DrawCircle ( Vec2 center, float radius, Color color ) : void
DrawPoint ( Vec2 p, float size, Color color ) : void
DrawPolygon ( Vec2 vertices, int vertexCount, Color color ) : void
DrawSegment ( Vec2 p1, Vec2 p2, Color color ) : void
DrawSolidCircle ( Vec2 center, float radius, Vec2 axis, Color color ) : void
DrawSolidPolygon ( Vec2 vertices, int vertexCount, Color color ) : void
DrawString ( int x, int y, string str ) : void
DrawXForm ( XForm xf ) : void
InitTextRenderer ( Tao openGlCtrl ) : void

Method Details

DrawAABB() public static method

public static DrawAABB ( AABB aabb, Color c ) : void
aabb Box2DX.Collision.AABB
c Box2DX.Dynamics.Color
return void

DrawCircle() public method

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

DrawPoint() public static method

public static DrawPoint ( Vec2 p, float size, Color color ) : void
p Box2DX.Common.Vec2
size float
color Box2DX.Dynamics.Color
return void

DrawPolygon() public method

public DrawPolygon ( Vec2 vertices, int vertexCount, Color color ) : void
vertices Box2DX.Common.Vec2
vertexCount int
color Box2DX.Dynamics.Color
return void

DrawSegment() public method

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

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

public DrawSolidPolygon ( Vec2 vertices, int vertexCount, Color color ) : void
vertices Box2DX.Common.Vec2
vertexCount int
color Box2DX.Dynamics.Color
return void

DrawString() public static method

public static DrawString ( int x, int y, string str ) : void
x int
y int
str string
return void

DrawXForm() public method

public DrawXForm ( XForm xf ) : void
xf Box2DX.Common.XForm
return void

InitTextRenderer() public static method

public static InitTextRenderer ( Tao openGlCtrl ) : void
openGlCtrl Tao
return void