1 #ifndef GRAPHICS_COLORFADE_H_
2 #define GRAPHICS_COLORFADE_H_
4 #include "../app/State.h"
5 #include "../app/Timer.h"
20 bool interactive = false);
21 virtual ~ColorFade() { }
24 void SetLeadInTime(int ms) {
26 if (ms > 0) leadInDone = false;
28 void SetLeadOutTime(int ms) { leadOut = ms; }
29 void SetDoublePop(bool b = true) { doublePop = b; }
32 virtual void HandleEvents(const app::Input &);
33 virtual void UpdateWorld(Uint32 deltaT);
34 virtual void Render(SDL_Surface *);
37 virtual void OnEnterState(SDL_Surface *screen);
38 virtual void OnExitState(SDL_Surface *screen);
39 virtual void OnResumeState(SDL_Surface *screen);
40 virtual void OnPauseState(SDL_Surface *screen);
42 virtual void OnResize(int width, int height);
45 void UpdateBlinds(int width, int height);
46 Uint8 GetAlpha() const;
49 app::Timer<Uint32> timer;