From b353185ff989e2dd058284dc5b1a6d5d6197bcbd Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Fri, 26 Feb 2010 22:20:25 +0100 Subject: Handle keypresses through virtual method. --- application.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'application.h') 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); }; -- cgit v1.2.3