Class DebugDraw
java.lang.Object
com.codename1.gaming.physics.box2d.callbacks.DebugDraw
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int< draw joint connectionsstatic final int< draw axis aligned bounding boxesstatic final int< draw center of mass framestatic final int< draw shapesstatic final int< draw core (TOI) shapesstatic final intprotected int< draw dynamic tree.protected final IViewportTransform -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendFlags(int flags) voidclearFlags(int flags) abstract voiddrawCircle(Vec2 center, float radius, Color3f color) abstract voidvoiddrawPolygon(Vec2[] vertices, int vertexCount, Color3f color) abstract voiddrawSegment(Vec2 p1, Vec2 p2, Color3f color) abstract voiddrawSolidCircle(Vec2 center, float radius, Vec2 axis, Color3f color) abstract voiddrawSolidPolygon(Vec2[] vertices, int vertexCount, Color3f color) abstract voiddrawString(float x, float y, String s, Color3f color) voiddrawString(Vec2 pos, String s, Color3f color) abstract voidintgetFlags()getScreenToWorld(float screenX, float screenY) getScreenToWorld(Vec2 argScreen) voidgetScreenToWorldToOut(float screenX, float screenY, Vec2 argWorld) voidgetScreenToWorldToOut(Vec2 argScreen, Vec2 argWorld) getWorldToScreen(float worldX, float worldY) getWorldToScreen(Vec2 argWorld) voidgetWorldToScreenToOut(float worldX, float worldY, Vec2 argScreen) voidgetWorldToScreenToOut(Vec2 argWorld, Vec2 argScreen) voidsetCamera(float x, float y, float scale) voidsetFlags(int flags)
-
Field Details
-
e_shapeBit
public static final int e_shapeBit- See Also:
-
e_jointBit
public static final int e_jointBit< draw shapes- See Also:
-
e_aabbBit
public static final int e_aabbBit< draw joint connections- See Also:
-
e_pairBit
public static final int e_pairBit< draw core (TOI) shapes- See Also:
-
e_centerOfMassBit
public static final int e_centerOfMassBit< draw axis aligned bounding boxes- See Also:
-
e_dynamicTreeBit
public static final int e_dynamicTreeBit< draw center of mass frame- See Also:
-
m_drawFlags
protected int m_drawFlags< draw dynamic tree. -
viewportTransform
-
-
Constructor Details
-
DebugDraw
-
-
Method Details
-
setFlags
public void setFlags(int flags) -
getFlags
public int getFlags() -
appendFlags
public void appendFlags(int flags) -
clearFlags
public void clearFlags(int flags) -
drawPolygon
-
drawPoint
-
drawSolidPolygon
-
drawCircle
-
drawSolidCircle
-
drawSegment
-
drawTransform
-
drawString
-
drawString
-
getViewportTranform
-
setCamera
public void setCamera(float x, float y, float scale) -
getScreenToWorldToOut
-
getWorldToScreenToOut
-
getWorldToScreenToOut
-
getWorldToScreen
-
getWorldToScreen
-
getScreenToWorldToOut
-
getScreenToWorld
-
getScreenToWorld
-