ScreenFade Class Reference

Screen to be displayed simultaneously with another Screen. More...

#include <screen_fade.hpp>

Inherited by FadeOut, and ShrinkFade.

List of all members.

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.


Detailed Description

Screen to be displayed simultaneously with another Screen.

This is used for Screen transition effects like a fade-out or a shrink-fade

Definition at line 27 of file screen_fade.hpp.


Constructor & Destructor Documentation

virtual ScreenFade::~ScreenFade (  )  [inline, virtual]

Definition at line 30 of file screen_fade.hpp.

00031   {}


Member Function Documentation

virtual bool ScreenFade::done (  )  [pure virtual]

returns true if the effect is completed

Implemented in FadeOut, and ShrinkFade.

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.


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 03:38:34 2014 for SuperTux by  doxygen 1.5.1