blob: 9b6faedfdc71aafde3889642b588d81b136d6e03 [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: FTGLPolygonFont.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&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>FTGLPolygonFont.cpp</h1><a href="FTGLPolygonFont_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#include "<a class="code" href="FTGLPolygonFont_8h.html">FTGLPolygonFont.h</a>"</span>
00002 <span class="preprocessor">#include "<a class="code" href="FTPolyGlyph_8h.html">FTPolyGlyph.h</a>"</span>
00003
00004
<a name="l00005"></a><a class="code" href="classFTGLPolygonFont.html#a0">00005</a> <a class="code" href="classFTGLPolygonFont.html#a0">FTGLPolygonFont::FTGLPolygonFont</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* fontFilePath)
00006 : <a class="code" href="classFTFont.html">FTFont</a>( fontFilePath)
00007 {}
00008
00009
<a name="l00010"></a><a class="code" href="classFTGLPolygonFont.html#a1">00010</a> <a class="code" href="classFTGLPolygonFont.html#a0">FTGLPolygonFont::FTGLPolygonFont</a>( <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *pBufferBytes, size_t bufferSizeInBytes)
00011 : <a class="code" href="classFTFont.html">FTFont</a>( pBufferBytes, bufferSizeInBytes)
00012 {}
00013
00014
<a name="l00015"></a><a class="code" href="classFTGLPolygonFont.html#a2">00015</a> <a class="code" href="classFTGLPolygonFont.html#a2">FTGLPolygonFont::~FTGLPolygonFont</a>()
00016 {}
00017
00018
00019 <a class="code" href="classFTGlyph.html">FTGlyph</a>* <a class="code" href="classFTFont.html#b0">FTGLPolygonFont::MakeGlyph</a>( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> g)
00020 {
00021 FT_GlyphSlot ftGlyph = face.<a class="code" href="classFTFace.html#a10">Glyph</a>( g, FT_LOAD_NO_HINTING);
00022
00023 <span class="keywordflow">if</span>( ftGlyph)
00024 {
00025 <a class="code" href="classFTPolyGlyph.html">FTPolyGlyph</a>* tempGlyph = <span class="keyword">new</span> <a class="code" href="classFTPolyGlyph.html">FTPolyGlyph</a>( ftGlyph, useDisplayLists);
00026 <span class="keywordflow">return</span> tempGlyph;
00027 }
00028
00029 <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>();
00030 <span class="keywordflow">return</span> NULL;
00031 }
00032
00033
</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>