A moving starfield background effect. More...
#include <Game/StarFieldEffect.h>
Inherits BackgroundEffect.
Public Member Functions | |
StarFieldEffect (const Rectf &size) | |
Constructor. | |
virtual | ~StarFieldEffect () |
Deconstructor. | |
virtual bool | Init () |
Initializes the effect. Called once before Update and Draw are called. | |
virtual void | Update (float dt) |
Updates the effect. Called once per frame. | |
virtual void | Draw () |
Draws the effect. |
A moving starfield background effect.
StarFieldEffect::StarFieldEffect | ( | const Rectf & | size | ) | [inline] |
Constructor.
[in] | size | the that the effect will fill. |
bool StarFieldEffect::Init | ( | ) | [virtual] |
Initializes the effect. Called once before Update and Draw are called.
Implements BackgroundEffect.
void StarFieldEffect::Update | ( | float | dt | ) | [virtual] |
Updates the effect. Called once per frame.
[in] | dt | the time in seconds since the last frame. |
Implements BackgroundEffect.