aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03529.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a03529.html')
-rw-r--r--docs/doxygen/nel/a03529.html349
1 files changed, 349 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03529.html b/docs/doxygen/nel/a03529.html
new file mode 100644
index 00000000..bb057e0e
--- /dev/null
+++ b/docs/doxygen/nel/a03529.html
@@ -0,0 +1,349 @@
+<!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::CTileLumel::CStreamBit 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::CTileLumel::CStreamBit Class Reference</h1><code>#include &lt;<a class="el" href="a06547.html">tile_lumel.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+Stream bit class used to compress the shadow map of the patch.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06547.html#l00052">52</a> of file <a class="el" href="a06547.html">tile_lumel.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><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita0">popBack4bits</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pop 4 bits. <a href="#NL3D_1_1CTileLumel_1_1CStreamBita0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita1">popBackBool</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pop a bool. <a href="#NL3D_1_1CTileLumel_1_1CStreamBita1"></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="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita2">pushBack4bits</a> (<a class="el" href="a04558.html#a7">uint8</a> fourBits)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Push 4 bits. <a href="#NL3D_1_1CTileLumel_1_1CStreamBita2"></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="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita3">pushBackBool</a> (bool bBoolean)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Push a bool. <a href="#NL3D_1_1CTileLumel_1_1CStreamBita3"></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="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita4">setPtr</a> (std::vector&lt; <a class="el" href="a04558.html#a7">uint8</a> &gt; *<a class="el" href="a04223.html#a589">buffer</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Init the pointer of the stream. <a href="#NL3D_1_1CTileLumel_1_1CStreamBita4"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Private Attributes</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="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr0">_Offset</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a04558.html#a7">uint8</a> &gt; *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr1">_Vector</a></td></tr>
+
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CTileLumel_1_1CStreamBita0" doxytag="NL3D::CTileLumel::CStreamBit::popBack4bits" ></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#a7">uint8</a> NL3D::CTileLumel::CStreamBit::popBack4bits </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> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Pop 4 bits.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06547.html#l00186">186</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
+<p>
+References <a class="el" href="a06547.html#l00174">popBackBool()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+Referenced by <a class="el" href="a06547.html#l00240">NL3D::CTileLumel::skip()</a>, and <a class="el" href="a06547.html#l00218">NL3D::CTileLumel::unpack()</a>.
+<p>
+<div class="fragment"><pre>00187 {
+00188 <a class="code" href="a04558.html#a7">uint8</a> ret;
+00189 ret=(<a class="code" href="a04558.html#a7">uint8</a>)<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita1">popBackBool</a> ()&lt;&lt;3;
+00190 ret|=(<a class="code" href="a04558.html#a7">uint8</a>)<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita1">popBackBool</a> ()&lt;&lt;2;
+00191 ret|=(<a class="code" href="a04558.html#a7">uint8</a>)<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita1">popBackBool</a> ()&lt;&lt;1;
+00192 ret|=(<a class="code" href="a04558.html#a7">uint8</a>)<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita1">popBackBool</a> ();
+00193 <span class="keywordflow">return</span> ret;
+00194 <span class="comment">/*nlassert (((_Offset+3)&gt;&gt;3)&lt;_Vector-&gt;size());</span>
+00195 <span class="comment"></span>
+00196 <span class="comment"> uint off0=_Offset&gt;&gt;3;</span>
+00197 <span class="comment"> uint off1=off0+1;</span>
+00198 <span class="comment"> _Offset+=4;</span>
+00199 <span class="comment"> return (((*_Vector)[off0]&amp;(0xf&lt;&lt;( _Offset&amp;0x7 )))&gt;&gt;(_Offset&amp;0x7))|</span>
+00200 <span class="comment"> (((*_Vector)[off1]&amp;(0xf&gt;&gt;(8-(_Offset&amp;0x7))))&lt;&lt;(8-(_Offset&amp;0x7)));*/</span>
+00201 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTileLumel_1_1CStreamBita1" doxytag="NL3D::CTileLumel::CStreamBit::popBackBool" ></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"> bool NL3D::CTileLumel::CStreamBit::popBackBool </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> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Pop a bool.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06547.html#l00174">174</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
+<p>
+References <a class="el" href="a06547.html#l00071">_Offset</a>, <a class="el" href="a06547.html#l00070">_Vector</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a06547.html#l00186">popBack4bits()</a>, <a class="el" href="a06547.html#l00240">NL3D::CTileLumel::skip()</a>, and <a class="el" href="a06547.html#l00218">NL3D::CTileLumel::unpack()</a>.
+<p>
+<div class="fragment"><pre>00175 {
+00176 <span class="comment">// Size</span>
+00177 <a class="code" href="a04199.html#a6">nlassert</a> ((_Offset&gt;&gt;3)&lt;<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr1">_Vector</a>-&gt;size());
+00178
+00179 <a class="code" href="a04558.html#a15">uint</a> off=<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr0">_Offset</a>&gt;&gt;3;
+00180 <span class="keywordtype">bool</span> ret=((*_Vector)[off]&amp;(1&lt;&lt;(_Offset&amp;0x7)))!=0;
+00181 _Offset++;
+00182 <span class="keywordflow">return</span> ret;
+00183 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTileLumel_1_1CStreamBita2" doxytag="NL3D::CTileLumel::CStreamBit::pushBack4bits" ></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::CTileLumel::CStreamBit::pushBack4bits </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>fourBits</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Push 4 bits.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06547.html#l00152">152</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
+<p>
+References <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06547.html#l00139">pushBackBool()</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
+<p>
+Referenced by <a class="el" href="a06546.html#l00074">NL3D::CTileLumel::pack()</a>.
+<p>
+<div class="fragment"><pre>00153 {
+00154 <a class="code" href="a04199.html#a6">nlassert</a> (fourBits&lt;0x10);
+00155
+00156 <a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita3">pushBackBool</a> ((fourBits&amp;0x8)!=0);
+00157 <a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita3">pushBackBool</a> ((fourBits&amp;0x4)!=0);
+00158 <a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita3">pushBackBool</a> ((fourBits&amp;0x2)!=0);
+00159 <a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBita3">pushBackBool</a> ((fourBits&amp;0x1)!=0);
+00160
+00161 <span class="comment">/*if (((_Offset+3)&gt;&gt;3)+_Vector-&gt;begin()&gt;=_Vector-&gt;end())</span>
+00162 <span class="comment"> _Vector-&gt;resize (((_Offset+3)&gt;&gt;3)+1);</span>
+00163 <span class="comment"></span>
+00164 <span class="comment"> uint off0=_Offset&gt;&gt;3;</span>
+00165 <span class="comment"> uint off1=off0+1;</span>
+00166 <span class="comment"> (*_Vector)[off0]&amp;=~(0xf&lt;&lt;(_Offset&amp;0x7));</span>
+00167 <span class="comment"> (*_Vector)[off0]|=(((uint)fourBits)&lt;&lt;(_Offset&amp;0x7));</span>
+00168 <span class="comment"> (*_Vector)[off1]&amp;=~(0xf&gt;&gt;(8-(_Offset&amp;0x7)));</span>
+00169 <span class="comment"> (*_Vector)[off1]|=(((uint)fourBits)&gt;&gt;(8-(_Offset&amp;0x7)));</span>
+00170 <span class="comment"> _Offset+=4;*/</span>
+00171 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTileLumel_1_1CStreamBita3" doxytag="NL3D::CTileLumel::CStreamBit::pushBackBool" ></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::CTileLumel::CStreamBit::pushBackBool </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">bool&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>bBoolean</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Push a bool.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06547.html#l00139">139</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
+<p>
+References <a class="el" href="a06547.html#l00071">_Offset</a>, <a class="el" href="a06547.html#l00070">_Vector</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a06546.html#l00074">NL3D::CTileLumel::pack()</a>, and <a class="el" href="a06547.html#l00152">pushBack4bits()</a>.
+<p>
+<div class="fragment"><pre>00140 {
+00141 <span class="comment">// Size</span>
+00142 <span class="keywordflow">if</span> ((<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr0">_Offset</a>&gt;&gt;3)+<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr1">_Vector</a>-&gt;begin()&gt;=<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr1">_Vector</a>-&gt;end())
+00143 <a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr1">_Vector</a>-&gt;resize ((_Offset&gt;&gt;3)+1);
+00144
+00145 <a class="code" href="a04558.html#a15">uint</a> off=<a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr0">_Offset</a>&gt;&gt;3;
+00146 (*_Vector)[off]&amp;=~(1&lt;&lt;(_Offset&amp;0x7));
+00147 (*_Vector)[off]|=(((<a class="code" href="a04558.html#a15">uint</a>)bBoolean)&lt;&lt;(_Offset&amp;0x7));
+00148 _Offset++;
+00149 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTileLumel_1_1CStreamBita4" doxytag="NL3D::CTileLumel::CStreamBit::setPtr" ></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::CTileLumel::CStreamBit::setPtr </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a04558.html#a7">uint8</a> &gt; *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>buffer</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Init the pointer of the stream.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06547.html#l00132">132</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
+<p>
+References <a class="el" href="a06547.html#l00071">_Offset</a>, <a class="el" href="a06547.html#l00070">_Vector</a>, and <a class="el" href="a05646.html#l00649">buffer</a>.
+<p>
+<div class="fragment"><pre>00133 {
+00134 <a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr1">_Vector</a>=<a class="code" href="a04223.html#a589">buffer</a>;
+00135 <a class="code" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr0">_Offset</a>=0;
+00136 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CTileLumel_1_1CStreamBitr0" doxytag="NL3D::CTileLumel::CStreamBit::_Offset" ></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="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr0">NL3D::CTileLumel::CStreamBit::_Offset</a><code> [private]</code>
+ </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="a06547.html#l00071">71</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
+<p>
+Referenced by <a class="el" href="a06547.html#l00174">popBackBool()</a>, <a class="el" href="a06547.html#l00139">pushBackBool()</a>, and <a class="el" href="a06547.html#l00132">setPtr()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CTileLumel_1_1CStreamBitr1" doxytag="NL3D::CTileLumel::CStreamBit::_Vector" ></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"> std::vector&lt;<a class="el" href="a04558.html#a7">uint8</a>&gt;* <a class="el" href="a03529.html#NL3D_1_1CTileLumel_1_1CStreamBitr1">NL3D::CTileLumel::CStreamBit::_Vector</a><code> [private]</code>
+ </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="a06547.html#l00070">70</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
+<p>
+Referenced by <a class="el" href="a06547.html#l00174">popBackBool()</a>, <a class="el" href="a06547.html#l00139">pushBackBool()</a>, and <a class="el" href="a06547.html#l00132">setPtr()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following file:<ul>
+<li><a class="el" href="a06547.html">tile_lumel.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:04:59 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>