Skip to content

Instantly share code, notes, and snippets.

@nanonull
Created January 2, 2016 22:17
Show Gist options
  • Save nanonull/3f6e814e3b5bd4970cd7 to your computer and use it in GitHub Desktop.
Save nanonull/3f6e814e3b5bd4970cd7 to your computer and use it in GitHub Desktop.
public void draw(GameScene activeStage, float delta) {
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
Gdx.gl.glClearColor(1, 1, 1, 1);
CommonApp.postProcessor.capture();
CommonApp.glPrimitiveRenderer.begin(getCameraController().getCamera().combined, GL20.GL_LINES);
CommonApp.modelBatch.begin(getCameraController().getCamera());
if (activeStage != null) {
activeStage.draw();
}
CommonApp.glPrimitiveRenderer.end();
CommonApp.decalBatchCommon.flush();
CommonApp.modelBatch.end();
CommonApp.decalBatchTransparentLayer.flush();
CommonApp.postProcessor.render();
clientUi.stageGUI.draw();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment