supertux
|
Shrinks a rectangle screen towards a specific position. More...
#include <shrinkfade.hpp>
Public Types | |
enum | Direction { FADEOUT, FADEIN } |
![]() | |
enum | FadeType { NONE, FADE, CIRCLE } |
Public Member Functions | |
ShrinkFade (const Vector &point, float fade_time, int draw_layer=LAYER_GUI+1, Direction=FADEOUT) | |
virtual void | update (float dt_sec) override |
gets called for once (per logical) frame. More... | |
virtual void | draw (DrawingContext &context) override |
gets called once per frame. More... | |
virtual bool | done () const override |
returns true if the effect is completed | |
Shrinks a rectangle screen towards a specific position.
|
overridevirtual |
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
Implements ScreenFade.
|
overridevirtual |
gets called for once (per logical) frame.
ScreenFades should do their state updates and logic here
Implements ScreenFade.