Class DebugDrawJ2D
java.lang.Object
de.pirckheimer_gymnasium.jbox2d.callbacks.DebugDraw
de.pirckheimer_gymnasium.jbox2d.testbed.framework.j2d.DebugDrawJ2D
Implementation of
DebugDraw that uses Java2D! Hooray!- Author:
- Daniel Murphy
-
Field Summary
FieldsFields inherited from class de.pirckheimer_gymnasium.jbox2d.callbacks.DebugDraw
e_aabbBit, e_centerOfMassBit, e_dynamicTreeBit, e_jointBit, e_pairBit, e_shapeBit, e_wireframeDrawingBit, m_drawFlags, viewportTransform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddrawCircle(Vec2 center, float radius, Color3f color) voiddrawCircle(Vec2 center, float radius, Vec2 axis, Color3f color) voiddrawParticles(Vec2[] centers, float radius, ParticleColor[] colors, int count) voiddrawParticlesWireframe(Vec2[] centers, float radius, ParticleColor[] colors, int count) voidvoiddrawPolygon(Vec2[] vertices, int vertexCount, Color3f color) voiddrawSegment(Vec2 p1, Vec2 p2, Color3f color) voiddrawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color) voiddrawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color) voiddrawString(float x, float y, String s, Color3f color) voidvoidsetViewportTransform(IViewportTransform viewportTransform) Methods inherited from class de.pirckheimer_gymnasium.jbox2d.callbacks.DebugDraw
appendFlags, clearFlags, drawString, flush, getFlags, getScreenToWorld, getScreenToWorld, getScreenToWorldToOut, getScreenToWorldToOut, getViewportTranform, getWorldToScreen, getWorldToScreen, getWorldToScreenToOut, getWorldToScreenToOut, setCamera, setFlags
-
Field Details
-
circlePoints
public static int circlePoints -
edgeWidth
public static final float edgeWidth- See Also:
-
-
Constructor Details
-
DebugDrawJ2D
-
-
Method Details
-
setViewportTransform
- Overrides:
setViewportTransformin classDebugDraw
-
drawPoint
-
drawSegment
- Specified by:
drawSegmentin classDebugDraw
-
drawAABB
-
drawCircle
- Specified by:
drawCirclein classDebugDraw
-
drawCircle
- Overrides:
drawCirclein classDebugDraw
-
drawSolidCircle
- Specified by:
drawSolidCirclein classDebugDraw
-
drawParticles
- Specified by:
drawParticlesin classDebugDraw
-
drawParticlesWireframe
- Specified by:
drawParticlesWireframein classDebugDraw
-
drawSolidPolygon
- Specified by:
drawSolidPolygonin classDebugDraw
-
drawPolygon
- Overrides:
drawPolygonin classDebugDraw
-
drawString
- Specified by:
drawStringin classDebugDraw
-
drawTransform
- Specified by:
drawTransformin classDebugDraw
-