blob: dbb55124f0a406b3890eec0ca3384c47dbaed697 [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.h Source File</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.h</h1><a href="FTGLTextureFont_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef __FTGLTextureFont__</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define __FTGLTextureFont__</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#include "<a class="code" href="FTFont_8h.html">FTFont.h</a>"</span>
00005 <span class="preprocessor">#include "<a class="code" href="FTVector_8h.html">FTVector.h</a>"</span>
00006 <span class="preprocessor">#include "<a class="code" href="FTGL_8h.html">FTGL.h</a>"</span>
00007
00008 <span class="keyword">class </span><a class="code" href="classFTTextureGlyph.html">FTTextureGlyph</a>;
00009
00010
<a name="l00017"></a><a class="code" href="classFTGLTextureFont.html">00017</a> <span class="keyword">class </span><a class="code" href="FTGL_8h.html#a3">FTGL_EXPORT</a> FTGLTextureFont : <span class="keyword">public</span> <a class="code" href="classFTFont.html">FTFont</a>
00018 {
00019 <span class="keyword">public</span>:
00025 FTGLTextureFont( <span class="keyword">const</span> <span class="keywordtype">char</span>* fontFilePath);
00026
00033 FTGLTextureFont( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBufferBytes, size_t bufferSizeInBytes);
00034
00038 <span class="keyword">virtual</span> ~FTGLTextureFont();
00039
00047 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classFTFont.html#a9">FaceSize</a>( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> res = 72);
00048
00054 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#a19">Render</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* string);
00055
00061 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classFTFont.html#a19">Render</a>( <span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* string);
00062
00063
00064 <span class="keyword">private</span>:
00071 <span class="keyword">inline</span> <span class="keyword">virtual</span> <a class="code" href="classFTGlyph.html">FTGlyph</a>* <a class="code" href="classFTFont.html#b0">MakeGlyph</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> glyphIndex);
00072
00079 <span class="keyword">inline</span> <span class="keywordtype">void</span> CalculateTextureSize();
00080
00091 <span class="keyword">inline</span> GLuint CreateTexture();
00092
00096 GLsizei maximumGLTextureSize;
00097
00101 GLsizei textureWidth;
00102
00106 GLsizei textureHeight;
00107
00111 <a class="code" href="classFTVector.html">FTVector&lt;GLuint&gt;</a> textureIDList;
00112
00116 <span class="keywordtype">int</span> glyphHeight;
00117
00121 <span class="keywordtype">int</span> glyphWidth;
00122
00127 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> padding;
00128
00132 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numGlyphs;
00133
00136 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> remGlyphs;
00137
00140 <span class="keywordtype">int</span> xOffset;
00141
00144 <span class="keywordtype">int</span> yOffset;
00145
00146 };
00147
00148
00149 <span class="preprocessor">#endif // __FTGLTextureFont__</span>
00150 <span class="preprocessor"></span>
00151
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Dec 5 22:24:06 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>