Allow to enable/disable AA (currently it's enabled)
[neverball] / ball / game.h
1 #ifndef GAME_H
2 #define GAME_H
3
4 #include <stdio.h>
5
6 /*---------------------------------------------------------------------------*/
7
8 #define AUD_MENU   1
9 #define AUD_START  2
10 #define AUD_READY  3
11 #define AUD_SET    4
12 #define AUD_GO     5
13 #define AUD_BALL   6
14 #define AUD_BUMP   7
15 #define AUD_COIN   8
16 #define AUD_TICK   9
17 #define AUD_TOCK   10
18 #define AUD_SWITCH 11
19 #define AUD_JUMP   12
20 #define AUD_GOAL   13
21 #define AUD_SCORE  14
22 #define AUD_FALL   15
23 #define AUD_TIME   16
24 #define AUD_OVER   17
25 #define AUD_COUNT  18
26
27 /*---------------------------------------------------------------------------*/
28
29 #define MAX_DT      0.01666666         /* Maximum physics update cycle       */
30 #define MAX_DN      16                 /* Maximum subdivisions of dt         */
31 #define RESPONSE    0.05f              /* Input smoothing time               */
32
33 #define ANGLE_BOUND 40.f               /* Angle limit of floor tilting       */
34 #define NO_AA       0                  /* Disable Angle Acceleration         */
35
36
37 #define GAME_NONE 0
38 #define GAME_TIME 1
39 #define GAME_GOAL 2
40 #define GAME_FALL 3
41
42 /*---------------------------------------------------------------------------*/
43
44 int   game_init(const char *, const char *, const char *, int, int);
45 void  game_free(void);
46
47 int   curr_clock(void);
48 char *curr_intro(void);
49
50 void  game_draw(int, float);
51 int   game_step(const float[3], float, int);
52
53 void  game_set_pos(int, int);
54 void  game_set_x  (int);
55 void  game_set_z  (int);
56 void  game_set_rot(float);
57 void  game_set_fly(float);
58
59 void  game_look(float, float);
60
61 void  game_kill_fade(void);
62 void  game_step_fade(float);
63 void  game_fade(float);
64
65 int   put_game_state(FILE *);
66 int   get_game_state(FILE *);
67
68 /*---------------------------------------------------------------------------*/
69
70 #endif