]> git.mxchange.org Git - flightgear.git/blobdiff - Main/mesh2GL.c
Capitalized subdirectory names.
[flightgear.git] / Main / mesh2GL.c
index ce5f5d7494c271ae9abd0d0cd3d16af182c5fc70..64a3a28418f194070c1a8ed0bd30dab153eadcdf 100644 (file)
     #include "gltk.h"
 #endif
 
-#include "../scenery/mesh.h"
+#include "../Scenery/mesh.h"
 #include "../mat3/mat3.h"
 
 
 /* walk through mesh and make ogl calls */
 GLint mesh2GL(struct mesh *m) {
     GLint mesh;
+    static GLfloat color[4] = { 0.3, 0.7, 0.2, 1.0 };
 
     float x1, y1, x2, y2, z11, z12, z21, z22;
+
     MAT3vec v1, v2, normal; 
     int i, j, istep, jstep, iend, jend;
     float temp;
 
-    istep = jstep = 16;  /* Detail level 1 -- 1200 ... */
+    istep = jstep = 25;  /* Detail level 1 -- 1200 ... */
 
     mesh = glGenLists(1);
     glNewList(mesh, GL_COMPILE);
 
+    glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, color );
+       
     iend = m->cols - 1;
     jend = m->rows - 1;
     
@@ -104,9 +108,18 @@ GLint mesh2GL(struct mesh *m) {
 
 
 /* $Log$
-/* Revision 1.18  1997/06/17 04:19:17  curt
-/* More timer related tweaks with respect to view direction changes.
+/* Revision 1.21  1997/06/21 17:12:54  curt
+/* Capitalized subdirectory names.
 /*
+ * Revision 1.20  1997/06/18 04:10:32  curt
+ * A couple more runway tweaks ...
+ *
+ * Revision 1.19  1997/06/18 02:21:24  curt
+ * Hacked in a runway
+ *
+ * Revision 1.18  1997/06/17 04:19:17  curt
+ * More timer related tweaks with respect to view direction changes.
+ *
  * Revision 1.17  1997/06/16 19:32:52  curt
  * Starting to add general timer support.
  *