Guest User

Untitled

a guest
Feb 18th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. private void gameLoop() {
  2. while(Game.gameRunning){
  3. Display.sync(60);
  4.  
  5. glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
  6.  
  7. if (Display.isVisible()){
  8. Display.update();
  9. }
  10.  
  11. if (Display.isCloseRequested()){
  12. gameRunning = false;
  13. }
  14. }
  15.  
  16. Display.destroy();
  17. }
Add Comment
Please, Sign In to add comment