public interface ApplicationListener
extends com.badlogic.gdx.ApplicationListener
ApplicationListener
to add update and interpolate methods.
An ApplicationListener
is called when the Application
is created, resumed, rendering, paused or destroyed.
All methods are called in a thread that has the OpenGL context current. You can thus safely create and manipulate graphics
resources.Modifier and Type | Method and Description |
---|---|
void |
interpolate(float alpha)
Called when the
Application should interpolate itself. |
void |
preUpdate(float delta)
Called before the
Application should update itself. |
void |
preUpdatePhysics(float delta)
Called before the
Application should update its physics. |
void |
update(float delta)
Called when the
Application should update itself. |
void |
updatePhysics(float delta)
Called when the
Application should update its physics. |
void preUpdate(float delta)
Application
should update itself.void preUpdatePhysics(float delta)
Application
should update its physics.void update(float delta)
Application
should update itself.void updatePhysics(float delta)
Application
should update its physics.void interpolate(float alpha)
Application
should interpolate itself.