Interface Screen

  • All Known Implementing Classes:
    ScreenAdapter

    public interface Screen

    Represents one of many application screens, such as a main menu, a settings menu, the game screen and so on.

    Note that dispose() is not called automatically.

    See Also:
    Game
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose()
      Called when this screen should release all resources.
      void hide()
      Called when this screen is no longer the current screen for a Game.
      void pause()  
      void render​(float delta)
      Called when the screen should render itself.
      void resize​(int width, int height)  
      void resume()  
      void show()
      Called when this screen becomes the current screen for a Game.
    • Method Detail

      • show

        void show()
        Called when this screen becomes the current screen for a Game.
      • render

        void render​(float delta)
        Called when the screen should render itself.
        Parameters:
        delta - The time in seconds since the last render.
      • hide

        void hide()
        Called when this screen is no longer the current screen for a Game.
      • dispose

        void dispose()
        Called when this screen should release all resources.