private void initializeOpenGL() throws Exception
	{
		log("Initializing OpenGL");
		Display.setParent(this.dParent);
		log("Creating Display");
		Display.create();
		if (Display.isCreated())
		{
			log("Display successfully created");
			log("Creating input devices");
			Keyboard.create();
			Mouse.create();
			
			if (!(Keyboard.isCreated() && Mouse.isCreated()))
			{
				throw new Exception("An error occurred while creating the input devices!");
				
			}
			
			log("Enabling OpenGL features: DEPTH_TEST, DEPTH, ALPHA_TEST, ALPHA, BLEND");
			GL11.glEnable(GL11.GL_DEPTH_TEST);
			GL11.glEnable(GL11.GL_DEPTH);
			GL11.glEnable(GL11.GL_ALPHA_TEST);
			GL11.glEnable(GL11.GL_ALPHA);
			GL11.glEnable(GL11.GL_BLEND);
			Display.update();
			
		}
		else
		{
			throw new Exception("An error occurred while creating the Display!");
			
		}
		
	}