| <!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: FTGLExtrdFont.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>FTGLExtrdFont.cpp</h1><a href="FTGLExtrdFont_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#include "<a class="code" href="FTGLExtrdFont_8h.html">FTGLExtrdFont.h</a>"</span> |
| 00002 <span class="preprocessor">#include "<a class="code" href="FTExtrdGlyph_8h.html">FTExtrdGlyph.h</a>"</span> |
| 00003 |
| 00004 |
| <a name="l00005"></a><a class="code" href="classFTGLExtrdFont.html#a0">00005</a> <a class="code" href="classFTGLExtrdFont.html#a0">FTGLExtrdFont::FTGLExtrdFont</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* fontFilePath) |
| 00006 : <a class="code" href="classFTFont.html">FTFont</a>( fontFilePath), |
| 00007 depth( 0.0f) |
| 00008 {} |
| 00009 |
| 00010 |
| <a name="l00011"></a><a class="code" href="classFTGLExtrdFont.html#a1">00011</a> <a class="code" href="classFTGLExtrdFont.html#a0">FTGLExtrdFont::FTGLExtrdFont</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 depth( 0.0f) |
| 00014 {} |
| 00015 |
| 00016 |
| <a name="l00017"></a><a class="code" href="classFTGLExtrdFont.html#a2">00017</a> <a class="code" href="classFTGLExtrdFont.html#a2">FTGLExtrdFont::~FTGLExtrdFont</a>() |
| 00018 {} |
| 00019 |
| 00020 |
| 00021 <a class="code" href="classFTGlyph.html">FTGlyph</a>* <a class="code" href="classFTFont.html#b0">FTGLExtrdFont::MakeGlyph</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> glyphIndex) |
| 00022 { |
| 00023 FT_GlyphSlot ftGlyph = face.<a class="code" href="classFTFace.html#a10">Glyph</a>( glyphIndex, FT_LOAD_NO_HINTING); |
| 00024 |
| 00025 <span class="keywordflow">if</span>( ftGlyph) |
| 00026 { |
| 00027 <a class="code" href="classFTExtrdGlyph.html">FTExtrdGlyph</a>* tempGlyph = <span class="keyword">new</span> <a class="code" href="classFTExtrdGlyph.html">FTExtrdGlyph</a>( ftGlyph, depth, useDisplayLists); |
| 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 |
| </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> |