#include <screen_fade.hpp>
Inherited by FadeOut, and ShrinkFade.
Public Member Functions | |
virtual | ~ScreenFade () |
virtual bool | done ()=0 |
returns true if the effect is completed | |
virtual void | draw (DrawingContext &context)=0 |
gets called once per frame. | |
virtual void | update (float elapsed_time)=0 |
gets called for once (per logical) frame. |
This is used for Screen transition effects like a fade-out or a shrink-fade
Definition at line 27 of file screen_fade.hpp.
virtual ScreenFade::~ScreenFade | ( | ) | [inline, virtual] |
virtual bool ScreenFade::done | ( | ) | [pure virtual] |
virtual void ScreenFade::draw | ( | DrawingContext & | context | ) | [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 FadeOut, and ShrinkFade.
virtual void ScreenFade::update | ( | float | elapsed_time | ) | [pure virtual] |
gets called for once (per logical) frame.
ScreenFades should do their state updates and logic here
Implemented in FadeOut, and ShrinkFade.