use of com.badlogic.gdx.graphics.g3d.ModelCache in project nhglib by VoidZombie.
the class GraphicsSystem method end.
@Override
protected void end() {
super.end();
for (int i = 0; i < cameras.size; i++) {
Camera camera = cameras.get(i);
ModelBatch modelBatch = modelBatches.get(i);
ModelCache dynamicCache = dynamicCaches.get(i);
ModelCache staticCache = staticCaches.get(i);
dynamicCache.end();
GLUtils.clearScreen(clearColor);
modelBatch.begin(camera);
modelBatch.render(staticCache, environment);
modelBatch.render(dynamicCache, environment);
modelBatch.end();
if (Nhg.debugDrawPhysics && debugDrawer != null) {
debugDrawer.begin(camera);
physicsSystem.debugDraw();
debugDrawer.end();
}
}
}
Aggregations