Fix redundant glTexEnv calls
[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 void goal_draw(struct s_rend *, float);
23 void jump_draw(struct s_rend *, float, int);
24 void swch_draw(struct s_rend *, int, int);
25 void flag_draw(struct s_rend *);
26 void mark_draw(struct s_rend *);
27 void vect_draw(struct s_rend *);
28 void back_draw(struct s_rend *, float);
29
30 /*---------------------------------------------------------------------------*/
31
32 void back_init(const char *s);
33 void back_free(void);
34 void back_draw_easy(void);
35
36 /*---------------------------------------------------------------------------*/
37
38 void shad_init(void);
39 void shad_free(void);
40 void shad_draw_set(void);
41 void shad_draw_clr(void);
42
43 /*---------------------------------------------------------------------------*/
44
45 void fade_draw(float);
46
47 #endif