public SHOOTAN() { // Initialize OpenGL (Display) window = new OpenGLWindow("BUNNIES", WIDTH, HEIGHT); this.setupModels(); this.setupProjectionMatrix(); while (window.isAlive()) { update(); draw(); window.updateDisplay(); } destroyOpenGL(); }
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(); }