blob: d776da32eb9385d523a3af5f39ff83a88678dc4c [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>FTGL: FTGLTextureFont class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<h1>FTGLTextureFont Class Reference</h1><code>#include &lt;<a class="el" href="FTGLTextureFont_8h-source.html">FTGLTextureFont.h</a>&gt;</code>
<p>
<p>Inheritance diagram for FTGLTextureFont:
<p><center><img src="classFTGLTextureFont.png" usemap="#FTGLTextureFont_map" border="0" alt=""></center>
<map name="FTGLTextureFont_map">
<area href="classFTFont.html" alt="FTFont" shape="rect" coords="0,0,110,24">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
FTGLTextureFont is a specialisation of the <a class="el" href="classFTFont.html">FTFont</a> class for handling Texture mapped fonts.
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classFTFont.html">FTFont</a> </dd></dl>
<p>
<p>
Definition at line <a class="el" href="FTGLTextureFont_8h-source.html#l00017">17</a> of file <a class="el" href="FTGLTextureFont_8h-source.html">FTGLTextureFont.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFTGLTextureFont.html#a0">FTGLTextureFont</a> (const char *fontFilePath)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Open and read a font file. <a href="#a0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFTGLTextureFont.html#a1">FTGLTextureFont</a> (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Open and read a font from a buffer in memory. <a href="#a1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFTGLTextureFont.html#a2">~FTGLTextureFont</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor. <a href="#a2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFTGLTextureFont.html#a3">FaceSize</a> (const unsigned int size, const unsigned int res=72)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the char size for the current face. <a href="#a3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFTGLTextureFont.html#a4">Render</a> (const char *string)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Renders a string of characters. <a href="#a4"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="classFTGLTextureFont.html#a5">Render</a> (const wchar_t *string)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Renders a string of characters. <a href="#a5"></a><br><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="a0" doxytag="FTGLTextureFont::FTGLTextureFont" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> FTGLTextureFont::FTGLTextureFont </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const char *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>fontFilePath</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Open and read a font file.
<p>
Sets Error flag.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>fontFilePath</em>&nbsp;</td><td>font file path. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="FTGLTextureFont_8cpp-source.html#l00021">21</a> of file <a class="el" href="FTGLTextureFont_8cpp-source.html">FTGLTextureFont.cpp</a>.
<p>
References <a class="el" href="FTFace_8h-source.html#l00108">FTFace::GlyphCount()</a>. </td>
</tr>
</table>
<a class="anchor" name="a1" doxytag="FTGLTextureFont::FTGLTextureFont" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> FTGLTextureFont::FTGLTextureFont </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const unsigned char *&nbsp;</td>
<td class="mdname" nowrap> <em>pBufferBytes</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>size_t&nbsp;</td>
<td class="mdname" nowrap> <em>bufferSizeInBytes</em></td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Open and read a font from a buffer in memory.
<p>
Sets Error flag.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>pBufferBytes</em>&nbsp;</td><td>the in-memory buffer </td></tr>
<tr><td valign=top><em>bufferSizeInBytes</em>&nbsp;</td><td>the length of the buffer in bytes </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="FTGLTextureFont_8cpp-source.html#l00036">36</a> of file <a class="el" href="FTGLTextureFont_8cpp-source.html">FTGLTextureFont.cpp</a>.
<p>
References <a class="el" href="FTFace_8h-source.html#l00108">FTFace::GlyphCount()</a>. </td>
</tr>
</table>
<a class="anchor" name="a2" doxytag="FTGLTextureFont::~FTGLTextureFont" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> FTGLTextureFont::~<a class="el" href="classFTGLTextureFont.html">FTGLTextureFont</a> </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Destructor.
<p>
<p>
Definition at line <a class="el" href="FTGLTextureFont_8cpp-source.html#l00051">51</a> of file <a class="el" href="FTGLTextureFont_8cpp-source.html">FTGLTextureFont.cpp</a>.
<p>
References <a class="el" href="FTVector_8h-source.html#l00049">FTVector&lt; GLuint &gt;::size()</a>. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="a3" doxytag="FTGLTextureFont::FaceSize" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> bool FTGLTextureFont::FaceSize </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const unsigned int&nbsp;</td>
<td class="mdname" nowrap> <em>size</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const unsigned int&nbsp;</td>
<td class="mdname" nowrap> <em>res</em> = 72</td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set the char size for the current face.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>size</em>&nbsp;</td><td>the face size in points (1/72 inch) </td></tr>
<tr><td valign=top><em>res</em>&nbsp;</td><td>the resolution of the target device. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if size was set correctly </dd></dl>
<p>
Reimplemented from <a class="el" href="classFTFont.html#a8">FTFont</a>.
<p>
Definition at line <a class="el" href="FTGLTextureFont_8cpp-source.html#l00140">140</a> of file <a class="el" href="FTGLTextureFont_8cpp-source.html">FTGLTextureFont.cpp</a>.
<p>
References <a class="el" href="FTVector_8h-source.html#l00094">FTVector&lt; GLuint &gt;::clear()</a>, <a class="el" href="FTVector_8h-source.html#l00079">FTVector&lt; GLuint &gt;::empty()</a>, <a class="el" href="FTFont_8cpp-source.html#l00088">FTFont::FaceSize()</a>, <a class="el" href="FTFace_8h-source.html#l00108">FTFace::GlyphCount()</a>, and <a class="el" href="FTVector_8h-source.html#l00049">FTVector&lt; GLuint &gt;::size()</a>. </td>
</tr>
</table>
<a class="anchor" name="a5" doxytag="FTGLTextureFont::Render" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void FTGLTextureFont::Render </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const wchar_t *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>string</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Renders a string of characters.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>string</em>&nbsp;</td><td>wchar_t string to be output. </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="classFTFont.html#a20">FTFont</a>.
<p>
Definition at line <a class="el" href="FTGLTextureFont_8cpp-source.html#l00168">168</a> of file <a class="el" href="FTGLTextureFont_8cpp-source.html">FTGLTextureFont.cpp</a>.
<p>
References <a class="el" href="FTFont_8cpp-source.html#l00245">FTFont::Render()</a>, and <a class="el" href="FTTextureGlyph_8h-source.html#l00055">FTTextureGlyph::ResetActiveTexture()</a>. </td>
</tr>
</table>
<a class="anchor" name="a4" doxytag="FTGLTextureFont::Render" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> void FTGLTextureFont::Render </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">const char *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>string</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Renders a string of characters.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>string</em>&nbsp;</td><td>'C' style string to be output. </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="classFTFont.html#a19">FTFont</a>.
<p>
Definition at line <a class="el" href="FTGLTextureFont_8cpp-source.html#l00153">153</a> of file <a class="el" href="FTGLTextureFont_8cpp-source.html">FTGLTextureFont.cpp</a>.
<p>
References <a class="el" href="FTFont_8cpp-source.html#l00245">FTFont::Render()</a>, and <a class="el" href="FTTextureGlyph_8h-source.html#l00055">FTTextureGlyph::ResetActiveTexture()</a>. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="FTGLTextureFont_8h-source.html">FTGLTextureFont.h</a><li><a class="el" href="FTGLTextureFont_8cpp-source.html">FTGLTextureFont.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sun Dec 5 22:24:07 2004 for FTGL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.6 </small></address>
</body>
</html>