Ejemplo n.º 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();
  }
Ejemplo n.º 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();
 }