예제 #1
0
  public SHOOTAN() {
    // Initialize OpenGL (Display)
    window = new OpenGLWindow("BUNNIES", WIDTH, HEIGHT);

    this.setupModels();
    this.setupProjectionMatrix();

    while (window.isAlive()) {

      update();
      draw();

      window.updateDisplay();
    }

    destroyOpenGL();
  }
예제 #2
0
 private void destroyOpenGL() {
   Shader.defaultShader.delete();
   Shader.plainShader.delete();
   Shader.distance.delete();
   Shader.waterMixdown.delete();
   terrain.delete();
   bunny.delete();
   bus.delete();
   plane.delete();
   skybox.delete();
   window.delete();
 }