Commit 084a215d0e0cfe6be5e4db67f2d0a450360c8f36

henry 2004-09-30T11:46:48

Updating documentation

diff --git a/include/FTExtrdGlyph.h b/include/FTExtrdGlyph.h
index 01e7c9e..d1d9d87 100644
--- a/include/FTExtrdGlyph.h
+++ b/include/FTExtrdGlyph.h
@@ -26,8 +26,11 @@ class FTGL_EXPORT FTExtrdGlyph : public FTGlyph
          *
          * @param glyph The Freetype glyph to be processed
          * @param depth The distance along the z axis to extrude the glyph
+         * @param useDisplayList Enable or disable the use of Display Lists for this glyph
+         *                       <code>true</code> turns ON display lists.
+         *                       <code>false</code> turns OFF display lists.
          */
-        FTExtrdGlyph( FT_GlyphSlot glyph, float depth);
+        FTExtrdGlyph( FT_GlyphSlot glyph, float depth, bool useDisplayList);
 
         /**
          * Destructor
diff --git a/include/FTGLExtrdFont.h b/include/FTGLExtrdFont.h
index dc784bb..f175e79 100644
--- a/include/FTGLExtrdFont.h
+++ b/include/FTGLExtrdFont.h
@@ -36,6 +36,11 @@ class FTGL_EXPORT FTGLExtrdFont : public FTFont
          */
         ~FTGLExtrdFont();
 		
+        /**
+         * Set the extrusion distance for the font. 
+         *
+         * @param d  The extrusion distance.
+         */
         void Depth( float d) { depth = d;}
 		
     private:
@@ -47,6 +52,9 @@ class FTGL_EXPORT FTGLExtrdFont : public FTFont
          */
         inline virtual FTGlyph* MakeGlyph( unsigned int glyphIndex);
 		
+        /**
+         * The extrusion distance for the font. 
+         */
         float depth;
 };
 
diff --git a/include/FTGlyph.h b/include/FTGlyph.h
index c38d51e..2083964 100755
--- a/include/FTGlyph.h
+++ b/include/FTGlyph.h
@@ -27,8 +27,13 @@ class FTGL_EXPORT FTGlyph
     public:
         /**
          * Constructor
+         *
+         * @param glyph The Freetype glyph to be processed
+         * @param useDisplayList Enable or disable the use of Display Lists for this glyph
+         *                       <code>true</code> turns ON display lists.
+         *                       <code>false</code> turns OFF display lists.
          */
-        FTGlyph( FT_GlyphSlot glyph);
+        FTGlyph( FT_GlyphSlot glyph, bool useDisplayList = true);
 
         /**
          * Destructor
@@ -76,6 +81,13 @@ class FTGL_EXPORT FTGlyph
         FTBBox bBox;
         
         /**
+         * Flag to enable or disable the use of Display Lists inside FTGL
+         * <code>true</code> turns ON display lists.
+         * <code>false</code> turns OFF display lists.
+         */
+        bool useDisplayList;
+        
+        /**
          * Current error code. Zero means no error.
          */
         FT_Error err;
diff --git a/include/FTOutlineGlyph.h b/include/FTOutlineGlyph.h
index 7dd0ba0..0333d56 100644
--- a/include/FTOutlineGlyph.h
+++ b/include/FTOutlineGlyph.h
@@ -25,8 +25,11 @@ class FTGL_EXPORT FTOutlineGlyph : public FTGlyph
          * Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.
          *
          * @param glyph The Freetype glyph to be processed
+         * @param useDisplayList Enable or disable the use of Display Lists for this glyph
+         *                       <code>true</code> turns ON display lists.
+         *                       <code>false</code> turns OFF display lists.
          */
-        FTOutlineGlyph( FT_GlyphSlot glyph);
+        FTOutlineGlyph( FT_GlyphSlot glyph, bool useDisplayList);
 
         /**
          * Destructor
diff --git a/include/FTPolyGlyph.h b/include/FTPolyGlyph.h
index c8faeff..bd25d6d 100644
--- a/include/FTPolyGlyph.h
+++ b/include/FTPolyGlyph.h
@@ -26,8 +26,12 @@ class FTGL_EXPORT FTPolyGlyph : public FTGlyph
          * Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.
          *
          * @param glyph The Freetype glyph to be processed
+         * @param glyph The Freetype glyph to be processed
+         * @param useDisplayList Enable or disable the use of Display Lists for this glyph
+         *                       <code>true</code> turns ON display lists.
+         *                       <code>false</code> turns OFF display lists.
          */
-        FTPolyGlyph( FT_GlyphSlot glyph);
+        FTPolyGlyph( FT_GlyphSlot glyph, bool useDisplayList);
 
         /**
          * Destructor