Commit 81fdd49ff0efa79608877ae5ad889de4e14afa9a

henry 2002-01-28T06:56:21

Added note in font manager sample code about the inline static problem.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/docs/FTGL.html b/docs/FTGL.html
index a3e1e32..fd14e8f 100644
--- a/docs/FTGL.html
+++ b/docs/FTGL.html
@@ -231,6 +231,10 @@ typedef FontList::const_iterator FontIter;
 class FTGLFontManager
 {
     public:
+        // NOTE
+        // This is shown here for brevity. The implementation should be in the source
+        // file otherwise your compiler may inline the function resulting in 
+        // multiple instances of FTGLFontManager
         static FTGLFontManager& Instance()
         {
             static FTGLFontManager tm;