Commit 18dd271e0ff2b937d3d062dd3daf00068d7df939

henry 2001-08-05T21:44:40

Made render() arg const. Initialisation list.

diff --git a/include/FTTextureGlyph.h b/include/FTTextureGlyph.h
index 23502b3..1efc237 100755
--- a/include/FTTextureGlyph.h
+++ b/include/FTTextureGlyph.h
@@ -14,10 +14,11 @@ class	FTTextureGlyph : public FTGlyph
 		// methods
 		FTTextureGlyph( FT_Glyph glyph, int gi, unsigned char* data, int stride, float u, float v);
 		virtual ~FTTextureGlyph();
-		virtual float Render( FT_Vector& v);
+		virtual float Render( const FT_Vector& v);
 		
 	private:
 		// attributes
+		// What about the other point class in vectoriser?
 		struct FTPoint
 		{
 			float x;
diff --git a/src/FTTextureGlyph.cpp b/src/FTTextureGlyph.cpp
index 15df83d..094e3d2 100755
--- a/src/FTTextureGlyph.cpp
+++ b/src/FTTextureGlyph.cpp
@@ -5,7 +5,10 @@
 
 
 FTTextureGlyph::FTTextureGlyph( FT_Glyph glyph, int gi, unsigned char* data, int stride, float u, float v)
-:	FTGlyph(gi)
+:	FTGlyph(gi),
+	destWidth(0),
+	destHeight(0),
+	numGreys(0)
 {
 	if( !glyph->format == ft_glyph_format_bitmap)
 	{ return;}
@@ -67,7 +70,7 @@ FTTextureGlyph::~FTTextureGlyph()
 }
 
 
-float FTTextureGlyph::Render( FT_Vector& pen)
+float FTTextureGlyph::Render( const FT_Vector& pen)
 {
 //	int adv = advance/* + pos.x */+ ( v.x >> 16); // FIXME ??? pos.x = bearing X