More work on docs
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 66 67 68 69 70 71 72 73 74 75 76
diff --git a/docs/FTGL.html b/docs/FTGL.html
index 8cc2975..a3e1e32 100644
--- a/docs/FTGL.html
+++ b/docs/FTGL.html
@@ -24,6 +24,7 @@
<LI><H3><a href="#CAT">Creating a font</a></H3></LI>
<LI><H3><a href="#MFC">More font commands</a></H3></LI>
<LI><H3><a href="#FAQ">FAQ</a></H3></LI>
+ <LI><H3><a href="#GLS">Glossary</a></H3></LI>
</UL>
<HR ALIGN="center" SIZE="2" WIDTH="80%">
<A NAME="INT">
@@ -138,12 +139,12 @@ With these three functions an approximate bounding box can be calculated. For an
<font color="blue"><PRE>
void FTFont::BBox( string, llx, lly, llz, urx, ury, urz);
const char* string: String of text to be tested
- int& llx: The bottom left near most ?? in the x axis
- int& lly: The bottom left near most ?? in the y axis
- int& llz: The bottom left near most ?? in the z axis
- int& urx: The top right far most ?? in the x axis
- int& ury: The top right far most ?? in the y axis
- int& urz: The top right far most ?? in the z axis
+ float& llx: The bottom left near most ?? in the x axis
+ float& lly: The bottom left near most ?? in the y axis
+ float& llz: The bottom left near most ?? in the z axis
+ float& urx: The top right far most ?? in the x axis
+ float& ury: The top right far most ?? in the y axis
+ float& urz: The top right far most ?? in the z axis
</PRE></font>
<P>
@@ -212,14 +213,14 @@ Couple of extra things to note. The quality of vector glyphs will not change whe
Early on I did a lot of head scratching over the opengl unit to font size thing because when I was first integrating FTGL into my engine the fonts weren't the size I was expecting. I was tempted to build in some scaling but I decided doing nothing was the best approach because you can't please everyone. Plus it's 'correct' as it is.
-
-Sample font manager class.
+<H3>Sample font manager class.</H3>
<font color="blue"><pre>
FTGLTextureFont* myFont = FTGLFontManager::Instance().GetFont( "arial.ttf", 72);
#include <map>
+#include <string>
#include "FTGLTextureFont.h"
using namespace std;
@@ -268,12 +269,14 @@ class FTGLFontManager
if( !font->Open( fullname.c_str()))
{
LOGERROR( "Font %s failed to open", fullname.c_str());
+ delete font;
return NULL;
}
if( !font->FaceSize( size))
{
LOGERROR( "Font %s failed to set size %i", filename, size);
+ delete font;
return NULL;
}
@@ -297,6 +300,12 @@ class FTGLFontManager
</PRE></font>
+<HR ALIGN="center" SIZE="2" WIDTH="80%">
+
+<A NAME="GLS">
+<H2>Glossary</H2>
+
+
</TD>
</TR>
</TABLE>