]> git.mxchange.org Git - flightgear.git/blob - src/Airports/old_draw_runways.c
Tweak #includes to use double quotes for local files not <>
[flightgear.git] / src / Airports / old_draw_runways.c
1 // Scenery management routines
2
3 /* static void fgSceneryInit_OLD() { */
4     /* make scenery */
5 /*     scenery = fgSceneryCompile_OLD();
6     runway = fgRunwayHack_OLD(0.69, 53.07);
7 } */
8
9
10 /* create the scenery */
11 /* GLint fgSceneryCompile_OLD() {
12     GLint scenery;
13
14     scenery = mesh2GL(mesh_ptr_OLD);
15
16     return(scenery);
17 }
18 */
19
20 /* hack in a runway */
21 /* GLint fgRunwayHack_OLD(double width, double length) {
22     static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 };
23     static GLfloat line[4]     = { 0.9, 0.9, 0.9, 1.0 };
24     int i;
25     int num_lines = 16;
26     float line_len, line_width_2, cur_pos;
27
28     runway = xglGenLists(1);
29     xglNewList(runway, GL_COMPILE);
30     */
31     /* draw concrete */
32 /*    xglBegin(GL_POLYGON);
33     xglMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, concrete );
34     xglNormal3f(0.0, 0.0, 1.0);
35
36     xglVertex3d( 0.0,   -width/2.0, 0.0);
37     xglVertex3d( 0.0,    width/2.0, 0.0);
38     xglVertex3d(length,  width/2.0, 0.0);
39     xglVertex3d(length, -width/2.0, 0.0);
40     xglEnd();
41     */
42     /* draw center line */
43 /*    xglMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, line );
44     line_len = length / ( 2 * num_lines + 1);
45     printf("line_len = %.3f\n", line_len);
46     line_width_2 = 0.02;
47     cur_pos = line_len;
48     for ( i = 0; i < num_lines; i++ ) {
49         xglBegin(GL_POLYGON);
50         xglVertex3d( cur_pos, -line_width_2, 0.005);
51         xglVertex3d( cur_pos,  line_width_2, 0.005);
52         cur_pos += line_len;
53         xglVertex3d( cur_pos,  line_width_2, 0.005);
54         xglVertex3d( cur_pos, -line_width_2, 0.005);
55         cur_pos += line_len;
56         xglEnd();
57     }
58
59     xglEndList();
60
61     return(runway);
62 }
63 */
64
65 /* draw the scenery */
66 /*static void fgSceneryDraw_OLD() {
67     static float z = 32.35;
68
69     xglPushMatrix();
70
71     xglCallList(scenery);
72
73     printf("*** Drawing runway at %.2f\n", z);
74
75     xglTranslatef( -398391.28, 120070.41, 32.35);
76     xglRotatef(170.0, 0.0, 0.0, 1.0);
77     xglCallList(runway);
78
79     xglPopMatrix();
80 }
81 */
82
83