FTGLPolygonFont.h

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

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