gl.glClearDepth(1.0f);
gl.glEnable(GL_DEPTH_TEST); // Enables depth testing
gl.glDepthFunc(GL_LEQUAL); // the type of depth test to do
gl.glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); // best perspective coorection
gl.glShadeModel(GL_SMOOTH); // blends colors nicely, and smooths out lighting
//Load Texture from image
try {
// Create an OpenGL texture object from (URL, mimpmap, file suffix)
// Use URL so that can read from JAR and disk file.