Created
February 11, 2017 03:40
-
-
Save matt11matthew/8765ad3cfc17dec9b499b94a72f9c15d to your computer and use it in GitHub Desktop.
This file contains hidden or 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 render() { | |
BufferStrategy bufferStrategy = getBufferStrategy(); | |
if (bufferStrategy == null) { | |
createBufferStrategy(3); | |
return; | |
} | |
this.screen.render(bufferStrategy.getDrawGraphics()); | |
bufferStrategy.show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment