4 * Created on: Oct 7, 2012
8 #ifndef GRAPHICS_COLORFADE_H_
9 #define GRAPHICS_COLORFADE_H_
11 #include "../app/State.h"
12 #include "../app/Timer.h"
22 ColorFade(app::State *slave, Uint32 color, int duration, bool in = false, bool interactive = false);
23 virtual ~ColorFade() { }
26 virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
27 virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
28 virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
29 virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
31 virtual void Resize(int width, int height);
33 virtual void HandleEvents(const app::Input &);
34 virtual void UpdateWorld(float deltaT);
35 virtual void Render(SDL_Surface *);
38 void UpdateBlinds(int width, int height);
39 Uint8 GetAlpha() const;
42 app::Timer<Uint32> timer;
43 app::Application *ctrl;
55 #endif /* GRAPHICS_COLORFADE_H_ */