List of usage examples for com.badlogic.gdx Screen show
public void show();
From source file:com.ixeption.libgdx.transitions.FadingGame.java
License:Apache License
/** * Sets the current screen. {@link Screen#hide()} is called on any old * screen, and {@link Screen#show()} is called on the new screen, if any. * //from ww w . j a v a 2 s .c om * @param screen * may be {@code null} */ @Override public void setScreen(Screen screen) { screen.show(); if (transitionRunning) Gdx.app.log(FadingGame.class.getSimpleName(), "Changed Screen while transition in progress"); if (this.screen == null) { this.screen = screen; } else { if (screenTransition == null) { this.screen.hide(); this.screen = screen; } else { this.nextScreen = screen; this.screen.pause(); this.nextScreen.pause(); currentTransitionTime = 0; transitionRunning = true; notifyStarted(); } } this.screen.resize(Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); }