1 #ifndef GONG_APP_STATE_HPP_
2 #define GONG_APP_STATE_HPP_
15 class HeadlessApplication;
20 friend class Application;
21 friend class HeadlessApplication;
23 virtual void Handle(const SDL_Event &) = 0;
25 virtual void Update(int dt) = 0;
27 virtual void Render(graphics::Viewport &) = 0;
33 virtual void OnEnter() { }
34 virtual void OnResume() { }
35 virtual void OnPause() { }
36 virtual void OnExit() { }
38 virtual void OnFocus() { }
39 virtual void OnBlur() { }
40 virtual void OnResize(graphics::Viewport &) { }