X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FColorFade.h;h=079d30ea74a44a49f53c0707d6136fc9f97c8a96;hb=5ca18f73987fb3935ab34654cbbecf5eca4704cb;hp=4ccb02b532d60f9863971f471567ed41f354410a;hpb=65158353d1ecbed0032752863c6c4eb96b1a084a;p=l2e.git diff --git a/src/graphics/ColorFade.h b/src/graphics/ColorFade.h index 4ccb02b..079d30e 100644 --- a/src/graphics/ColorFade.h +++ b/src/graphics/ColorFade.h @@ -27,24 +27,24 @@ public: void SetLeadOutTime(int ms) { leadOut = ms; } public: - virtual void OnEnterState(app::Application &ctrl, SDL_Surface *screen); - virtual void OnExitState(app::Application &ctrl, SDL_Surface *screen); - virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen); - virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen); - - virtual void Resize(int width, int height); - virtual void HandleEvents(const app::Input &); virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); +private: + virtual void OnEnterState(SDL_Surface *screen); + virtual void OnExitState(SDL_Surface *screen); + virtual void OnResumeState(SDL_Surface *screen); + virtual void OnPauseState(SDL_Surface *screen); + + virtual void OnResize(int width, int height); + private: void UpdateBlinds(int width, int height); Uint8 GetAlpha() const; private: app::Timer timer; - app::Application *ctrl; app::State *slave; SDL_Surface *blinds; Uint32 color;