Ejemplo n.º 1
0
 /** Called when the game loop has exited. */
 protected void end() {
   synchronized (lifecycleListeners) {
     for (LifecycleListener listener : lifecycleListeners) {
       listener.pause();
       listener.dispose();
     }
   }
   listener.pause();
   listener.dispose();
   glfwTerminate();
   if (forceExit) System.exit(-1);
 }
Ejemplo n.º 2
0
 /**
  * Called when an uncaught exception happens in the game loop. Default implementation prints the
  * exception and calls System.exit(0).
  */
 protected void exception(Throwable ex) {
   ex.printStackTrace();
   System.exit(0);
 }