nuclear@0: #ifndef GAME_H_ nuclear@0: #define GAME_H_ nuclear@0: nuclear@0: #include "shader.h" nuclear@0: #include "timer.h" nuclear@0: nuclear@0: extern ShaderProg *defsdr; nuclear@0: extern Timer timer; nuclear@0: nuclear@0: void game_set_args(int argc, char **argv); nuclear@0: nuclear@0: bool game_init(); nuclear@0: void game_cleanup(); nuclear@0: void game_display(); nuclear@0: void game_reshape(int x, int y); nuclear@0: nuclear@0: void game_key(int key, bool pressed); nuclear@0: nuclear@0: int get_screen_width(); nuclear@0: int get_screen_height(); nuclear@0: nuclear@0: // defined by the system-glue code. nuclear@0: void request_redisplay(); nuclear@0: void swap_buffers(); nuclear@0: nuclear@0: #endif // GAME_H_