FTOutlineGlyph.h

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

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