com.badlogic.gdx
Class ScreenAdapter

java.lang.Object
  extended by com.badlogic.gdx.ScreenAdapter
All Implemented Interfaces:
Screen

public class ScreenAdapter
extends Object
implements Screen

Convenience implementation of Screen. Derive from this and only override what you need.

Author:
semtiko

Constructor Summary
ScreenAdapter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenAdapter

public ScreenAdapter()
Method Detail

render

public void render(float delta)
Description copied from interface: Screen
Called when the screen should render itself.

Specified by:
render in interface Screen
Parameters:
delta - The time in seconds since the last render.

resize

public void resize(int width,
                   int height)
Specified by:
resize in interface Screen
See Also:
ApplicationListener.resize(int, int)

show

public void show()
Description copied from interface: Screen
Called when this screen becomes the current screen for a Game.

Specified by:
show in interface Screen

hide

public void hide()
Description copied from interface: Screen
Called when this screen is no longer the current screen for a Game.

Specified by:
hide in interface Screen

pause

public void pause()
Specified by:
pause in interface Screen
See Also:
ApplicationListener.pause()

resume

public void resume()
Specified by:
resume in interface Screen
See Also:
ApplicationListener.resume()

dispose

public void dispose()
Description copied from interface: Screen
Called when this screen should release all resources.

Specified by:
dispose in interface Screen


Copyright © 2013. All Rights Reserved.