rayzor

view src/screen.h @ 17:79609d482762

the renderer renders, also fixed an unnoticed matrix conversion problem between scenegraph and min3d
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 14 Apr 2014 07:34:45 +0300
parents be616b58df99
children
line source
1 #ifndef SCREEN_H_
2 #define SCREEN_H_
4 typedef int MsgAtom;
6 MsgAtom message_atom(const char *str);
8 class Screen {
9 private:
10 char *name;
12 public:
13 Screen();
14 virtual ~Screen();
16 virtual bool init();
17 virtual void shutdown();
19 virtual void set_name(const char *name);
20 virtual const char *get_name() const;
22 virtual void update();
23 virtual void draw() const = 0;
25 virtual void handle_keyboard(int key, bool press);
26 virtual void handle_mbutton(int bn, bool press, int x, int y);
27 virtual void handle_mmotion(int x, int y);
29 virtual void message(MsgAtom msg, ...);
30 };
32 #endif // SCREEN_H_