Implement new shot name generation using a persistent index.
[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 COIN_RADIUS   0.15f
17 #define COIN_THICK    0.01f
18 #define JUMP_HEIGHT   2.00f
19 #define SWCH_HEIGHT   2.00f
20 #define GOAL_HEIGHT   3.00f
21 #define GOAL_SPARKS  64
22
23 /*---------------------------------------------------------------------------*/
24
25 void mark_init(int);
26 void mark_free(void);
27 void mark_draw(void);
28
29 /*---------------------------------------------------------------------------*/
30
31 void item_color(const struct s_item *, float *);
32 void item_init(int);
33 void item_free(void);
34
35 void item_push(int);
36 void item_draw(const struct s_item *, float);
37 void item_pull(void);
38
39 /*---------------------------------------------------------------------------*/
40
41 void goal_init(int);
42 void goal_free(void);
43 void goal_draw(void);
44
45 /*---------------------------------------------------------------------------*/
46
47 void jump_init(int);
48 void jump_free(void);
49 void jump_draw(int);
50
51 /*---------------------------------------------------------------------------*/
52
53 void swch_init(int);
54 void swch_free(void);
55 void swch_draw(int, int);
56
57 /*---------------------------------------------------------------------------*/
58
59 void flag_init(int);
60 void flag_free(void);
61 void flag_draw(void);
62
63 /*---------------------------------------------------------------------------*/
64
65 void shad_init(void);
66 void shad_free(void);
67 void shad_draw_set(const float *, float);
68 void shad_draw_clr(void);
69
70 /*---------------------------------------------------------------------------*/
71
72 void fade_draw(float);
73
74 #endif