1 /*
2  * Tux Racer
3  * Copyright (C) 1999-2001 Jasmin F. Patry
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  */
19 
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
25 #ifndef _RENDER_UTIL_H_
26 #define _RENDER_UTIL_H_
27 
28 #define NEAR_CLIP_DIST 0.1
29 
30 extern const colour_t white;
31 extern const colour_t grey;
32 extern const colour_t red;
33 extern const colour_t green;
34 extern const colour_t light_blue;
35 extern const colour_t blue;
36 extern const colour_t black;
37 extern const colour_t sky;
38 
39 void reshape( int w, int h );
40 void flat_mode();
41 void draw_overlay();
42 void clear_rendering_context();
43 void configure_fog();
44 void set_material( colour_t diffuse_colour, colour_t specular_colour,
45 		   scalar_t specular_exp );
46 
47 void draw_billboard( player_data_t *plyr,
48 		     point_t center_pt, scalar_t width, scalar_t height,
49 		     bool_t use_world_y_axis,
50 		     point2d_t min_tex_coord, point2d_t max_tex_coord );
51 
52 #endif /* _RENDER_UTIL_H_ */
53 
54 #ifdef __cplusplus
55 } /* extern "C" */
56 #endif
57