-
-
Save nanonull/3f6e814e3b5bd4970cd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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