00001
00002
00003
00004
00005 #ifndef EQUTIL_BITMAPFONT_H
00006 #define EQUTIL_BITMAPFONT_H
00007
00008 #include <eq/base/base.h>
00009 #include <eq/client/windowSystem.h>
00010
00011 #include <string>
00012
00013 namespace eq
00014 {
00015 class Window;
00016
00023 namespace util
00024 {
00026 class EQ_EXPORT BitmapFont
00027 {
00028 public:
00029 BitmapFont( Window* window );
00030 ~BitmapFont();
00031
00032 const static std::string normal;
00033
00034 bool initFont( const std::string& fontName = BitmapFont::normal );
00035 void draw( const std::string& text ) const;
00036
00037 private:
00038
00039 Window* const _window;
00040 GLuint _lists;
00041
00042 bool _initFontGLX( const std::string& fontName );
00043 bool _initFontWGL( const std::string& fontName );
00044 bool _initFontAGL( const std::string& fontName );
00045
00046 void _setupLists( const GLsizei num );
00047 };
00048 }
00049 }
00050 #endif // EQUTIL_BITMAPFONT_H