public static void setWindowResolution(int width, int height){
		Globals.windowWidth = width;
		Globals.windowHeight = height;
		Globals.aspectRatio = (float) Globals.windowWidth / (float) Globals.windowHeight;
		Globals.windowMatrix.set(1/Globals.aspectRatio, 0.0f, 0.0f, 0.0f,
												  0.0f, 1.0f, 0.0f, 0.0f,
												  0.0f, 0.0f, 1.0f, 0.0f,
												  0.0f, 0.0f, 0.0f, 1.0f);
		
		//for(IWindowChangeListener lis : Globals.windowChangeListener)
		//{
		//	lis.onWindowResolutionChange(Globals.windowWidth, Globals.windowHeight);
		//}
		
		try {
			DisplayMode[] modes = Display.getAvailableDisplayModes();
			
			DisplayMode finalMode = new DisplayMode(Globals.getWindowWidth(), Globals.getWindowHeight());
			
			for (int i=0;i<modes.length;i++) {
			    DisplayMode current = modes[i];
			    if(current.getWidth() == Globals.getWindowWidth()
			       && current.getHeight() == Globals.getWindowHeight()
			       && current.getBitsPerPixel() == 32
			       && current.getFrequency() == 60)
			    finalMode = current;
			}
			
			Display.setDisplayMode(finalMode);
			
			if(!Display.isCreated())
			{
				PixelFormat pixelFormat = new PixelFormat();
				ContextAttribs contextAtrributes = new ContextAttribs(3, 2)
					.withForwardCompatible(true)
					.withProfileCore(true);
				Display.create(pixelFormat, contextAtrributes);
			}
			
			GL11.glViewport(0, 0, Globals.getWindowWidth(), Globals.getWindowHeight());
		} catch (LWJGLException e) {
			e.printStackTrace();
			System.exit(-1);
		}
		Display.update();
	}