public static void update(RenderingEngine renderingEngine)
	{
		if(canvass.getParent().getHeight() != canvass.getHeight() || canvass.getParent().getWidth() != canvass.getWidth())
		{
			try {
				Display.setDisplayMode(new DisplayMode(canvass.getParent().getWidth(), canvass.getParent().getHeight()));
				glViewport(0, 0, canvass.getParent().getWidth(), canvass.getParent().getHeight());
				if(canvass.getParent().getWidth() > 800 || canvass.getParent().getHeight() > 600)
					renderingEngine.getMainCamera().setProjection(new Matrix4f().initPerspective((float)Math.toRadians(90), canvass.getParent().getWidth() / canvass.getParent().getHeight(), 0.01f, 1000));
				else
					renderingEngine.getMainCamera().setProjection(new Matrix4f().initPerspective((float)Math.toRadians(70), canvass.getParent().getWidth() / canvass.getParent().getHeight(), 0.01f, 1000));
			} catch (LWJGLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}