]> git.mxchange.org Git - flightgear.git/blobdiff - Scenery/geometry.c
Changed naming scheme of basic shared structures.
[flightgear.git] / Scenery / geometry.c
index f2ec13016f1f515685dca083d786a46f57e0f6eb..da2b4b7bb9ce8f985bab7df3b207e2c2bdb52e15 100644 (file)
@@ -33,7 +33,7 @@
 
 
 static vrmlGeometryType;
-static struct mesh eg;
+struct MESH eg;
 
 
 /* Begin a new vrml geometry statement */
@@ -58,7 +58,11 @@ void vrmlGeomOptionName(char *name) {
 
     switch(vrmlGeometryType) {
     case VRML_ELEV_GRID:
-       if ( strcmp(name, "xDimension") == 0 ) {
+       if ( strcmp(name, "xOrigin") == 0 ) {
+           mesh_set_option_name(&eg, "origin_lon");
+       } else if ( strcmp(name, "zOrigin") == 0 ) {
+           mesh_set_option_name(&eg, "origin_lat");
+       } else if ( strcmp(name, "xDimension") == 0 ) {
            mesh_set_option_name(&eg, "rows");
        } else if ( strcmp(name, "zDimension") == 0 ) {
            mesh_set_option_name(&eg, "cols");
@@ -105,16 +109,29 @@ int vrmlFreeGeometry() {
 
     switch(vrmlGeometryType) {
     case VRML_ELEV_GRID:
-       free(eg.mesh_data);
+       /* We need to rethink this here, we can't just free the data,
+         * because we need it to calculate current ground elevation
+         * ... */
+       /* free(eg.mesh_data); */
     }
     return(vrmlGeometryType);
 }
 
 
 /* $Log$
-/* Revision 1.1  1997/06/29 21:16:48  curt
-/* More twiddling with the Scenery Management system.
+/* Revision 1.4  1997/08/27 03:30:26  curt
+/* Changed naming scheme of basic shared structures.
 /*
+ * Revision 1.3  1997/07/08 18:20:13  curt
+ * Working on establishing a hard ground.
+ *
+ * Revision 1.2  1997/07/07 20:59:51  curt
+ * Working on scenery transformations to enable us to fly fluidly over the
+ * poles with no discontinuity/distortion in scenery.
+ *
+ * Revision 1.1  1997/06/29 21:16:48  curt
+ * More twiddling with the Scenery Management system.
+ *
  * Revision 1.1  1997/06/22 21:42:35  curt
  * Initial revision of VRML (subset) parser.
  *