Commit cca1059dcaf757eea9604c581547b4d7ccb962f2

henry 2003-09-29T20:59:51

Added SetDepth function to FTBBox

diff --git a/include/FTBBox.h b/include/FTBBox.h
index 70f7fa4..f679c89 100755
--- a/include/FTBBox.h
+++ b/include/FTBBox.h
@@ -107,6 +107,12 @@ class FTGL_EXPORT FTBBox
             return *this;
         }
         
+        void SetDepth( float depth)
+        {
+            upperZ = lowerZ + depth;
+        }
+        
+        
         /**
          * The bounds of the box
          */
diff --git a/src/FTExtrdGlyph.cpp b/src/FTExtrdGlyph.cpp
index 767f127..0b120e6 100644
--- a/src/FTExtrdGlyph.cpp
+++ b/src/FTExtrdGlyph.cpp
@@ -9,7 +9,7 @@ FTExtrdGlyph::FTExtrdGlyph( FT_GlyphSlot glyph, float d)
     glList(0),
     depth(d)
 {
-    bBox.upperZ = -depth;
+    bBox.SetDepth( -depth);
         
     if( ft_glyph_format_outline != glyph->format)
     {