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.
Game
Modifier and Type | Method and 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 . |
void show()
Game
.void render(float delta)
delta
- The time in seconds since the last render.void resize(int width, int height)
ApplicationListener.resize(int, int)
void pause()
ApplicationListener.pause()
void resume()
ApplicationListener.resume()
void hide()
Game
.void dispose()
Copyright © 2017. All rights reserved.