rayzor
view src/screen.h @ 12:d94a69933a71
lots of stuff, can't remember
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 12 Apr 2014 23:28:24 +0300 |
parents | |
children | be616b58df99 |
line source
1 #ifndef SCREEN_H_
2 #define SCREEN_H_
4 class Screen {
5 private:
6 char *name;
8 public:
9 Screen();
10 virtual ~Screen();
12 virtual bool init();
13 virtual void shutdown();
15 virtual void set_name(const char *name);
16 virtual const char *get_name() const;
18 virtual void update();
19 virtual void draw() const = 0;
21 virtual void handle_keyboard(int key, bool press);
22 virtual void handle_mbutton(int bn, bool press, int x, int y);
23 virtual void handle_mmotion(int x, int y);
24 };
26 #endif // SCREEN_H_