]> git.mxchange.org Git - flightgear.git/blobdiff - Clipper/clipper.hxx
Fixed a clipping bug (polygons specified in wrong order).
[flightgear.git] / Clipper / clipper.hxx
index 617b92f451bebaa5b0460cf0c085b89b5749c445..469691a2ae020b8eec01adcd561b2978c49cb893 100644 (file)
@@ -54,9 +54,10 @@ FG_USING_STD(vector);
 
 typedef vector < gpc_polygon * > gpcpoly_container;
 typedef gpcpoly_container::iterator gpcpoly_iterator;
+typedef gpcpoly_container::const_iterator const_gpcpoly_iterator;
 
 
-#define FG_MAX_AREAS 20
+#define FG_MAX_AREA_TYPES 20
 #define EXTRA_SAFETY_CLIP
 #define FG_MAX_VERTICES 100000
 
@@ -69,7 +70,7 @@ public:
 
 class FGgpcPolyList {
 public:
-    gpcpoly_container polys[FG_MAX_AREAS];
+    gpcpoly_container polys[FG_MAX_AREA_TYPES];
     gpc_polygon safety_base;
 };
 
@@ -108,6 +109,14 @@ public:
 
 
 // $Log$
+// Revision 1.5  1999/03/19 00:26:19  curt
+// Fixed a clipping bug (polygons specified in wrong order).
+// Touched up a few compiler warnings.
+//
+// Revision 1.4  1999/03/18 04:31:10  curt
+// Let's not pass copies of huge structures on the stack ... ye might see a
+// segfault ... :-)
+//
 // Revision 1.3  1999/03/17 23:48:59  curt
 // minor renaming and a bit of rearranging.
 //