<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>FTGL: FTPolygonFont Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Data Fields</span></a></li> </ul> </div> </div> <div class="contents"> <h1>FTPolygonFont Class Reference</h1><!-- doxytag: class="FTPolygonFont" --><!-- doxytag: inherits="FTFont" --> <p><a class="el" href="classFTPolygonFont.html" title="FTPolygonFont is a specialisation of the FTFont class for handling tesselated Polygon...">FTPolygonFont</a> is a specialisation of the <a class="el" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> class for handling tesselated Polygon Mesh fonts. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="FTGLPolygonFont_8h_source.html">FTGLPolygonFont.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FTPolygonFont:</div> <div class="dynsection"> <div class="center"> <img src="classFTPolygonFont.png" usemap="#FTPolygonFont_map" alt=""/> <map id="FTPolygonFont_map" name="FTPolygonFont_map"> <area href="classFTFont.html" alt="FTFont" shape="rect" coords="0,0,98,24"/> </map> </div> </div> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTPolygonFont.html#a69d65f22dcbe492b44cc0c7340d94d53">FTPolygonFont</a> (const char *fontFilePath)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open and read a font file. <a href="#a69d65f22dcbe492b44cc0c7340d94d53"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTPolygonFont.html#a462ed082228153dceec87ec1453e85b2">FTPolygonFont</a> (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open and read a font from a buffer in memory. <a href="#a462ed082228153dceec87ec1453e85b2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTPolygonFont.html#ad71644a0d27c8f1791b9823cc7153cab">~FTPolygonFont</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ad71644a0d27c8f1791b9823cc7153cab"></a><br/></td></tr> <tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classFTGlyph.html">FTGlyph</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTPolygonFont.html#a3ce00692583b8cdddfffbe284c42ccf6">MakeGlyph</a> (FT_GlyphSlot slot)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a glyph of the correct type. <a href="#a3ce00692583b8cdddfffbe284c42ccf6"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><a class="el" href="classFTPolygonFont.html" title="FTPolygonFont is a specialisation of the FTFont class for handling tesselated Polygon...">FTPolygonFont</a> is a specialisation of the <a class="el" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> class for handling tesselated Polygon Mesh fonts. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classFTFont.html" title="FTFont is the public interface for the FTGL library.">FTFont</a> </dd></dl> <p>Definition at line <a class="el" href="FTGLPolygonFont_8h_source.html#l00045">45</a> of file <a class="el" href="FTGLPolygonFont_8h_source.html">FTGLPolygonFont.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a69d65f22dcbe492b44cc0c7340d94d53"></a><!-- doxytag: member="FTPolygonFont::FTPolygonFont" ref="a69d65f22dcbe492b44cc0c7340d94d53" args="(const char *fontFilePath)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTPolygonFont::FTPolygonFont </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>fontFilePath</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Open and read a font file. </p> <p>Sets Error flag.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>fontFilePath</em> </td><td>font file path. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a462ed082228153dceec87ec1453e85b2"></a><!-- doxytag: member="FTPolygonFont::FTPolygonFont" ref="a462ed082228153dceec87ec1453e85b2" args="(const unsigned char *pBufferBytes, size_t bufferSizeInBytes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTPolygonFont::FTPolygonFont </td> <td>(</td> <td class="paramtype">const unsigned char * </td> <td class="paramname"> <em>pBufferBytes</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>bufferSizeInBytes</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Open and read a font from a buffer in memory. </p> <p>Sets Error flag. The buffer is owned by the client and is NOT copied by <a class="el" href="namespaceFTGL.html">FTGL</a>. The pointer must be valid while using <a class="el" href="namespaceFTGL.html">FTGL</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pBufferBytes</em> </td><td>the in-memory buffer </td></tr> <tr><td valign="top"></td><td valign="top"><em>bufferSizeInBytes</em> </td><td>the length of the buffer in bytes </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ad71644a0d27c8f1791b9823cc7153cab"></a><!-- doxytag: member="FTPolygonFont::~FTPolygonFont" ref="ad71644a0d27c8f1791b9823cc7153cab" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTPolygonFont::~FTPolygonFont </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a3ce00692583b8cdddfffbe284c42ccf6"></a><!-- doxytag: member="FTPolygonFont::MakeGlyph" ref="a3ce00692583b8cdddfffbe284c42ccf6" args="(FT_GlyphSlot slot)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="el" href="classFTGlyph.html">FTGlyph</a>* FTPolygonFont::MakeGlyph </td> <td>(</td> <td class="paramtype">FT_GlyphSlot </td> <td class="paramname"> <em>slot</em></td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Construct a glyph of the correct type. </p> <p>Clients must override the function and return their specialised <a class="el" href="classFTGlyph.html" title="FTGlyph is the base class for FTGL glyphs.">FTGlyph</a>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>A FreeType glyph slot. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>An FT****Glyph or <code>null</code> on failure. </dd></dl> <p>Implements <a class="el" href="classFTFont.html#a07f8bef6c3bd52e7d905e6db17c9b8e6">FTFont</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="FTGLPolygonFont_8h_source.html">FTGLPolygonFont.h</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>