<!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: FTExtrudeFont 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.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">FTGL <span id="projectnumber">2.1.3~rc5</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <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 id="navrow2" class="tabs2"> <ul class="tablist"> <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="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> </div> <div class="headertitle"> <h1>FTExtrudeFont Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="FTExtrudeFont" --><!-- doxytag: inherits="FTFont" --> <p><a class="el" href="classFTExtrudeFont.html" title="FTExtrudeFont is a specialisation of the FTFont class for handling extruded Polygon fonts...">FTExtrudeFont</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 extruded Polygon fonts. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="FTGLExtrdFont_8h_source.html">FTGLExtrdFont.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FTExtrudeFont:</div> <div class="dyncontent"> <div class="center"> <img src="classFTExtrudeFont.png" usemap="#FTExtrudeFont_map" alt=""/> <map id="FTExtrudeFont_map" name="FTExtrudeFont_map"> <area href="classFTFont.html" alt="FTFont" shape="rect" coords="0,0,95,24"/> </map> </div></div> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTExtrudeFont.html#a9c1d32ca35a021629bc7c7039fdba359">FTExtrudeFont</a> (const char *fontFilePath)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open and read a font file. <a href="#a9c1d32ca35a021629bc7c7039fdba359"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTExtrudeFont.html#a277554f3390671132f43432c426b8b4d">FTExtrudeFont</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="#a277554f3390671132f43432c426b8b4d"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTExtrudeFont.html#af5dcb9d91f560903353bd6ac445bbb04">~FTExtrudeFont</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#af5dcb9d91f560903353bd6ac445bbb04"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> 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="classFTExtrudeFont.html#a096fcfe612dc98f49dbc818ac47d2680">MakeGlyph</a> (FT_GlyphSlot slot)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a glyph of the correct type. <a href="#a096fcfe612dc98f49dbc818ac47d2680"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classFTExtrudeFont.html" title="FTExtrudeFont is a specialisation of the FTFont class for handling extruded Polygon fonts...">FTExtrudeFont</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 extruded Polygon 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> <dd> <a class="el" href="classFTPolygonFont.html" title="FTPolygonFont is a specialisation of the FTFont class for handling tesselated Polygon Mesh fonts...">FTPolygonFont</a> </dd></dl> <p>Definition at line <a class="el" href="FTGLExtrdFont_8h_source.html#l00046">46</a> of file <a class="el" href="FTGLExtrdFont_8h_source.html">FTGLExtrdFont.h</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a9c1d32ca35a021629bc7c7039fdba359"></a><!-- doxytag: member="FTExtrudeFont::FTExtrudeFont" ref="a9c1d32ca35a021629bc7c7039fdba359" args="(const char *fontFilePath)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTExtrudeFont::FTExtrudeFont </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 class="params"> <tr><td class="paramname">fontFilePath</td><td>font file path. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a277554f3390671132f43432c426b8b4d"></a><!-- doxytag: member="FTExtrudeFont::FTExtrudeFont" ref="a277554f3390671132f43432c426b8b4d" args="(const unsigned char *pBufferBytes, size_t bufferSizeInBytes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTExtrudeFont::FTExtrudeFont </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> </tr> <tr> <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 class="params"> <tr><td class="paramname">pBufferBytes</td><td>the in-memory buffer </td></tr> <tr><td class="paramname">bufferSizeInBytes</td><td>the length of the buffer in bytes </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="af5dcb9d91f560903353bd6ac445bbb04"></a><!-- doxytag: member="FTExtrudeFont::~FTExtrudeFont" ref="af5dcb9d91f560903353bd6ac445bbb04" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTExtrudeFont::~FTExtrudeFont </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="a096fcfe612dc98f49dbc818ac47d2680"></a><!-- doxytag: member="FTExtrudeFont::MakeGlyph" ref="a096fcfe612dc98f49dbc818ac47d2680" 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>* FTExtrudeFont::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 class="params"> <tr><td class="paramname">slot</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="FTGLExtrdFont_8h_source.html">FTGLExtrdFont.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Wed Feb 9 2011 for FTGL by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>