Base class for background effects. More...
#include <Game/BackgroundEffect.h>
Inherited by MusicVisualizerEffect, and StarFieldEffect.
Public Member Functions | |
BackgroundEffect (const Rectf &size) | |
Constructor. | |
virtual | ~BackgroundEffect () |
Deconstructor. | |
const Rectf & | GetSize () |
Gets the size of the effect. | |
virtual bool | Init ()=0 |
Initializes the effect. Called once before Update and Draw are called. | |
virtual void | Update (float dt)=0 |
Updates the effect. Called once per frame. | |
virtual void | Draw ()=0 |
Draws the effect. |
Base class for background effects.
BackgroundEffect::BackgroundEffect | ( | const Rectf & | size | ) | [inline] |
Constructor.
[in] | size | the that the effect will fill. |
const Rectf& BackgroundEffect::GetSize | ( | ) | [inline] |
Gets the size of the effect.
virtual bool BackgroundEffect::Init | ( | ) | [pure virtual] |
Initializes the effect. Called once before Update and Draw are called.
Implemented in MusicVisualizerEffect, and StarFieldEffect.
virtual void BackgroundEffect::Update | ( | float | dt | ) | [pure virtual] |
Updates the effect. Called once per frame.
[in] | dt | the time in seconds since the last frame. |
Implemented in MusicVisualizerEffect, and StarFieldEffect.