9b2e15b2ec5a31bde587cc29dcfa92531225e604
[neverball] / share / geom.h
1 #ifndef GEOM_H
2 #define GEOM_H
3
4 #include "solid_draw.h"
5
6 /*---------------------------------------------------------------------------*/
7
8 #define IMG_SHAD "png/shadow.png"
9
10 #define BACK_DIST   256.0f
11 #define FAR_DIST    512.0f
12 #define JUMP_HEIGHT   2.00f
13 #define SWCH_HEIGHT   2.00f
14 #define GOAL_HEIGHT   3.00f
15 #define GOAL_SPARKS  64
16
17 /*---------------------------------------------------------------------------*/
18
19 void geom_init(void);
20 void geom_free(void);
21
22 const struct d_mtrl *goal_draw(const struct d_mtrl *, float);
23 const struct d_mtrl *jump_draw(const struct d_mtrl *, float, int);
24 const struct d_mtrl *swch_draw(const struct d_mtrl *, int, int);
25 const struct d_mtrl *flag_draw(const struct d_mtrl *);
26 const struct d_mtrl *mark_draw(const struct d_mtrl *);
27 const struct d_mtrl *back_draw(const struct d_mtrl *, float);
28
29 /*---------------------------------------------------------------------------*/
30
31 void back_init(const char *s);
32 void back_free(void);
33 void back_draw_easy(void);
34
35 /*---------------------------------------------------------------------------*/
36
37 void shad_init(void);
38 void shad_free(void);
39 void shad_draw_set(void);
40 void shad_draw_clr(void);
41
42 /*---------------------------------------------------------------------------*/
43
44 void fade_draw(float);
45
46 #endif