rayzor

view 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 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_