FTPolyGlyph.h

Go to the documentation of this file.
00001 #ifndef     __FTPolyGlyph__
00002 #define     __FTPolyGlyph__
00003 
00004 
00005 #include <ft2build.h>
00006 #include FT_FREETYPE_H
00007 #include FT_GLYPH_H
00008 
00009 #include "FTGL.h"
00010 #include "FTGlyph.h"
00011 
00012 class FTVectoriser;
00013 
00014 /**
00015  * FTPolyGlyph is a specialisation of FTGlyph for creating tessellated
00016  * polygon glyphs.
00017  * 
00018  * @see FTGlyphContainer
00019  * @see FTVectoriser
00020  *
00021  */
00022 class FTGL_EXPORT FTPolyGlyph : public FTGlyph
00023 {
00024     public:
00025         /**
00026          * Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.
00027          *
00028          * @param glyph The Freetype glyph to be processed
00029          * @param glyph The Freetype glyph to be processed
00030          * @param useDisplayList Enable or disable the use of Display Lists for this glyph
00031          *                       <code>true</code> turns ON display lists.
00032          *                       <code>false</code> turns OFF display lists.
00033          */
00034         FTPolyGlyph( FT_GlyphSlot glyph, bool useDisplayList);
00035 
00036         /**
00037          * Destructor
00038          */
00039         virtual ~FTPolyGlyph();
00040 
00041         /**
00042          * Renders this glyph at the current pen position.
00043          *
00044          * @param pen   The current pen position.
00045          * @return      The advance distance for this glyph.
00046          */
00047         virtual const FTPoint& Render( const FTPoint& pen);
00048         
00049     private:
00050         /**
00051          * OpenGL display list
00052          */
00053         GLuint glList;
00054     
00055 };
00056 
00057 
00058 #endif  //  __FTPolyGlyph__
00059 

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