bloboland
annotate src/game.h @ 5:2f4406cc341e
meh
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 19 Dec 2012 02:37:20 +0200 |
parents | cfe68befb7cc |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef GAME_H_ |
nuclear@0 | 2 #define GAME_H_ |
nuclear@0 | 3 |
nuclear@2 | 4 extern int win_xsz, win_ysz; |
nuclear@2 | 5 |
nuclear@1 | 6 #define GAME_MAX_KEYS 256 |
nuclear@1 | 7 #define GAME_MAX_BUTTONS 16 |
nuclear@1 | 8 |
nuclear@1 | 9 extern bool keystate[GAME_MAX_KEYS]; |
nuclear@1 | 10 extern bool bnstate[GAME_MAX_BUTTONS]; |
nuclear@2 | 11 extern float stereo_focus_dist, stereo_eye_sep; |
nuclear@0 | 12 |
nuclear@0 | 13 bool game_init(); |
nuclear@0 | 14 void game_shutdown(); |
nuclear@0 | 15 |
nuclear@0 | 16 void game_iter(double dt); |
nuclear@0 | 17 void game_render(); |
nuclear@0 | 18 |
nuclear@1 | 19 void game_input_shoot(int bn); |
nuclear@1 | 20 void game_input_move(float x, float y, float z); |
nuclear@1 | 21 void game_input_rot(float x, float y); |
nuclear@1 | 22 |
nuclear@0 | 23 #endif // GAME_H_ |