public interface ScreenContext
| Modifier and Type | Method and Description |
|---|---|
void |
addSubScreen(SubScreenId id,
SubScreen subScreen)
Add a sub screen to the screen.
|
SubScreen |
getActiveSubScreen() |
com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch |
getBatch() |
com.badlogic.gdx.utils.viewport.Viewport |
getViewport() |
void |
hideScreen()
Hides the currently active screen.
|
void |
initialize(SubScreenId id)
Initializes the context with the given screen.
|
void |
showScreen(SubScreenId id)
Shows the screen mapped to the given id.
|
com.badlogic.gdx.utils.viewport.Viewport getViewport()
com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch getBatch()
void addSubScreen(SubScreenId id, SubScreen subScreen)
id - id of the screensubScreen - the screen itselfSubScreen getActiveSubScreen()
void showScreen(SubScreenId id)
id - id of an added subscreenvoid initialize(SubScreenId id)
id - id of the screenvoid hideScreen()