public class FadeInTransition extends java.lang.Object implements Transition
Constructor and Description |
---|
FadeInTransition()
Default constructor - fade from black in 0.5 seconds
|
FadeInTransition(com.badlogic.gdx.graphics.Color color)
Constructs a fade in transition that lasts 0.5 seconds
|
FadeInTransition(com.badlogic.gdx.graphics.Color color,
float duration)
Constructs a fade in 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 FadeInTransition()
public FadeInTransition(com.badlogic.gdx.graphics.Color color)
color
- The Color
to fade frompublic FadeInTransition(com.badlogic.gdx.graphics.Color color, float duration)
color
- The Color
to fade fromduration
- 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