Package com.badlogic.gdx
Interface Screen
-
- All Known Implementing Classes:
ScreenAdapter
public interface ScreenRepresents 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 voiddispose()Called when this screen should release all resources.voidhide()Called when this screen is no longer the current screen for aGame.voidpause()voidrender(float delta)Called when the screen should render itself.voidresize(int width, int height)voidresume()voidshow()Called when this screen becomes the current screen for aGame.
-
-
-
Method Detail
-
show
void show()
Called when this screen becomes the current screen for aGame.
-
render
void render(float delta)
Called when the screen should render itself.- Parameters:
delta- The time in seconds since the last render.
-
resize
void resize(int width, int height)- See Also:
ApplicationListener.resize(int, int)
-
pause
void pause()
- See Also:
ApplicationListener.pause()
-
resume
void resume()
- See Also:
ApplicationListener.resume()
-
hide
void hide()
Called when this screen is no longer the current screen for aGame.
-
dispose
void dispose()
Called when this screen should release all resources.
-
-