<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Crystal Space 1.2.1: csGLFontCache Class Reference (Crystal Space 1.2.1 Public API Reference)</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head"> <tr height="59"> <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td> <td class="head"><h2>Public API Reference</h2></td> </tr> <tr height="11"> <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td> </tr> </table> <div class="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <h1>csGLFontCache Class Reference<br> <small> [<a class="el" href="group__plugincommon.html">Common Plugin Classes</a>]</small> </h1><!-- doxytag: class="csGLFontCache" --><!-- doxytag: inherits="csFontCache" -->OpenGL font cache. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="glfontcache_8h-source.html">csplugincommon/opengl/glfontcache.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for csGLFontCache:</div> <div class="dynsection"> <p><center><img src="classcsGLFontCache__inherit__graph.png" border="0" usemap="#csGLFontCache__inherit__map" alt="Inheritance graph"></center> <map name="csGLFontCache__inherit__map"> <area shape="rect" href="classcsFontCache.html" title="A cache for font glyphs." alt="" coords="15,7,119,33"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="classcsGLFontCache-members.html">List of all members.</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">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsGLFontCache.html#8de4859b69aa14ac6f4df31346ca952d">DumpFontCache</a> (<a class="el" href="classcsRefArray.html">csRefArray</a>< <a class="el" href="structiImage.html">iImage</a> > &pages)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create images of all the texture pages used for caching. <a href="#8de4859b69aa14ac6f4df31346ca952d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsGLFontCache.html#d1bd55f0500e1b87040da459fb2d9183">FlushText</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Flush the cached text vertices. <a href="#d1bd55f0500e1b87040da459fb2d9183"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsGLFontCache.html#48a899fcc6558989b2b0c7afed2915fd">Setup</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Read configuration etc. <a href="#48a899fcc6558989b2b0c7afed2915fd"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcsGLFontCache.html#bfffe096ca17566c5d5db97e2ca9cf0b">WriteString</a> (<a class="el" href="structiFont.html">iFont</a> *font, int pen_x, int pen_y, int fg, int bg, const void *text, bool isWide, <a class="el" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> flags)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Draw a string using OpenGL, where the baseline starts at x,y. <a href="#bfffe096ca17566c5d5db97e2ca9cf0b"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> OpenGL font cache. <p>Definition at line <a class="el" href="glfontcache_8h-source.html#l00044">44</a> of file <a class="el" href="glfontcache_8h-source.html">glfontcache.h</a>.</p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="8de4859b69aa14ac6f4df31346ca952d"></a><!-- doxytag: member="csGLFontCache::DumpFontCache" ref="8de4859b69aa14ac6f4df31346ca952d" args="(csRefArray< iImage > &pages)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void csGLFontCache::DumpFontCache </td> <td>(</td> <td class="paramtype"><a class="el" href="classcsRefArray.html">csRefArray</a>< <a class="el" href="structiImage.html">iImage</a> > & </td> <td class="paramname"> <em>pages</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Create images of all the texture pages used for caching. <p> </div> </div><p> <a class="anchor" name="d1bd55f0500e1b87040da459fb2d9183"></a><!-- doxytag: member="csGLFontCache::FlushText" ref="d1bd55f0500e1b87040da459fb2d9183" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void csGLFontCache::FlushText </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Flush the cached text vertices. <p> The text writer caches some text (and sets some needed states). Before drawing anything else, the text cache has to be flushed (and the states reset). </div> </div><p> <a class="anchor" name="48a899fcc6558989b2b0c7afed2915fd"></a><!-- doxytag: member="csGLFontCache::Setup" ref="48a899fcc6558989b2b0c7afed2915fd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void csGLFontCache::Setup </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Read configuration etc. <p> </div> </div><p> <a class="anchor" name="bfffe096ca17566c5d5db97e2ca9cf0b"></a><!-- doxytag: member="csGLFontCache::WriteString" ref="bfffe096ca17566c5d5db97e2ca9cf0b" args="(iFont *font, int pen_x, int pen_y, int fg, int bg, const void *text, bool isWide, uint flags)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void csGLFontCache::WriteString </td> <td>(</td> <td class="paramtype"><a class="el" href="structiFont.html">iFont</a> * </td> <td class="paramname"> <em>font</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>pen_x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>pen_y</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>fg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>bg</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const void * </td> <td class="paramname"> <em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>isWide</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__util.html#g91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> </td> <td class="paramname"> <em>flags</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Draw a string using OpenGL, where the baseline starts at x,y. <p> <p>Reimplemented from <a class="el" href="classcsFontCache.html#4f8e363dca268664dab4c7e9df4a851f">csFontCache</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>csplugincommon/opengl/<a class="el" href="glfontcache_8h-source.html">glfontcache.h</a></ul> <hr size="1"><address><small>Generated for Crystal Space 1.2.1 by <a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 </small></address> </div></body> </html>