00001 00005 /* Copyright © 2009 James Legg. 00006 This program is free software: you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation, either version 3 of the License, or 00009 (at your option) any later version. 00010 */ 00011 #ifndef BASICFONTS_H_ 00012 #define BASICFONTS_H_ 00013 00014 #include <config.h> // to find out which headers to use for ftgl. 00015 00016 #define FT_FREETYPE_H <freetype/freetype.h> 00017 #define FT_GLYPH_H <freetype/ftglyph.h> 00018 #define FT_OUTLINE_H <freetype/ftoutln.h> 00019 #ifdef HAVE_FTGL_2_1_2 00020 # include <FTGL/FTGL.h> 00021 # include <FTGL/FTGLTextureFont.h> 00022 #else 00023 # include <FTGL/ftgl.h> 00024 #endif 00025 #undef FT_FREETYPE_H 00026 #undef FT_GLYPH_H 00027 #undef FT_OUTLINE_H 00028 00029 namespace UI 00030 { 00031 00038 class BasicFonts 00039 { 00040 public: 00041 ~BasicFonts(); 00042 static BasicFonts & get_instance(); 00043 #ifdef HAVE_FTGL_2_1_3 00044 FTTextureFont small_font; 00045 FTTextureFont big_font; 00046 #else 00047 FTGLTextureFont small_font; 00048 FTGLTextureFont big_font; 00049 #endif 00050 private: 00051 BasicFonts(); 00052 }; 00053 00054 } 00055 00056 #endif /*BASICFONTS_H_*/
Generated at Mon Sep 6 00:41:13 2010 by Doxygen version 1.4.7 for Racer version svn335.