4 #define GAME_CFG_FILE "game.cfg"
10 GKEY_F2, GKEY_F3, GKEY_F4, GKEY_F5, GKEY_F6, GKEY_F7,
11 GKEY_F8, GKEY_F9, GKEY_F10, GKEY_F11, GKEY_F12,
12 GKEY_UP, GKEY_DOWN, GKEY_LEFT, GKEY_RIGHT,
13 GKEY_PGUP, GKEY_PGDOWN,
29 void (*destroy)(void);
32 void (*display)(void);
33 void (*reshape)(int, int);
34 void (*keyboard)(int, int);
35 void (*mouse)(int, int, int, int);
36 void (*motion)(int, int);
39 extern int mouse_x, mouse_y, mouse_state[3];
40 extern int mouse_grabbed;
41 extern unsigned int modkeys;
42 extern int win_width, win_height;
43 extern float win_aspect;
46 extern long time_msec;
47 extern struct game_screen *cur_scr;
50 int game_init(int argc, char **argv);
51 void game_shutdown(void);
53 void game_display(void);
54 void game_reshape(int x, int y);
55 void game_keyboard(int key, int press);
56 void game_mouse(int bn, int st, int x, int y);
57 void game_motion(int x, int y);
59 void game_chscr(struct game_screen *scr);
61 /* defined in main.c */
62 long game_getmsec(void);
63 void game_swap_buffers(void);
65 void game_resize(int x, int y);
66 void game_fullscreen(int fs);
67 void game_grabmouse(int grab);
68 void game_vsync(int vsync);