public class FadeOutTransition extends java.lang.Object implements Transition
Constructor and Description |
---|
FadeOutTransition()
Default constructor - fade to black in 0.5 seconds
|
FadeOutTransition(com.badlogic.gdx.graphics.Color color)
Constructs a fade out transition that lasts 0.5 seconds
|
FadeOutTransition(com.badlogic.gdx.graphics.Color color,
float duration)
Constructs a fade out transition
|
Modifier and Type | Method and Description |
---|---|
void |
initialise(GameScreen outScreen,
GameScreen inScreen) |
boolean |
isFinished() |
void |
postRender(GameContainer gc,
Graphics g) |
void |
preRender(GameContainer gc,
Graphics g) |
void |
update(GameContainer gc,
float delta) |
public FadeOutTransition()
public FadeOutTransition(com.badlogic.gdx.graphics.Color color)
color
- The Color
to fade topublic FadeOutTransition(com.badlogic.gdx.graphics.Color color, float duration)
color
- The Color
to fade toduration
- The time in seconds to lastpublic void initialise(GameScreen outScreen, GameScreen inScreen)
initialise
in interface Transition
public void update(GameContainer gc, float delta)
update
in interface Transition
public void preRender(GameContainer gc, Graphics g)
preRender
in interface Transition
public void postRender(GameContainer gc, Graphics g)
postRender
in interface Transition
public boolean isFinished()
isFinished
in interface Transition