/*** * Sets up the loading screen */ public static void loadingScreen() { backgroundLoader = new BackgroundLoader() { protected Drawable getDrawable() throws LWJGLException { return new SharedDrawable(Display.getDrawable()); } }; try { backgroundLoader.start(); } catch (LWJGLException e) { } // set up the loading screen texture LoadingScreen spashScreen = new LoadingScreen("loading2"); HUD_Manager.make2D(); while (backgroundLoader.isRunning()) { spashScreen.draw(); Display.sync(65); Display.update(); } HUD_Manager.make3D(); }