00001 #ifndef __FTGLPixmapFont__
00002 #define __FTGLPixmapFont__
00003
00004
00005 #include "FTFont.h"
00006 #include "FTGL.h"
00007
00008
00009 class FTGlyph;
00010
00011
00012
00013
00014
00015
00016
00017
00018 class FTGL_EXPORT FTGLPixmapFont : public FTFont
00019 {
00020 public:
00021
00022
00023
00024
00025
00026 FTGLPixmapFont( const char* fontFilePath);
00027
00028
00029
00030
00031
00032
00033
00034 FTGLPixmapFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes);
00035
00036
00037
00038
00039 ~FTGLPixmapFont();
00040
00041
00042
00043
00044 virtual void PreRender();
00045
00046
00047
00048
00049 virtual void PostRender();
00050
00051 private:
00052
00053
00054
00055
00056
00057
00058 inline virtual FTGlyph* MakeGlyph( unsigned int g);
00059
00060 };
00061
00062
00063 #endif // __FTGLPixmapFont__
00064