| <!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: FTGLBufferFont.cpp 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 Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div> |
| <h1>FTGLBufferFont.cpp</h1><a href="FTGLBufferFont_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#include "<a class="code" href="FTGLBufferFont_8h.html">FTGLBufferFont.h</a>"</span> |
| 00002 <span class="preprocessor">#include "<a class="code" href="FTBufferGlyph_8h.html">FTBufferGlyph.h</a>"</span> |
| 00003 |
| 00004 |
| <a name="l00005"></a><a class="code" href="classFTGLBufferFont.html#a0">00005</a> <a class="code" href="classFTGLBufferFont.html#a0">FTGLBufferFont::FTGLBufferFont</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* fontname) |
| 00006 : <a class="code" href="classFTFont.html">FTFont</a>( fontname), |
| 00007 buffer(0) |
| 00008 {} |
| 00009 |
| 00010 |
| <a name="l00011"></a><a class="code" href="classFTGLBufferFont.html#a1">00011</a> <a class="code" href="classFTGLBufferFont.html#a0">FTGLBufferFont::FTGLBufferFont</a>( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBufferBytes, size_t bufferSizeInBytes) |
| 00012 : <a class="code" href="classFTFont.html">FTFont</a>( pBufferBytes, bufferSizeInBytes), |
| 00013 buffer(0) |
| 00014 {} |
| 00015 |
| 00016 |
| <a name="l00017"></a><a class="code" href="classFTGLBufferFont.html#a3">00017</a> <a class="code" href="classFTGLBufferFont.html#a3">FTGLBufferFont::~FTGLBufferFont</a>() |
| 00018 {} |
| 00019 |
| 00020 |
| 00021 <a class="code" href="classFTGlyph.html">FTGlyph</a>* <a class="code" href="classFTFont.html#b0">FTGLBufferFont::MakeGlyph</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> g) |
| 00022 { |
| 00023 FT_GlyphSlot ftGlyph = face.<a class="code" href="classFTFace.html#a10">Glyph</a>( g, FT_LOAD_NO_HINTING); |
| 00024 |
| 00025 <span class="keywordflow">if</span>( ftGlyph) |
| 00026 { |
| 00027 <a class="code" href="classFTBufferGlyph.html">FTBufferGlyph</a>* tempGlyph = <span class="keyword">new</span> <a class="code" href="classFTBufferGlyph.html">FTBufferGlyph</a>( ftGlyph, buffer); |
| 00028 <span class="keywordflow">return</span> tempGlyph; |
| 00029 } |
| 00030 |
| 00031 <a class="code" href="classFTFont.html#p3">err</a> = <a class="code" href="classFTFont.html#p0">face</a>.<a class="code" href="classFTFace.html#a12">Error</a>(); |
| 00032 <span class="keywordflow">return</span> NULL; |
| 00033 } |
| 00034 |
| 00035 |
| <a name="l00036"></a><a class="code" href="classFTGLBufferFont.html#a4">00036</a> <span class="keywordtype">void</span> <a class="code" href="classFTGLBufferFont.html#a4">FTGLBufferFont::Render</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* string) |
| 00037 { |
| 00038 <span class="keywordflow">if</span>( NULL != buffer) |
| 00039 { |
| 00040 <a class="code" href="classFTFont.html#a19">FTFont::Render</a>( string); |
| 00041 } |
| 00042 } |
| 00043 |
| 00044 |
| <a name="l00045"></a><a class="code" href="classFTGLBufferFont.html#a5">00045</a> <span class="keywordtype">void</span> <a class="code" href="classFTGLBufferFont.html#a4">FTGLBufferFont::Render</a>( <span class="keyword">const</span> <span class="keywordtype">wchar_t</span>* string) |
| 00046 { |
| 00047 <span class="keywordflow">if</span>( NULL != buffer) |
| 00048 { |
| 00049 <a class="code" href="classFTFont.html#a19">FTFont::Render</a>( string); |
| 00050 } |
| 00051 } |
| 00052 |
| 00053 |
| </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Dec 5 22:11:47 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> |