<!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: FTTextureFont 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>FTTextureFont Class Reference</h1><!-- doxytag: class="FTTextureFont" --><!-- doxytag: inherits="FTFont" --> <p><a class="el" href="classFTTextureFont.html" title="FTTextureFont is a specialisation of the FTFont class for handling Texture mapped...">FTTextureFont</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 Texture mapped fonts. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="FTGLTextureFont_8h_source.html">FTGLTextureFont.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FTTextureFont:</div> <div class="dynsection"> <div class="center"> <img src="classFTTextureFont.png" usemap="#FTTextureFont_map" alt=""/> <map id="FTTextureFont_map" name="FTTextureFont_map"> <area href="classFTFont.html" alt="FTFont" shape="rect" coords="0,0,94,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="classFTTextureFont.html#aa11644acda0fd096cc65af6e135346bf">FTTextureFont</a> (const char *fontFilePath)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Open and read a font file. <a href="#aa11644acda0fd096cc65af6e135346bf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTTextureFont.html#a435d40b8d0b4fb0932ac54e5399afaae">FTTextureFont</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="#a435d40b8d0b4fb0932ac54e5399afaae"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTTextureFont.html#acfdd9bb8234363690f82853c9e9fa60f">~FTTextureFont</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#acfdd9bb8234363690f82853c9e9fa60f"></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="classFTTextureFont.html#a3873876ac71776fcb9a3afe6e6e726e6">MakeGlyph</a> (FT_GlyphSlot slot)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Construct a glyph of the correct type. <a href="#a3873876ac71776fcb9a3afe6e6e726e6"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p><a class="el" href="classFTTextureFont.html" title="FTTextureFont is a specialisation of the FTFont class for handling Texture mapped...">FTTextureFont</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 Texture mapped 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="FTGLTextureFont_8h_source.html#l00045">45</a> of file <a class="el" href="FTGLTextureFont_8h_source.html">FTGLTextureFont.h</a>.</p> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="aa11644acda0fd096cc65af6e135346bf"></a><!-- doxytag: member="FTTextureFont::FTTextureFont" ref="aa11644acda0fd096cc65af6e135346bf" args="(const char *fontFilePath)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTTextureFont::FTTextureFont </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="a435d40b8d0b4fb0932ac54e5399afaae"></a><!-- doxytag: member="FTTextureFont::FTTextureFont" ref="a435d40b8d0b4fb0932ac54e5399afaae" args="(const unsigned char *pBufferBytes, size_t bufferSizeInBytes)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTTextureFont::FTTextureFont </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="acfdd9bb8234363690f82853c9e9fa60f"></a><!-- doxytag: member="FTTextureFont::~FTTextureFont" ref="acfdd9bb8234363690f82853c9e9fa60f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual FTTextureFont::~FTTextureFont </td> <td>(</td> <td class="paramname"></td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a3873876ac71776fcb9a3afe6e6e726e6"></a><!-- doxytag: member="FTTextureFont::MakeGlyph" ref="a3873876ac71776fcb9a3afe6e6e726e6" 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>* FTTextureFont::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="FTGLTextureFont_8h_source.html">FTGLTextureFont.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>