rayzor
view src/screen.h @ 11:fe94d9e986ae
optimized 16bpp swap_buffers
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 10 Apr 2014 08:42:33 +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_