aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03324.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a03324.html')
-rw-r--r--docs/doxygen/nel/a03324.html319
1 files changed, 319 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03324.html b/docs/doxygen/nel/a03324.html
new file mode 100644
index 00000000..c06ff8a3
--- /dev/null
+++ b/docs/doxygen/nel/a03324.html
@@ -0,0 +1,319 @@
+<!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>NeL: NL3D::CRenderStringBuffer class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</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="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NL3D::CRenderStringBuffer Class Reference</h1><code>#include &lt;<a class="el" href="a05596.html">computed_string.h</a>&gt;</code>
+<p>
+<p>Inheritance diagram for NL3D::CRenderStringBuffer:
+<p><center><img src="a03324.png" usemap="#NL3D::CRenderStringBuffer_map" border="0" alt=""></center>
+<map name="NL3D::CRenderStringBuffer_map">
+<area href="a03941.html" alt="NL3D::URenderStringBuffer" shape="rect" coords="0,0,168,24">
+</map>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+A Buffer to render batch of computed string.
+<p>
+
+<p>
+Definition at line <a class="el" href="a05596.html#l00051">51</a> of file <a class="el" href="a05596.html">computed_string.h</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>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffera0">CRenderStringBuffer</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffera1">flush</a> (<a class="el" href="a02434.html">IDriver</a> &amp;driver, <a class="el" href="a02839.html">CMaterial</a> *fontMat)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">render and make empty the render string buffer. see <a class="el" href="a02397.html#NL3D_1_1CComputedStringa3">CComputedString::render2DClip()</a> <a href="#NL3D_1_1CRenderStringBuffera1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffera2">flushUnProjected</a> (<a class="el" href="a02434.html">IDriver</a> &amp;driver, <a class="el" href="a02839.html">CMaterial</a> *fontMat, bool zwrite)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffera3">~CRenderStringBuffer</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffero0">NumQuads</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03692.html">CVertexBuffer</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffero1">Vertices</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NL3D_1_1CRenderStringBuffera0" doxytag="NL3D::CRenderStringBuffer::CRenderStringBuffer" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NL3D::CRenderStringBuffer::CRenderStringBuffer </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05595.html#l00590">590</a> of file <a class="el" href="a05595.html">computed_string.cpp</a>.
+<p>
+References <a class="el" href="a05596.html#l00055">NumQuads</a>, and <a class="el" href="a06710.html#l00169">NL3D::CVertexBuffer::setVertexFormat()</a>.
+<p>
+<div class="fragment"><pre>00591 {
+00592 <span class="comment">// Use color per vertex</span>
+00593 <a class="code" href="a03324.html#NL3D_1_1CRenderStringBuffero1">Vertices</a>.setVertexFormat (CVertexBuffer::PositionFlag | CVertexBuffer::TexCoord0Flag | CVertexBuffer::PrimaryColorFlag);
+00594 <a class="code" href="a03324.html#NL3D_1_1CRenderStringBuffero0">NumQuads</a>= 0;
+00595 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CRenderStringBuffera3" doxytag="NL3D::CRenderStringBuffer::~CRenderStringBuffer" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NL3D::CRenderStringBuffer::~<a class="el" href="a03324.html">CRenderStringBuffer</a> </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05595.html#l00599">599</a> of file <a class="el" href="a05595.html">computed_string.cpp</a>.
+<p>
+<div class="fragment"><pre>00600 {
+00601 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CRenderStringBuffera1" doxytag="NL3D::CRenderStringBuffer::flush" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CRenderStringBuffer::flush </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02434.html">IDriver</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>driver</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02839.html">CMaterial</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>fontMat</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+render and make empty the render string buffer. see <a class="el" href="a02397.html#NL3D_1_1CComputedStringa3">CComputedString::render2DClip()</a>
+<p>
+
+<p>
+Definition at line <a class="el" href="a05595.html#l00605">605</a> of file <a class="el" href="a05595.html">computed_string.cpp</a>.
+<p>
+References <a class="el" href="a02434.html#NL3D_1_1IDrivera2">NL3D::IDriver::activeVertexBuffer()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera38">NL3D::IDriver::getWindowSize()</a>, <a class="el" href="a05596.html#l00055">NumQuads</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera54">NL3D::IDriver::renderQuads()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera60">NL3D::IDriver::setFrustum()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera68">NL3D::IDriver::setupModelMatrix()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera72">NL3D::IDriver::setupViewMatrix()</a>, <a class="el" href="a05641.html#l00099">NL3D::CMaterial::setZFunc()</a>, <a class="el" href="a05641.html#l00105">NL3D::CMaterial::setZWrite()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a06503.html#l00398">NL3D::CTextContextUser::flushRenderBuffer()</a>.
+<p>
+<div class="fragment"><pre>00606 {
+00607 <span class="keywordflow">if</span>(<a class="code" href="a03324.html#NL3D_1_1CRenderStringBuffero0">NumQuads</a>==0)
+00608 <span class="keywordflow">return</span>;
+00609
+00610 <span class="comment">// get window size</span>
+00611 <a class="code" href="a04558.html#a11">uint32</a> wndWidth, wndHeight;
+00612 driver.getWindowSize(wndWidth, wndHeight);
+00613
+00614 <span class="comment">// **** setup driver context</span>
+00615 driver.setFrustum(0, (<span class="keywordtype">float</span>)wndWidth, 0, (<span class="keywordtype">float</span>)wndHeight, -1, 1, <span class="keyword">false</span>); <span class="comment">// resX/resY</span>
+00616
+00617 <span class="comment">// view matrix and model matrix &lt;-&gt; identity</span>
+00618 driver.setupViewMatrix (CMatrix::Identity);
+00619 driver.setupModelMatrix (CMatrix::Identity);
+00620
+00621 <span class="comment">// setup material</span>
+00622 fontMat-&gt;setZFunc (CMaterial::always);
+00623 fontMat-&gt;setZWrite (<span class="keyword">false</span>);
+00624
+00625 <span class="comment">// setup vertices clipped</span>
+00626 driver.activeVertexBuffer (Vertices);
+00627
+00628 <span class="comment">// *** rendering</span>
+00629 driver.renderQuads (*fontMat, 0, NumQuads );
+00630
+00631 <span class="comment">// *** reset</span>
+00632 <a class="code" href="a03324.html#NL3D_1_1CRenderStringBuffero0">NumQuads</a>= 0;
+00633 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CRenderStringBuffera2" doxytag="NL3D::CRenderStringBuffer::flushUnProjected" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NL3D::CRenderStringBuffer::flushUnProjected </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02434.html">IDriver</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>driver</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap><a class="el" href="a02839.html">CMaterial</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>fontMat</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>zwrite</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+render and make empty the render string buffer. see CComputedString::render2DProjected() The driver view and model matrices have to be setuped as material zbuffer flags by the user. This method only render string quads.
+<p>
+Definition at line <a class="el" href="a05595.html#l00637">637</a> of file <a class="el" href="a05595.html">computed_string.cpp</a>.
+<p>
+References <a class="el" href="a02434.html#NL3D_1_1IDrivera2">NL3D::IDriver::activeVertexBuffer()</a>, <a class="el" href="a05596.html#l00055">NumQuads</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera54">NL3D::IDriver::renderQuads()</a>, <a class="el" href="a05641.html#l00099">NL3D::CMaterial::setZFunc()</a>, and <a class="el" href="a05641.html#l00105">NL3D::CMaterial::setZWrite()</a>.
+<p>
+Referenced by <a class="el" href="a06503.html#l00411">NL3D::CTextContextUser::flushRenderBufferUnProjected()</a>.
+<p>
+<div class="fragment"><pre>00638 {
+00639 <span class="keywordflow">if</span>(<a class="code" href="a03324.html#NL3D_1_1CRenderStringBuffero0">NumQuads</a>==0)
+00640 <span class="keywordflow">return</span>;
+00641
+00642 <span class="comment">// setup material</span>
+00643 fontMat-&gt;setZFunc (CMaterial::lessequal);
+00644 fontMat-&gt;setZWrite (zwrite);
+00645
+00646 <span class="comment">// setup vertices clipped</span>
+00647 driver.activeVertexBuffer (Vertices);
+00648
+00649 <span class="comment">// *** rendering</span>
+00650 driver.renderQuads (*fontMat, 0, NumQuads );
+00651
+00652 <span class="comment">// *** reset</span>
+00653 <a class="code" href="a03324.html#NL3D_1_1CRenderStringBuffero0">NumQuads</a>= 0;
+00654 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CRenderStringBuffero0" doxytag="NL3D::CRenderStringBuffer::NumQuads" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffero0">NL3D::CRenderStringBuffer::NumQuads</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05596.html#l00055">55</a> of file <a class="el" href="a05596.html">computed_string.h</a>.
+<p>
+Referenced by <a class="el" href="a05595.html#l00590">CRenderStringBuffer()</a>, <a class="el" href="a05595.html#l00605">flush()</a>, <a class="el" href="a06503.html#l00398">NL3D::CTextContextUser::flushRenderBuffer()</a>, <a class="el" href="a06503.html#l00411">NL3D::CTextContextUser::flushRenderBufferUnProjected()</a>, <a class="el" href="a05595.html#l00637">flushUnProjected()</a>, <a class="el" href="a05595.html#l00183">NL3D::CComputedString::render2DClip()</a>, and <a class="el" href="a05595.html#l00378">NL3D::CComputedString::render2DUnProjected()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CRenderStringBuffero1" doxytag="NL3D::CRenderStringBuffer::Vertices" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a03692.html">CVertexBuffer</a> <a class="el" href="a03324.html#NL3D_1_1CRenderStringBuffero1">NL3D::CRenderStringBuffer::Vertices</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a05596.html#l00054">54</a> of file <a class="el" href="a05596.html">computed_string.h</a>.
+<p>
+Referenced by <a class="el" href="a05595.html#l00183">NL3D::CComputedString::render2DClip()</a>, and <a class="el" href="a05595.html#l00378">NL3D::CComputedString::render2DUnProjected()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a05596.html">computed_string.h</a><li><a class="el" href="a05595.html">computed_string.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:36:39 2004 for NeL 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>