annotate window/system.h @ 24:c9e218c2c3f1

Makes xclannad buildable without libvorbis
author thib
date Fri, 27 Feb 2009 16:02:32 +0000
parents 223b71206888
children 5ae5533b3a9a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
223b71206888 Initial import
thib
parents:
diff changeset
1 #ifndef __SYSTEM__
223b71206888 Initial import
thib
parents:
diff changeset
2 #define __SYSTEM__
223b71206888 Initial import
thib
parents:
diff changeset
3
223b71206888 Initial import
thib
parents:
diff changeset
4 #include<SDL.h>
223b71206888 Initial import
thib
parents:
diff changeset
5 #include"event.h"
223b71206888 Initial import
thib
parents:
diff changeset
6 #include"picture.h"
223b71206888 Initial import
thib
parents:
diff changeset
7 #include"widget.h"
223b71206888 Initial import
thib
parents:
diff changeset
8
223b71206888 Initial import
thib
parents:
diff changeset
9 namespace System {
223b71206888 Initial import
thib
parents:
diff changeset
10 struct Main {
223b71206888 Initial import
thib
parents:
diff changeset
11 int framerate;
223b71206888 Initial import
thib
parents:
diff changeset
12 static int event_filter(const SDL_Event* event);
223b71206888 Initial import
thib
parents:
diff changeset
13 static bool is_exit;
223b71206888 Initial import
thib
parents:
diff changeset
14 static bool is_video_update;
223b71206888 Initial import
thib
parents:
diff changeset
15 static Main* instance;
223b71206888 Initial import
thib
parents:
diff changeset
16 WidMouseCursor* cursor;
223b71206888 Initial import
thib
parents:
diff changeset
17 public:
223b71206888 Initial import
thib
parents:
diff changeset
18 Event::Container event;
223b71206888 Initial import
thib
parents:
diff changeset
19 PicRoot root;
223b71206888 Initial import
thib
parents:
diff changeset
20 Main(void);
223b71206888 Initial import
thib
parents:
diff changeset
21 ~Main();
223b71206888 Initial import
thib
parents:
diff changeset
22 void Mainloop(void);
223b71206888 Initial import
thib
parents:
diff changeset
23 static void Quit(void);
223b71206888 Initial import
thib
parents:
diff changeset
24 static void DisableVideo(void);
223b71206888 Initial import
thib
parents:
diff changeset
25 static void EnableVideo(void);
223b71206888 Initial import
thib
parents:
diff changeset
26 #define DEFAULT_MOUSECURSOR (Surface*)0xffff0000
223b71206888 Initial import
thib
parents:
diff changeset
27 static void SetCursor(Surface* s, const Rect& r);
223b71206888 Initial import
thib
parents:
diff changeset
28 };
223b71206888 Initial import
thib
parents:
diff changeset
29 };
223b71206888 Initial import
thib
parents:
diff changeset
30
223b71206888 Initial import
thib
parents:
diff changeset
31 #endif /* __SYSTEM__ */