00001 #ifndef __FTGLBufferFont__
00002 #define __FTGLBufferFont__
00003
00004
00005 #include "FTFont.h"
00006 #include "FTGL.h"
00007
00008
00009 class FTGlyph;
00010
00011
00018 class FTGL_EXPORT FTGLBufferFont : public FTFont
00019 {
00020 public:
00026 FTGLBufferFont( const char* fontname);
00027
00034 FTGLBufferFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes);
00035
00036
00037 void SetClientBuffer( unsigned char* b)
00038 {
00039 buffer = b;
00040 }
00041
00042
00046 ~FTGLBufferFont();
00047
00053 void Render( const char* string);
00054
00060 void Render( const wchar_t* string);
00061
00062 private:
00069 inline virtual FTGlyph* MakeGlyph( unsigned int g);
00070
00071 unsigned char* buffer;
00072 };
00073
00074
00075 #endif // __FTGLBufferFont__
00076