supertux
|
Screen to be displayed simultaneously with another Screen. More...
#include <screen_fade.hpp>
Public Types | |
enum | FadeType { NONE, FADE, CIRCLE } |
Public Member Functions | |
virtual bool | done () const =0 |
returns true if the effect is completed | |
virtual void | draw (DrawingContext &context)=0 |
gets called once per frame. More... | |
virtual void | update (float dt_sec)=0 |
gets called for once (per logical) frame. More... | |
Screen to be displayed simultaneously with another Screen.
This is used for Screen transition effects like a fade-out or a shrink-fade
|
pure virtual |
gets called once per frame.
The ScreenFade should draw itself in this function. State changes should not be done in this function, but rather in update
Implemented in FadeToBlack, and ShrinkFade.
|
pure virtual |
gets called for once (per logical) frame.
ScreenFades should do their state updates and logic here
Implemented in FadeToBlack, and ShrinkFade.