Commit 6b4e1f144336c5e41dad2d5c1f355f27de3c741e

henry 2002-12-08T06:57:27

Made vectoriser a local variable

diff --git a/include/FTExtrdGlyph.h b/include/FTExtrdGlyph.h
index 28d607e..e3e8a8c 100644
--- a/include/FTExtrdGlyph.h
+++ b/include/FTExtrdGlyph.h
@@ -52,12 +52,6 @@ class FTGL_EXPORT FTExtrdGlyph : public FTGlyph
         bool Winding( int numPoints, FTGL_DOUBLE *points);
         
         /**
-         * An object that helps convert freetype outlines into point
-         * data
-         */
-        FTVectoriser* vectoriser;
-        
-        /**
          * OpenGL display list
          */
         GLuint glList;
diff --git a/include/FTOutlineGlyph.h b/include/FTOutlineGlyph.h
index 40a34a1..6b22b7a 100644
--- a/include/FTOutlineGlyph.h
+++ b/include/FTOutlineGlyph.h
@@ -43,12 +43,6 @@ class FTGL_EXPORT FTOutlineGlyph : public FTGlyph
 		
 	private:
 		/**
-		 * An object that helps convert freetype outlines into point
-		 * data
-		 */
-		FTVectoriser* vectoriser;
-
-		/**
 		 * The total number of points in the Freetype outline
 		 */
 		int numPoints;
diff --git a/include/FTPolyGlyph.h b/include/FTPolyGlyph.h
index cdb6547..f85f84d 100644
--- a/include/FTPolyGlyph.h
+++ b/include/FTPolyGlyph.h
@@ -49,12 +49,6 @@ class FTGL_EXPORT FTPolyGlyph : public FTGlyph
          * Uses GLUtesselator to create a mesh
          */
         void Tesselate();
-        
-        /**
-         * An object that helps convert freetype outlines into point
-         * data
-         */
-        FTVectoriser* vectoriser;
 
         /**
          * The total number of points in the Freetype outline
diff --git a/src/FTExtrdGlyph.cpp b/src/FTExtrdGlyph.cpp
index 48f022e..d19ec09 100644
--- a/src/FTExtrdGlyph.cpp
+++ b/src/FTExtrdGlyph.cpp
@@ -6,7 +6,6 @@
 
 FTExtrdGlyph::FTExtrdGlyph( FT_Glyph glyph, float d)
 :   FTGlyph(),
-    vectoriser(0),
     glList(0),
     depth(d)
 {
@@ -15,7 +14,7 @@ FTExtrdGlyph::FTExtrdGlyph( FT_Glyph glyph, float d)
         return;
     }
 
-    vectoriser = new FTVectoriser( glyph);
+    FTVectoriser* vectoriser = new FTVectoriser( glyph);
     
     vectoriser->ProcessContours();
 
diff --git a/src/FTOutlineGlyph.cpp b/src/FTOutlineGlyph.cpp
index 8bc4ea1..c880fcd 100644
--- a/src/FTOutlineGlyph.cpp
+++ b/src/FTOutlineGlyph.cpp
@@ -4,7 +4,6 @@
 
 FTOutlineGlyph::FTOutlineGlyph( FT_Glyph glyph)
 :   FTGlyph(),
-    vectoriser(0),
     numPoints(0),
     numContours(0),
     data(0),
@@ -15,7 +14,7 @@ FTOutlineGlyph::FTOutlineGlyph( FT_Glyph glyph)
         return;
     }
 
-    vectoriser = new FTVectoriser( glyph);
+    FTVectoriser* vectoriser = new FTVectoriser( glyph);
     
     vectoriser->ProcessContours();
     
diff --git a/src/FTPolyGlyph.cpp b/src/FTPolyGlyph.cpp
index 84d656b..2d838a0 100644
--- a/src/FTPolyGlyph.cpp
+++ b/src/FTPolyGlyph.cpp
@@ -4,7 +4,6 @@
 
 FTPolyGlyph::FTPolyGlyph( FT_Glyph glyph)
 :   FTGlyph(),
-    vectoriser(0),
     numPoints(0),
     data(0),
     glList(0)
@@ -14,7 +13,7 @@ FTPolyGlyph::FTPolyGlyph( FT_Glyph glyph)
         return;
     }
 
-    vectoriser = new FTVectoriser( glyph);
+    FTVectoriser* vectoriser = new FTVectoriser( glyph);
     
     vectoriser->ProcessContours();