3dphotoshoot
view 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 |
line source
1 #ifndef GAME_H_
2 #define GAME_H_
4 extern int win_width, win_height;
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
10 int game_init(void);
11 void game_shutdown(void);
13 void game_display(unsigned long msec);
14 void game_reshape(int x, int y);
16 void game_keyboard(int key, int press);
17 void game_mouse_button(int id, int bn, int press, int x, int y);
18 void game_mouse_motion(int id, int x, int y);
20 void game_6dof_translation(float dx, float dy, float dz);
21 void game_6dof_rotation(float qx, float qy, float qz, float qw);
23 /* provided by the system frontend */
24 void set_mouse_pos(int x, int y);
25 void set_mouse_cursor(int enable);
27 #ifdef __cplusplus
28 }
29 #endif
31 #endif /* GAME_H_ */