font_ftgl.h

Go to the documentation of this file.
00001 /* MANTAINER: Bernard */
00002 
00003 #ifndef FONT_FTGL_H
00004 #define FONT_FTGL_H
00005 
00006 #include <string>
00007 #include <FTGLPixmapFont.h>
00008 #include "font.h"
00009 
00010 
00020 class FontFTGL : public Font
00021 {
00022 public:
00023 
00031         FontFTGL(const char* file, int ptsize);
00032 
00036         virtual ~FontFTGL();
00037 
00046         virtual void RenderUTF8(const std::string &utf8str, float x, float y);
00047 
00055         virtual int     Ascent();
00056 
00057         
00058         // MISSING
00059         virtual int getTextWidth(const std::string &utf8str) = 0;
00060         virtual int getWwidth() = 0;
00061 
00062 private:
00063         
00064         FTGLPixmapFont   *mFont; 
00065 
00066 };
00067 
00068 #endif

Generated on Wed Apr 12 13:55:28 2006 for bjs by  doxygen 1.4.5