aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03722.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03722.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a03722.html952
1 files changed, 952 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03722.html b/docs/doxygen/nel/a03722.html
new file mode 100644
index 00000000..558dfa2b
--- /dev/null
+++ b/docs/doxygen/nel/a03722.html
@@ -0,0 +1,952 @@
+<!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::CWaterPoolManager 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::CWaterPoolManager Class Reference</h1><code>#include &lt;<a class="el" href="a06740.html">water_pool_manager.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+This class helps managing various waters pools <dl compact><dt><b>Author:</b></dt><dd>Nicolas Vizerie <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06740.html#l00048">48</a> of file <a class="el" href="a06740.html">water_pool_manager.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="a03719.html">CWaterHeightMap</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera0">createWaterPool</a> (const <a class="el" href="a03723.html">CWaterHeightMapBuild</a> &amp;<a class="el" href="a04223.html#a565">params</a>=<a class="el" href="a03723.html">CWaterHeightMapBuild</a>())</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">create a water pool with the given id and the given parameters. If the pool existed before, its parameter are reset <a href="#NL3D_1_1CWaterPoolManagera0"></a><br><br></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="a03722.html#NL3D_1_1CWaterPoolManagera1">getNumPools</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the number of pools. <a href="#NL3D_1_1CWaterPoolManagera1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03719.html">CWaterHeightMap</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera2">getPoolByID</a> (<a class="el" href="a04558.html#a11">uint32</a> ID)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a water pool by its ID. If the ID doesn't exist, a new pool is created with default parameters. <a href="#NL3D_1_1CWaterPoolManagera2"></a><br><br></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="a03722.html#NL3D_1_1CWaterPoolManagera3">getPoolID</a> (<a class="el" href="a04558.html#a15">uint</a> i) const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">get the id of the i-th pool (O(n) lookup) <a href="#NL3D_1_1CWaterPoolManagera3"></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="a03722.html#NL3D_1_1CWaterPoolManagera4">hasPool</a> (<a class="el" href="a04558.html#a11">uint32</a> ID) const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">test wether a pool of the given ID exists <a href="#NL3D_1_1CWaterPoolManagera4"></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="a03722.html#NL3D_1_1CWaterPoolManagera5">releaseBlendTextures</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera6">removePool</a> (<a class="el" href="a04558.html#a11">uint32</a> ID)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">remove the pool of the given ID <a href="#NL3D_1_1CWaterPoolManagera6"></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="a03722.html#NL3D_1_1CWaterPoolManagera7">reset</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">delete all heightmaps <a href="#NL3D_1_1CWaterPoolManagera7"></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="a03722.html#NL3D_1_1CWaterPoolManagera8">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f) throw (NLMISC::EStream)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">serial the pools data's <a href="#NL3D_1_1CWaterPoolManagera8"></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="a03722.html#NL3D_1_1CWaterPoolManagera9">setBlendFactor</a> (<a class="el" href="a02434.html">IDriver</a> *drv, float factor)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagera10">~CWaterPoolManager</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Private Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::map&lt; <a class="el" href="a04558.html#a11">uint32</a>,<br>
+ <a class="el" href="a03719.html">CWaterHeightMap</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery0">TPoolMap</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>typedef std::vector&lt; <a class="el" href="a03724.html">CWaterShape</a> * &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery1">TWaterShapeVect</a></td></tr>
+
+<tr><td colspan=2><br><h2>Private 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="a03722.html#NL3D_1_1CWaterPoolManagerd0">CWaterPoolManager</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerd1">isWaterShapeObserver</a> (const <a class="el" href="a03724.html">CWaterShape</a> *shape) const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerd2">registerWaterShape</a> (<a class="el" href="a03724.html">CWaterShape</a> *shape)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">register a water height map. The water height map will be notified when a setBlend is applied <a href="#NL3D_1_1CWaterPoolManagerd2"></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="a03722.html#NL3D_1_1CWaterPoolManagerd3">unRegisterWaterShape</a> (<a class="el" href="a03724.html">CWaterShape</a> *shape)</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="a03722.html#NL3D_1_1CWaterPoolManagery0">TPoolMap</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery1">TWaterShapeVect</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a></td></tr>
+
+<tr><td colspan=2><br><h2>Friends</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagern0">CWaterShape</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03722.html">CWaterPoolManager</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagern1">GetWaterPoolManager</a> ()</td></tr>
+
+</table>
+<hr><h2>Member Typedef Documentation</h2>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagery0" doxytag="NL3D::CWaterPoolManager::TPoolMap" ></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"> typedef std::map&lt;<a class="el" href="a04558.html#a11">uint32</a>, <a class="el" href="a03719.html">CWaterHeightMap</a> *&gt; <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery0">NL3D::CWaterPoolManager::TPoolMap</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="a06740.html#l00113">113</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagery1" doxytag="NL3D::CWaterPoolManager::TWaterShapeVect" ></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"> typedef std::vector&lt;<a class="el" href="a03724.html">CWaterShape</a> *&gt; <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagery1">NL3D::CWaterPoolManager::TWaterShapeVect</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="a06740.html#l00120">120</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera10" doxytag="NL3D::CWaterPoolManager::~CWaterPoolManager" ></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::CWaterPoolManager::~<a class="el" href="a03722.html">CWaterPoolManager</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> [inline]</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="a06740.html#l00092">92</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>.
+<p>
+References <a class="el" href="a06739.html#l00123">reset()</a>.
+<p>
+<div class="fragment"><pre>00092 { <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera7">reset</a>(); }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagerd0" doxytag="NL3D::CWaterPoolManager::CWaterPoolManager" ></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::CWaterPoolManager::CWaterPoolManager </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, private]</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="a06740.html#l00112">112</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>.
+<p>
+<div class="fragment"><pre>00112 {} <span class="comment">// private ctor needed to use the singleton pattern</span>
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera0" doxytag="NL3D::CWaterPoolManager::createWaterPool" ></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="a03719.html">CWaterHeightMap</a> * NL3D::CWaterPoolManager::createWaterPool </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03723.html">CWaterHeightMapBuild</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>params</em> = <a class="el" href="a03723.html">CWaterHeightMapBuild</a>() </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>
+create a water pool with the given id and the given parameters. If the pool existed before, its parameter are reset
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00093">93</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06736.html#l00135">NL3D::CWaterHeightMap::enableWaves()</a>, <a class="el" href="a05646.html#l00223">params</a>, <a class="el" href="a06736.html#l00162">NL3D::CWaterHeightMap::setDamping()</a>, <a class="el" href="a06736.html#l00166">NL3D::CWaterHeightMap::setFilterWeight()</a>, <a class="el" href="a06736.html#l00180">NL3D::CWaterHeightMap::setName()</a>, <a class="el" href="a06735.html#l00269">NL3D::CWaterHeightMap::setSize()</a>, <a class="el" href="a06736.html#l00170">NL3D::CWaterHeightMap::setUnitSize()</a>, and <a class="el" href="a06735.html#l00667">NL3D::CWaterHeightMap::setWaves()</a>.
+<p>
+Referenced by <a class="el" href="a06739.html#l00109">getPoolByID()</a>.
+<p>
+<div class="fragment"><pre>00094 {
+00095 CWaterHeightMap *whm = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.count(<a class="code" href="a04223.html#a565">params</a>.ID) == 0 ? <span class="keyword">new</span> CWaterHeightMap : <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[<a class="code" href="a04223.html#a565">params</a>.ID];
+00096 whm-&gt;setDamping(<a class="code" href="a04223.html#a565">params</a>.Damping);
+00097 whm-&gt;setFilterWeight(<a class="code" href="a04223.html#a565">params</a>.FilterWeight);
+00098 whm-&gt;setSize(<a class="code" href="a04223.html#a565">params</a>.Size);
+00099 whm-&gt;setUnitSize(<a class="code" href="a04223.html#a565">params</a>.UnitSize);
+00100 whm-&gt;setWaves(<a class="code" href="a04223.html#a565">params</a>.WaveIntensity, <a class="code" href="a04223.html#a565">params</a>.WavePeriod, <a class="code" href="a04223.html#a565">params</a>.WaveRadius, <a class="code" href="a04223.html#a565">params</a>.BorderWaves);
+00101 whm-&gt;enableWaves(<a class="code" href="a04223.html#a565">params</a>.WavesEnabled);
+00102 whm-&gt;setName(<a class="code" href="a04223.html#a565">params</a>.Name);
+00103 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[<a class="code" href="a04223.html#a565">params</a>.ID] = whm; <span class="comment">// in case it was just created</span>
+00104 <span class="keywordflow">return</span> whm;
+00105 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera1" doxytag="NL3D::CWaterPoolManager::getNumPools" ></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> NL3D::CWaterPoolManager::getNumPools </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> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the number of pools.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00197">197</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00114">_PoolMap</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a06739.html#l00204">getPoolID()</a>.
+<p>
+<div class="fragment"><pre>00198 {
+00199 <span class="keywordflow">return</span> <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.size();
+00200 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera2" doxytag="NL3D::CWaterPoolManager::getPoolByID" ></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="a03719.html">CWaterHeightMap</a> &amp; NL3D::CWaterPoolManager::getPoolByID </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>ID</em> </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>
+Get a water pool by its ID. If the ID doesn't exist, a new pool is created with default parameters.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00109">109</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06739.html#l00093">createWaterPool()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a06741.html#l00695">NL3D::CWaveMakerShape::clip()</a>, <a class="el" href="a06737.html#l00127">NL3D::CWaterModel::getAttenuatedHeight()</a>, <a class="el" href="a06737.html#l00117">NL3D::CWaterModel::getHeight()</a>, <a class="el" href="a06743.html#l00040">NL3D::UWaterHeightMapManager::getWaterHeightMapFromID()</a>, <a class="el" href="a06737.html#l00998">NL3D::CWaveMakerModel::traverseAnimDetail()</a>, and <a class="el" href="a06737.html#l00437">NL3D::CWaterModel::traverseRender()</a>.
+<p>
+<div class="fragment"><pre>00110 {
+00111 <span class="keywordflow">if</span>(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.count(ID))
+00112 {
+00113 <span class="keywordflow">return</span> *<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[ID];
+00114 }
+00115 <span class="keywordflow">else</span>
+00116 {
+00117 <span class="keywordflow">return</span> *<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera0">createWaterPool</a>();
+00118 }
+00119 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera3" doxytag="NL3D::CWaterPoolManager::getPoolID" ></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> NL3D::CWaterPoolManager::getPoolID </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>i</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+get the id of the i-th pool (O(n) lookup)
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00204">204</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06739.html#l00197">getNumPools()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+<div class="fragment"><pre>00205 {
+00206 <a class="code" href="a04199.html#a6">nlassert</a>(i &lt; <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera1">getNumPools</a>());
+00207 TPoolMap::const_iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.begin();
+00208 <span class="keywordflow">while</span> (i--) ++it;
+00209 <span class="keywordflow">return</span> it-&gt;first;
+00210 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera4" doxytag="NL3D::CWaterPoolManager::hasPool" ></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::CWaterPoolManager::hasPool </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>ID</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+test wether a pool of the given ID exists
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00086">86</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00114">_PoolMap</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+Referenced by <a class="el" href="a06739.html#l00214">removePool()</a>.
+<p>
+<div class="fragment"><pre>00087 {
+00088 <span class="keywordflow">return</span> <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.count(ID) != 0;
+00089 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagerd1" doxytag="NL3D::CWaterPoolManager::isWaterShapeObserver" ></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::CWaterPoolManager::isWaterShapeObserver </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03724.html">CWaterShape</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>shape</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [private]</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="a06739.html#l00190">190</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00121">_WaterShapes</a>.
+<p>
+Referenced by <a class="el" href="a06741.html#l00568">NL3D::CWaterShape::envMapUpdate()</a>.
+<p>
+<div class="fragment"><pre>00191 {
+00192 <span class="keywordflow">return</span> std::find(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(), <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(), shape) != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end();
+00193 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagerd2" doxytag="NL3D::CWaterPoolManager::registerWaterShape" ></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::CWaterPoolManager::registerWaterShape </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03724.html">CWaterShape</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>shape</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [private]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+register a water height map. The water height map will be notified when a setBlend is applied
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00135">135</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00121">_WaterShapes</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+Referenced by <a class="el" href="a06741.html#l00568">NL3D::CWaterShape::envMapUpdate()</a>.
+<p>
+<div class="fragment"><pre>00136 {
+00137 <a class="code" href="a04199.html#a6">nlassert</a>(std::find(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(), <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(), shape) == <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end()); <span class="comment">// Shape registered twice!</span>
+00138 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.push_back(shape);
+00139 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera5" doxytag="NL3D::CWaterPoolManager::releaseBlendTextures" ></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::CWaterPoolManager::releaseBlendTextures </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>
+release blend textures from memory <dl compact><dt><b>See also:</b></dt><dd>setblendFactor</dd></dl>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00171">171</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00121">_WaterShapes</a>, <a class="el" href="a06509.html#l00068">NL3D::CTextureBlend::release()</a>, <a class="el" href="a06506.html#l00278">NL3D::ITexture::setReleasable()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a06743.html#l00057">NL3D::UWaterHeightMapManager::releaseBlendTextures()</a>.
+<p>
+<div class="fragment"><pre>00172 {
+00173 <span class="keywordflow">for</span> (TWaterShapeVect::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(); it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(); ++it)
+00174 {
+00175 CTextureBlend *tb;
+00176 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> k = 0; k &lt; 2; ++k)
+00177 {
+00178 tb = dynamic_cast&lt;CTextureBlend *&gt;((*it)-&gt;getEnvMap(k));
+00179 <span class="keywordflow">if</span> (tb)
+00180 {
+00181 tb-&gt;setReleasable(<span class="keyword">true</span>);
+00182 tb-&gt;release();
+00183 }
+00184 }
+00185 }
+00186 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera6" doxytag="NL3D::CWaterPoolManager::removePool" ></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::CWaterPoolManager::removePool </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>ID</em> </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>
+remove the pool of the given ID
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00214">214</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00114">_PoolMap</a>, <a class="el" href="a06739.html#l00086">hasPool()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00215 {
+00216 <a class="code" href="a04199.html#a6">nlassert</a>(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera4">hasPool</a>(ID));
+00217 TPoolMap::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.find(ID);
+00218 <span class="keyword">delete</span> it-&gt;second;
+00219 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.erase(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.find(ID));
+00220 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera7" doxytag="NL3D::CWaterPoolManager::reset" ></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::CWaterPoolManager::reset </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>
+delete all heightmaps
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00123">123</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00114">_PoolMap</a>.
+<p>
+Referenced by <a class="el" href="a05657.html#l00106">NL3D::UDriver::purgeMemory()</a>, and <a class="el" href="a06740.html#l00092">~CWaterPoolManager()</a>.
+<p>
+<div class="fragment"><pre>00124 {
+00125 <span class="keywordflow">for</span> (TPoolMap::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.begin(); it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.end(); ++it)
+00126 {
+00127 <span class="keyword">delete</span> it-&gt;second;
+00128 }
+00129 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.clear ();
+00130 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera8" doxytag="NL3D::CWaterPoolManager::serial" ></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::CWaterPoolManager::serial </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+serial the pools data's
+<p>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00223">223</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a05646.html#l00645">size</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00224 {
+00225 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a>(<span class="stringliteral">"WaterPoolManager"</span>);
+00226 (<span class="keywordtype">void</span>)f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(0);
+00227 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a587">size</a>;
+00228 TPoolMap::iterator it;
+00229 <span class="keywordflow">if</span> (!f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>())
+00230 {
+00231 <a class="code" href="a04223.html#a587">size</a> = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.size();
+00232 it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>.begin();
+00233 }
+00234 <span class="keywordflow">else</span>
+00235 {
+00236 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagera7">reset</a>();
+00237 }
+00238 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a>(size, <span class="stringliteral">"NUM_POOLS"</span>);
+00239 <span class="keywordflow">while</span> (<a class="code" href="a04223.html#a587">size</a> --)
+00240 {
+00241 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2038_0">xmlPush</a>(<span class="stringliteral">"PoolDesc"</span>);
+00242 <span class="keywordflow">if</span> (f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>())
+00243 {
+00244 CWaterHeightMap *whm;
+00245 <a class="code" href="a04558.html#a11">uint32</a> <span class="keywordtype">id</span>;
+00246 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"POOL_ID"</span>);
+00247 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_7">serialPtr</a>(whm);
+00248 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">_PoolMap</a>[<span class="keywordtype">id</span>] = whm;
+00249 }
+00250 <span class="keywordflow">else</span>
+00251 {
+00252 <a class="code" href="a04558.html#a11">uint32</a> <span class="keywordtype">id</span> = it-&gt;first;
+00253 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2037_3">xmlSerial</a>(<span class="keywordtype">id</span>, <span class="stringliteral">"POOL_ID"</span>);
+00254 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_7">serialPtr</a>(it-&gt;second);
+00255 ++it;
+00256 }
+00257 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a>();
+00258 }
+00259 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2039_2">xmlPop</a>();
+00260 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagera9" doxytag="NL3D::CWaterPoolManager::setBlendFactor" ></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::CWaterPoolManager::setBlendFactor </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02434.html">IDriver</a> *&nbsp;</td>
+ <td class="mdname" nowrap> <em>drv</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>factor</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>
+Set a blend factor for all pool (more precisely, all models based on a water shape) that have a blend texture for their envmap (to have cycle between night and day for example) NB : once this is called, textures are not released from memory because subsequent blends are expected to happend when transition has finished, one should call releaseBlendTexture to eventually release textures from system memory <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>factor</em>&nbsp;</td><td>The blend factor which range from 0 to 1</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06739.html#l00152">152</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00121">_WaterShapes</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06509.html#l00076">NL3D::CTextureBlend::setBlendFactor()</a>, <a class="el" href="a06506.html#l00278">NL3D::ITexture::setReleasable()</a>, <a class="el" href="a02434.html#NL3D_1_1IDrivera70">NL3D::IDriver::setupTexture()</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00098">uint16</a>.
+<p>
+Referenced by <a class="el" href="a06743.html#l00049">NL3D::UWaterHeightMapManager::setBlendFactor()</a>.
+<p>
+<div class="fragment"><pre>00153 {
+00154 <a class="code" href="a04199.html#a6">nlassert</a>(factor &gt;= 0 &amp;&amp; factor &lt;= 1);
+00155 <span class="keywordflow">for</span> (TWaterShapeVect::iterator it = <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(); it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(); ++it)
+00156 {
+00157 CTextureBlend *tb;
+00158 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> k = 0; k &lt; 2; ++k)
+00159 {
+00160 tb = dynamic_cast&lt;CTextureBlend *&gt;((*it)-&gt;getEnvMap(k));
+00161 <span class="keywordflow">if</span> (tb &amp;&amp; tb-&gt;setBlendFactor((<a class="code" href="a04558.html#a9">uint16</a>) (256.f * factor)))
+00162 {
+00163 tb-&gt;setReleasable(<span class="keyword">false</span>);
+00164 drv-&gt;setupTexture(*tb);
+00165 }
+00166 }
+00167 }
+00168 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagerd3" doxytag="NL3D::CWaterPoolManager::unRegisterWaterShape" ></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::CWaterPoolManager::unRegisterWaterShape </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03724.html">CWaterShape</a> *&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>shape</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [private]</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="a06739.html#l00143">143</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+References <a class="el" href="a06740.html#l00121">_WaterShapes</a>.
+<p>
+Referenced by <a class="el" href="a06741.html#l00568">NL3D::CWaterShape::envMapUpdate()</a>, and <a class="el" href="a06741.html#l00240">NL3D::CWaterShape::~CWaterShape()</a>.
+<p>
+<div class="fragment"><pre>00144 {
+00145 TWaterShapeVect::iterator it = std::find(<a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.begin(), <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end(), shape);
+00146 <span class="comment">// nlassert(it != _WaterShapes.end()); // shape not registered!</span>
+00147 <span class="keywordflow">if</span> (it != <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.end())
+00148 <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">_WaterShapes</a>.erase(it);
+00149 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Friends And Related Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagern0" doxytag="NL3D::CWaterPoolManager::CWaterShape" ></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"> friend class <a class="el" href="a03724.html">CWaterShape</a><code> [friend]</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="a06740.html#l00110">110</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagern1" doxytag="NL3D::CWaterPoolManager::GetWaterPoolManager" ></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="a03722.html">CWaterPoolManager</a>&amp; GetWaterPoolManager </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> [friend]</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="a06739.html#l00078">78</a> of file <a class="el" href="a06739.html">water_pool_manager.cpp</a>.
+<p>
+<div class="fragment"><pre>00079 {
+00080 <span class="keyword">static</span> <a class="code" href="a03722.html#NL3D_1_1CWaterPoolManagerd0">CWaterPoolManager</a> singleton;
+00081 <span class="keywordflow">return</span> singleton;
+00082 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagerr0" doxytag="NL3D::CWaterPoolManager::_PoolMap" ></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="a03722.html#NL3D_1_1CWaterPoolManagery0">TPoolMap</a> <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr0">NL3D::CWaterPoolManager::_PoolMap</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="a06740.html#l00114">114</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>.
+<p>
+Referenced by <a class="el" href="a06739.html#l00093">createWaterPool()</a>, <a class="el" href="a06739.html#l00197">getNumPools()</a>, <a class="el" href="a06739.html#l00109">getPoolByID()</a>, <a class="el" href="a06739.html#l00204">getPoolID()</a>, <a class="el" href="a06739.html#l00086">hasPool()</a>, <a class="el" href="a06739.html#l00214">removePool()</a>, and <a class="el" href="a06739.html#l00123">reset()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CWaterPoolManagerr1" doxytag="NL3D::CWaterPoolManager::_WaterShapes" ></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="a03722.html#NL3D_1_1CWaterPoolManagery1">TWaterShapeVect</a> <a class="el" href="a03722.html#NL3D_1_1CWaterPoolManagerr1">NL3D::CWaterPoolManager::_WaterShapes</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="a06740.html#l00121">121</a> of file <a class="el" href="a06740.html">water_pool_manager.h</a>.
+<p>
+Referenced by <a class="el" href="a06739.html#l00190">isWaterShapeObserver()</a>, <a class="el" href="a06739.html#l00135">registerWaterShape()</a>, <a class="el" href="a06739.html#l00171">releaseBlendTextures()</a>, <a class="el" href="a06739.html#l00152">setBlendFactor()</a>, and <a class="el" href="a06739.html#l00143">unRegisterWaterShape()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06740.html">water_pool_manager.h</a><li><a class="el" href="a06739.html">water_pool_manager.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:30:35 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>