rayzor
diff src/screen.h @ 9:70e332156d02
moving along
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 10 Apr 2014 02:31:31 +0300 |
parents | |
children | be616b58df99 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/screen.h Thu Apr 10 02:31:31 2014 +0300 1.3 @@ -0,0 +1,26 @@ 1.4 +#ifndef SCREEN_H_ 1.5 +#define SCREEN_H_ 1.6 + 1.7 +class Screen { 1.8 +private: 1.9 + char *name; 1.10 + 1.11 +public: 1.12 + Screen(); 1.13 + virtual ~Screen(); 1.14 + 1.15 + virtual bool init(); 1.16 + virtual void shutdown(); 1.17 + 1.18 + virtual void set_name(const char *name); 1.19 + virtual const char *get_name() const; 1.20 + 1.21 + virtual void update(); 1.22 + virtual void draw() const = 0; 1.23 + 1.24 + virtual void handle_keyboard(int key, bool press); 1.25 + virtual void handle_mbutton(int bn, bool press, int x, int y); 1.26 + virtual void handle_mmotion(int x, int y); 1.27 +}; 1.28 + 1.29 +#endif // SCREEN_H_