diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-26 22:20:25 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-26 22:20:25 +0100 |
commit | b353185ff989e2dd058284dc5b1a6d5d6197bcbd (patch) | |
tree | b7251ecbd60297e1b93b5c3febc2beb0592f7171 /application.h | |
parent | 9466244a852d6620edf671a89e1a7188248d5482 (diff) |
Handle keypresses through virtual method.
Diffstat (limited to 'application.h')
-rw-r--r-- | application.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/application.h b/application.h index 5d821f9..5befce1 100644 --- a/application.h +++ b/application.h @@ -10,19 +10,24 @@ class Application { private: ARParam cparam; - ARGL_CONTEXT_SETTINGS_REF argl_ctx; - SDL_Surface *surface; - + int count; + bool please_quit; + public: Pattern* patt; Application(); ~Application(); void run(); + void quit(); + + protected: + virtual void event_keypress(SDLKey key); + void main_loop(void); }; |