Java 类org.lwjgl.opengl.SharedDrawable 实例源码

项目:redrun    文件:LoadingScreen.java   
/***
 * 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();
}