3dphotoshoot

annotate src/game.h @ 27:3d082c566b53

fixed all the bugs, pc version works
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 04:32:25 +0300
parents d7fe157c402d
children
rev   line source
nuclear@0 1 #ifndef GAME_H_
nuclear@0 2 #define GAME_H_
nuclear@0 3
nuclear@22 4 extern int win_width, win_height;
nuclear@22 5
nuclear@20 6 #ifdef __cplusplus
nuclear@20 7 extern "C" {
nuclear@20 8 #endif
nuclear@20 9
nuclear@0 10 int game_init(void);
nuclear@0 11 void game_shutdown(void);
nuclear@0 12
nuclear@0 13 void game_display(unsigned long msec);
nuclear@0 14 void game_reshape(int x, int y);
nuclear@0 15
nuclear@0 16 void game_keyboard(int key, int press);
nuclear@0 17 void game_mouse_button(int id, int bn, int press, int x, int y);
nuclear@0 18 void game_mouse_motion(int id, int x, int y);
nuclear@0 19
nuclear@24 20 void game_6dof_translation(float dx, float dy, float dz);
nuclear@24 21 void game_6dof_rotation(float qx, float qy, float qz, float qw);
nuclear@24 22
nuclear@0 23 /* provided by the system frontend */
nuclear@0 24 void set_mouse_pos(int x, int y);
nuclear@0 25 void set_mouse_cursor(int enable);
nuclear@0 26
nuclear@20 27 #ifdef __cplusplus
nuclear@20 28 }
nuclear@20 29 #endif
nuclear@20 30
nuclear@0 31 #endif /* GAME_H_ */
nuclear@0 32