FTGLBitmapFont.h

Go to the documentation of this file.
00001 #ifndef __FTGLBitmapFont__
00002 #define __FTGLBitmapFont__
00003 
00004 #include "FTFont.h"
00005 #include "FTGL.h"
00006 
00007 
00008 class FTGlyph;
00009 
00010 /**
00011  * FTGLBitmapFont is a specialisation of the FTFont class for handling
00012  * Bitmap fonts
00013  *
00014  * @see     FTFont
00015  */
00016 class FTGL_EXPORT FTGLBitmapFont : public FTFont
00017 {
00018     public:
00019         /**
00020          * Open and read a font file. Sets Error flag.
00021          *
00022          * @param fontFilePath  font file path.
00023          */
00024         FTGLBitmapFont( const char* fontFilePath);
00025 
00026         /**
00027          * Open and read a font from a buffer in memory. Sets Error flag.
00028          *
00029          * @param pBufferBytes  the in-memory buffer
00030          * @param bufferSizeInBytes  the length of the buffer in bytes
00031          */
00032         FTGLBitmapFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes);
00033 
00034         /**
00035          * Destructor
00036          */
00037         ~FTGLBitmapFont();
00038         
00039         /**
00040          * Prepare for rendering
00041          */
00042         virtual void PreRender();
00043 
00044         /**
00045          * Cleanup after rendering
00046          */
00047         virtual void PostRender();
00048 
00049     private:
00050         /**
00051          * Construct a FTBitmapGlyph.
00052          *
00053          * @param g The glyph index NOT the char code.
00054          * @return  An FTBitmapGlyph or <code>null</code> on failure.
00055          */
00056         inline virtual FTGlyph* MakeGlyph( unsigned int g);
00057                 
00058 };
00059 #endif  //  __FTGLBitmapFont__

Generated on Tue Jul 5 14:16:15 2011 for ROOT_528-00b_version by  doxygen 1.5.1