Example usage for com.badlogic.gdx.graphics.g3d ModelBatch flush

List of usage examples for com.badlogic.gdx.graphics.g3d ModelBatch flush

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g3d ModelBatch flush.

Prototype

public void flush() 

Source Link

Document

Flushes the batch, causing all Renderable s in the batch to be rendered.

Usage

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*/
    }
}