X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FState.h;fp=src%2Fapp%2FState.h;h=efee32ba2ab0f3a3001dbbe9944ab9d8f44a58c3;hb=4a1816af30dcfe53181a25355bd51cc7b24a83f1;hp=d9936ddfcc3665f90a1a6900aac876ebbca4bf3f;hpb=a378f581fb88ce4ca718a18d7cc80d7007ebc66a;p=l2e.git diff --git a/src/app/State.h b/src/app/State.h index d9936dd..efee32b 100644 --- a/src/app/State.h +++ b/src/app/State.h @@ -25,6 +25,9 @@ public: virtual void EnterState(Application &ctrl, SDL_Surface *screen) = 0; virtual void ExitState() = 0; + /// adapt the state's graphics to given dimensions + virtual void Resize(int width, int height) = 0; + virtual void HandleEvent(const SDL_Event &) = 0; virtual void UpdateWorld(float deltaT) = 0; virtual void Render(SDL_Surface *) = 0;