com.badlogic.gdx.physics.box2d
Class Box2DDebugRenderer
java.lang.Object
com.badlogic.gdx.physics.box2d.Box2DDebugRenderer
public class Box2DDebugRenderer
- extends java.lang.Object
Method Summary |
void |
dispose()
|
void |
render(World world,
Matrix4 projMatrix)
This assumes that the projection matrix has already been set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
renderer
protected ShapeRenderer renderer
- the immediate mode renderer to output our debug drawings
batch
public SpriteBatch batch
- a spritebatch and a font for text rendering
Box2DDebugRenderer
public Box2DDebugRenderer()
Box2DDebugRenderer
public Box2DDebugRenderer(boolean drawBodies,
boolean drawJoints,
boolean drawAABBs)
render
public void render(World world,
Matrix4 projMatrix)
- This assumes that the projection matrix has already been set.
dispose
public void dispose()
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)