SDL2: always prefer opengl driver, print driver used
[rofl0r-gnuboy.git] / sys.h
blob09537a37f94e352a38a77fa03f70f4df3e230b21
1 #ifndef VID_H
2 #define VID_H
4 /* stuff implemented by the different sys/ backends */
6 void vid_begin();
7 void vid_end();
8 void vid_init();
9 void vid_preinit();
10 void vid_close();
11 void vid_setpal(int i, int r, int g, int b);
12 void vid_settitle(char *title);
14 void pcm_init();
15 int pcm_submit();
16 void pcm_close();
18 void ev_poll();
20 void sys_checkdir(char *path, int wr);
21 void sys_sleep(int us);
22 void sys_sanitize(char *s);
24 void joy_init();
25 void joy_poll();
26 void joy_close();
28 void kb_init();
29 void kb_poll();
30 void kb_close();
33 /* FIXME these have different prototype for obsolete ( == M$ ) platforms */
34 #include <sys/time.h>
35 int sys_elapsed(struct timeval *prev);
36 void sys_initpath();
38 #endif