projects
/
raydungeon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added scr_lvled, a bunch of libraries, and improved framework code
[raydungeon]
/
src
/
game.h
diff --git
a/src/game.h
b/src/game.h
index
552e06a
..
36e5854
100644
(file)
--- a/
src/game.h
+++ b/
src/game.h
@@
-1,6
+1,8
@@
#ifndef GAME_H_
#define GAME_H_
#ifndef GAME_H_
#define GAME_H_
+#define GAME_CFG_FILE "game.cfg"
+
enum {
GKEY_ESC = 27,
GKEY_DEL = 127,
enum {
GKEY_ESC = 27,
GKEY_DEL = 127,
@@
-13,6
+15,12
@@
enum {
GKEY_INS
};
GKEY_INS
};
+enum {
+ GKEY_MOD_SHIFT = 1,
+ GKEY_MOD_CTRL = 4,
+ GKEY_MOD_ALT = 8
+};
+
struct game_screen {
const char *name;
struct game_screen {
const char *name;
@@
-29,13
+37,17
@@
struct game_screen {
};
extern int mouse_x, mouse_y, mouse_state[3];
};
extern int mouse_x, mouse_y, mouse_state[3];
+extern int mouse_grabbed;
+extern unsigned int modkeys;
extern int win_width, win_height;
extern float win_aspect;
extern int win_width, win_height;
extern float win_aspect;
+extern int fullscr;
+extern long time_msec;
extern struct game_screen *cur_scr;
extern struct game_screen *cur_scr;
-int game_init(void);
+int game_init(int argc, char **argv);
void game_shutdown(void);
void game_display(void);
void game_shutdown(void);
void game_display(void);
@@
-47,7
+59,12
@@
void game_motion(int x, int y);
void game_chscr(struct game_screen *scr);
/* defined in main.c */
void game_chscr(struct game_screen *scr);
/* defined in main.c */
+long game_getmsec(void);
void game_swap_buffers(void);
void game_quit(void);
void game_swap_buffers(void);
void game_quit(void);
+void game_resize(int x, int y);
+void game_fullscreen(int fs);
+void game_grabmouse(int grab);
+void game_vsync(int vsync);
#endif /* GAME_H_ */
#endif /* GAME_H_ */