vrshoot
diff src/game.h @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/game.h Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,26 @@ 1.4 +#ifndef GAME_H_ 1.5 +#define GAME_H_ 1.6 + 1.7 +#include "shader.h" 1.8 +#include "timer.h" 1.9 + 1.10 +extern ShaderProg *defsdr; 1.11 +extern Timer timer; 1.12 + 1.13 +void game_set_args(int argc, char **argv); 1.14 + 1.15 +bool game_init(); 1.16 +void game_cleanup(); 1.17 +void game_display(); 1.18 +void game_reshape(int x, int y); 1.19 + 1.20 +void game_key(int key, bool pressed); 1.21 + 1.22 +int get_screen_width(); 1.23 +int get_screen_height(); 1.24 + 1.25 +// defined by the system-glue code. 1.26 +void request_redisplay(); 1.27 +void swap_buffers(); 1.28 + 1.29 +#endif // GAME_H_