updated URL of forum and table in readme file
[neverball] / share / geom.h
1 #ifndef GEOM_H
2 #define GEOM_H
3
4 /*---------------------------------------------------------------------------*/
5
6 #include "solid.h"
7
8 /*---------------------------------------------------------------------------*/
9
10 #define IMG_SHAD "png/shadow.png"
11
12 #define IMG_ITEM_COIN   _("png/coin.png")
13 #define IMG_ITEM_GROW    "png/grow.png"
14 #define IMG_ITEM_SHRINK  "png/shrink.png"
15
16 #define BALL_FUDGE    0.001f
17 #define COIN_RADIUS   0.15f
18 #define COIN_THICK    0.01f
19 #define JUMP_HEIGHT   2.00f
20 #define SWCH_HEIGHT   2.00f
21 #define GOAL_HEIGHT   3.00f
22 #define GOAL_SPARKS  64
23
24 /*---------------------------------------------------------------------------*/
25
26 void ball_init(int);
27 void ball_free(void);
28 void ball_draw(int);
29
30 /*---------------------------------------------------------------------------*/
31
32 void mark_init(int);
33 void mark_free(void);
34 void mark_draw(void);
35
36 /*---------------------------------------------------------------------------*/
37
38 void item_color(const struct s_item *, float *);
39 void item_init(int);
40 void item_free(void);
41
42 void item_push(void);
43 void item_push_text(int);
44 void item_draw(const struct s_item *, float);
45 void item_pull(void);
46
47 /*---------------------------------------------------------------------------*/
48
49 void goal_init(int);
50 void goal_free(void);
51 void goal_draw(void);
52
53 /*---------------------------------------------------------------------------*/
54
55 void jump_init(int);
56 void jump_free(void);
57 void jump_draw(int);
58
59 /*---------------------------------------------------------------------------*/
60
61 void swch_init(int);
62 void swch_free(void);
63 void swch_draw(int, int);
64
65 /*---------------------------------------------------------------------------*/
66
67 void flag_init(int);
68 void flag_free(void);
69 void flag_draw(void);
70
71 /*---------------------------------------------------------------------------*/
72
73 void shad_init(void);
74 void shad_free(void);
75 void shad_draw_set(const float *, float);
76 void shad_draw_clr(void);
77
78 /*---------------------------------------------------------------------------*/
79
80 void fade_draw(float);
81
82 #endif