Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void gameLoop() {
- while(Game.gameRunning){
- Display.sync(60);
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- if (Display.isVisible()){
- Display.update();
- }
- if (Display.isCloseRequested()){
- gameRunning = false;
- }
- }
- Display.destroy();
- }
Add Comment
Please, Sign In to add comment