FTGLExtrdFont.h

Go to the documentation of this file.
00001 #ifndef __FTGLExtrdFont__
00002 #define __FTGLExtrdFont__
00003 
00004 #include "FTFont.h"
00005 #include "FTGL.h"
00006 
00007 class FTGlyph;
00008 
00009 /**
00010  * FTGLExtrdFont is a specialisation of the FTFont class for handling
00011  * extruded Polygon fonts
00012  *
00013  * @see         FTFont
00014  * @see         FTGLPolygonFont
00015  */
00016 class FTGL_EXPORT FTGLExtrdFont : 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         FTGLExtrdFont( 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         FTGLExtrdFont( const unsigned char *pBufferBytes, size_t bufferSizeInBytes);
00033 
00034         /**
00035          * Destructor
00036          */
00037         ~FTGLExtrdFont();
00038                 
00039         /**
00040          * Set the extrusion distance for the font. 
00041          *
00042          * @param d  The extrusion distance.
00043          */
00044         void Depth( float d) { depth = d;}
00045                 
00046     private:
00047         /**
00048          * Construct a FTPolyGlyph.
00049          *
00050          * @param glyphIndex The glyph index NOT the char code.
00051          * @return      An FTExtrdGlyph or <code>null</code> on failure.
00052          */
00053         inline virtual FTGlyph* MakeGlyph( unsigned int glyphIndex);
00054                 
00055         /**
00056          * The extrusion distance for the font. 
00057          */
00058         float depth;
00059 };
00060 
00061 
00062 #endif  //      __FTGLExtrdFont__
00063 

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