Commit 3faff95de319413d104abe6be256468ca4adf017

henry 2002-12-19T10:24:20

Made some objects const

diff --git a/src/FTExtrdGlyph.cpp b/src/FTExtrdGlyph.cpp
index 7edf2ad..48e985e 100644
--- a/src/FTExtrdGlyph.cpp
+++ b/src/FTExtrdGlyph.cpp
@@ -29,10 +29,10 @@ FTExtrdGlyph::FTExtrdGlyph( FT_Glyph glyph, float d)
         vectoriser->MakeMesh( 1.0);
         glNormal3d(0.0, 0.0, 1.0);
         
-        FTMesh* mesh = vectoriser->GetMesh();
+        const FTMesh* mesh = vectoriser->GetMesh();
         for( unsigned int index = 0; index < mesh->TesselationCount(); ++index)
         {
-            FTTesselation* subMesh = mesh->Tesselation( index);
+            const FTTesselation* subMesh = mesh->Tesselation( index);
             unsigned int polyonType = subMesh->PolygonType();
 
             glBegin( polyonType);
@@ -51,7 +51,7 @@ FTExtrdGlyph::FTExtrdGlyph( FT_Glyph glyph, float d)
         mesh = vectoriser->GetMesh();
         for( unsigned int index = 0; index < mesh->TesselationCount(); ++index)
         {
-            FTTesselation* subMesh = mesh->Tesselation( index);
+            const FTTesselation* subMesh = mesh->Tesselation( index);
             unsigned int polyonType = subMesh->PolygonType();
 
             glBegin( polyonType);
@@ -68,7 +68,7 @@ FTExtrdGlyph::FTExtrdGlyph( FT_Glyph glyph, float d)
         
         for( size_t c = 0; c < vectoriser->ContourCount(); ++c)
         {
-            FTContour* contour = vectoriser->Contour(c);
+            const FTContour* contour = vectoriser->Contour(c);
             unsigned int numberOfPoints = contour->PointCount();
             
             glBegin( GL_QUAD_STRIP);
diff --git a/src/FTOutlineGlyph.cpp b/src/FTOutlineGlyph.cpp
index bf20eca..2e00c25 100644
--- a/src/FTOutlineGlyph.cpp
+++ b/src/FTOutlineGlyph.cpp
@@ -24,7 +24,7 @@ FTOutlineGlyph::FTOutlineGlyph( FT_Glyph glyph)
     glNewList( glList, GL_COMPILE);
         for( unsigned int c = 0; c < numContours; ++c)
         {
-            FTContour* contour = vectoriser->Contour(c);
+            const FTContour* contour = vectoriser->Contour(c);
             
             glBegin( GL_LINE_LOOP);
                 for( unsigned int p = 0; p < contour->PointCount(); ++p)
diff --git a/src/FTPolyGlyph.cpp b/src/FTPolyGlyph.cpp
index 08191e3..b062f24 100644
--- a/src/FTPolyGlyph.cpp
+++ b/src/FTPolyGlyph.cpp
@@ -24,10 +24,10 @@ FTPolyGlyph::FTPolyGlyph( FT_Glyph glyph)
     glList = glGenLists(1);
     glNewList( glList, GL_COMPILE);
 
-        FTMesh* mesh = vectoriser->GetMesh();
+        const FTMesh* mesh = vectoriser->GetMesh();
         for( unsigned int index = 0; index < mesh->TesselationCount(); ++index)
         {
-            FTTesselation* subMesh = mesh->Tesselation( index);
+            const FTTesselation* subMesh = mesh->Tesselation( index);
             unsigned int polyonType = subMesh->PolygonType();
 
             glBegin( polyonType);