Made some objects const
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
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);