List of usage examples for com.badlogic.gdx.graphics.g3d ModelBatch flush
public void flush()
From source file:com.badlogic.gdx.ai.tests.utils.bullet.BulletWorld.java
License:Apache License
@Override public void render(ModelBatch batch, Environment lights, Iterable<BulletEntity> entities) { if (renderMeshes) super.render(batch, lights, entities); if (debugDrawer != null && debugDrawer.getDebugMode() > 0) { batch.flush(); debugDrawer.begin(batch.getCamera()); collisionWorld.debugDrawWorld(); debugDrawer.end();/*from w w w.j ava 2 s .c o m*/ } }