<!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: FTTextureGlyph 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> </div> <div class="headertitle"> <h1>FTTextureGlyph Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="FTTextureGlyph" --><!-- doxytag: inherits="FTGlyph" --> <p><a class="el" href="classFTTextureGlyph.html" title="FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs.">FTTextureGlyph</a> is a specialisation of <a class="el" href="classFTGlyph.html" title="FTGlyph is the base class for FTGL glyphs.">FTGlyph</a> for creating texture glyphs. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="FTTextureGlyph_8h_source.html">FTTextureGlyph.h</a>></code></p> <div class="dynheader"> Inheritance diagram for FTTextureGlyph:</div> <div class="dyncontent"> <div class="center"> <img src="classFTTextureGlyph.png" usemap="#FTTextureGlyph_map" alt=""/> <map id="FTTextureGlyph_map" name="FTTextureGlyph_map"> <area href="classFTGlyph.html" alt="FTGlyph" shape="rect" coords="0,0,102,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="classFTTextureGlyph.html#a4e09ffe9a4cca361ea8052411c114b69">FTTextureGlyph</a> (FT_GlyphSlot glyph, int id, int xOffset, int yOffset, int width, int height)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a4e09ffe9a4cca361ea8052411c114b69"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTTextureGlyph.html#ab0467ed99fc200ba43f2b0fb30f99eb9">~FTTextureGlyph</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#ab0467ed99fc200ba43f2b0fb30f99eb9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual const <a class="el" href="classFTPoint.html">FTPoint</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classFTTextureGlyph.html#a23d91684651a5cc913e6232c60dc58f4">Render</a> (const <a class="el" href="classFTPoint.html">FTPoint</a> &pen, int renderMode)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Render this glyph at the current pen position. <a href="#a23d91684651a5cc913e6232c60dc58f4"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p><a class="el" href="classFTTextureGlyph.html" title="FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs.">FTTextureGlyph</a> is a specialisation of <a class="el" href="classFTGlyph.html" title="FTGlyph is the base class for FTGL glyphs.">FTGlyph</a> for creating texture glyphs. </p> <p>Definition at line <a class="el" href="FTTextureGlyph_8h_source.html#l00043">43</a> of file <a class="el" href="FTTextureGlyph_8h_source.html">FTTextureGlyph.h</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a4e09ffe9a4cca361ea8052411c114b69"></a><!-- doxytag: member="FTTextureGlyph::FTTextureGlyph" ref="a4e09ffe9a4cca361ea8052411c114b69" args="(FT_GlyphSlot glyph, int id, int xOffset, int yOffset, int width, int height)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">FTTextureGlyph::FTTextureGlyph </td> <td>(</td> <td class="paramtype">FT_GlyphSlot </td> <td class="paramname"><em>glyph</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>id</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>xOffset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>yOffset</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>width</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>height</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Constructor. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">glyph</td><td>The Freetype glyph to be processed </td></tr> <tr><td class="paramname">id</td><td>The id of the texture that this glyph will be drawn in </td></tr> <tr><td class="paramname">xOffset</td><td>The x offset into the parent texture to draw this glyph </td></tr> <tr><td class="paramname">yOffset</td><td>The y offset into the parent texture to draw this glyph </td></tr> <tr><td class="paramname">width</td><td>The width of the parent texture </td></tr> <tr><td class="paramname">height</td><td>The height (number of rows) of the parent texture </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ab0467ed99fc200ba43f2b0fb30f99eb9"></a><!-- doxytag: member="FTTextureGlyph::~FTTextureGlyph" ref="ab0467ed99fc200ba43f2b0fb30f99eb9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual FTTextureGlyph::~FTTextureGlyph </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="a23d91684651a5cc913e6232c60dc58f4"></a><!-- doxytag: member="FTTextureGlyph::Render" ref="a23d91684651a5cc913e6232c60dc58f4" args="(const FTPoint &pen, int renderMode)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const <a class="el" href="classFTPoint.html">FTPoint</a>& FTTextureGlyph::Render </td> <td>(</td> <td class="paramtype">const <a class="el" href="classFTPoint.html">FTPoint</a> & </td> <td class="paramname"><em>pen</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>renderMode</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Render this glyph at the current pen position. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">pen</td><td>The current pen position. </td></tr> <tr><td class="paramname">renderMode</td><td>Render mode to display </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The advance distance for this glyph. </dd></dl> <p>Implements <a class="el" href="classFTGlyph.html#abcf3aef56d4bf022f6d95d5e287800df">FTGlyph</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="FTTextureGlyph_8h_source.html">FTTextureGlyph.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>