aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03679.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a03679.html')
-rw-r--r--docs/doxygen/nel/a03679.html321
1 files changed, 321 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03679.html b/docs/doxygen/nel/a03679.html
new file mode 100644
index 00000000..fe2cf300
--- /dev/null
+++ b/docs/doxygen/nel/a03679.html
@@ -0,0 +1,321 @@
+<!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::CVegetableLightEx 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::CVegetableLightEx Class Reference</h1><code>#include &lt;<a class="el" href="a06697.html">vegetable_light_ex.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+Additional information to light Vegetables. 2 "precomputed" pointLights can additionally light the vegetables. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2002 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06697.html#l00048">48</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom>{ <a class="el" href="a03679.html#NL3D_1_1CVegetableLightExw0NL3D_1_1CVegetableLightExw1">MaxNumLight</a> = 2
+ }</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Must not change (hardcoded). <a href="#NL3D_1_1CVegetableLightExw0">More...</a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03679.html#NL3D_1_1CVegetableLightExa0">computeCurrentColors</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fill Color array according to PointLight[] and PointLightFactor[]. <a href="#NL3D_1_1CVegetableLightExa0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03679.html#NL3D_1_1CVegetableLightExa1">CVegetableLightEx</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="a03337.html">NLMISC::CRGBA</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03679.html#NL3D_1_1CVegetableLightExo0">Color</a> [MaxNumLight]</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Current Color of the light. <a href="#NL3D_1_1CVegetableLightExo0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03679.html#NL3D_1_1CVegetableLightExo1">Direction</a> [MaxNumLight]</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Direction of the light. the direction to the instance should be precomputed. <a href="#NL3D_1_1CVegetableLightExo1"></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="a03679.html#NL3D_1_1CVegetableLightExo2">NumLights</a></td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number Of light currently really enabled. <a href="#NL3D_1_1CVegetableLightExo2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03094.html">CPointLightNamed</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03679.html#NL3D_1_1CVegetableLightExo3">PointLight</a> [MaxNumLight]</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">PointLights. Used at <a class="el" href="a03680.html#NL3D_1_1CVegetableManagerz1118_2">CVegetableManager::updateLighting()</a> to get current colors of pointLights. <a href="#NL3D_1_1CVegetableLightExo3"></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="a03679.html#NL3D_1_1CVegetableLightExo4">PointLightFactor</a> [MaxNumLight]</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Factor to be multiplied by color of the light. Actually it is the attenuation factor. <a href="#NL3D_1_1CVegetableLightExo4"></a><br><br></td></tr>
+</table>
+<hr><h2>Member Enumeration Documentation</h2>
+<a class="anchor" name="NL3D_1_1CVegetableLightExw0" doxytag="NL3D::CVegetableLightEx::@34" ></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"> anonymous enum
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Must not change (hardcoded).
+<p>
+<dl compact><dt><b>Enumeration values: </b></dt><dd>
+<table border=0 cellspacing=2 cellpadding=0>
+<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CVegetableLightExw0NL3D_1_1CVegetableLightExw1" doxytag="MaxNumLight" ></a>MaxNumLight</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06697.html#l00053">53</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.
+<p>
+<div class="fragment"><pre>00053 {<a class="code" href="a03679.html#NL3D_1_1CVegetableLightExw0NL3D_1_1CVegetableLightExw1">MaxNumLight</a>= 2};
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NL3D_1_1CVegetableLightExa1" doxytag="NL3D::CVegetableLightEx::CVegetableLightEx" ></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::CVegetableLightEx::CVegetableLightEx </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="a06697.html#l00068">68</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.
+<p>
+References <a class="el" href="a06697.html#l00056">NumLights</a>.
+<p>
+<div class="fragment"><pre>00069 {
+00070 <a class="code" href="a03679.html#NL3D_1_1CVegetableLightExo2">NumLights</a>= 0;
+00071 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CVegetableLightExa0" doxytag="NL3D::CVegetableLightEx::computeCurrentColors" ></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::CVegetableLightEx::computeCurrentColors </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>
+Fill Color array according to PointLight[] and PointLightFactor[].
+<p>
+
+<p>
+Definition at line <a class="el" href="a06696.html#l00037">37</a> of file <a class="el" href="a06696.html">vegetable_light_ex.cpp</a>.
+<p>
+References <a class="el" href="a06185.html#l00078">NL3D::CPointLightNamed::getUnAnimatedDiffuse()</a>, <a class="el" href="a06340.html#l00119">NLMISC::CRGBA::modulateFromui()</a>, <a class="el" href="a06697.html#l00056">NumLights</a>, <a class="el" href="a06697.html#l00062">PointLightFactor</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a06162.html#l00050">NL3D::CPatch::generateTileVegetable()</a>, and <a class="el" href="a06698.html#l02288">NL3D::CVegetableManager::updateLightingIGPart()</a>.
+<p>
+<div class="fragment"><pre>00038 {
+00039 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i&lt;<a class="code" href="a03679.html#NL3D_1_1CVegetableLightExo2">NumLights</a>;i++)
+00040 {
+00041 <span class="comment">// get the light.</span>
+00042 CPointLightNamed *pl= <a class="code" href="a03679.html#NL3D_1_1CVegetableLightExo3">PointLight</a>[i];
+00043 <span class="comment">// get the attenuation</span>
+00044 <a class="code" href="a04558.html#a15">uint</a> att= <a class="code" href="a03679.html#NL3D_1_1CVegetableLightExo4">PointLightFactor</a>[i];
+00045 <span class="comment">// modulate the color with it. Use the Unanimated one!!</span>
+00046 <a class="code" href="a03679.html#NL3D_1_1CVegetableLightExo0">Color</a>[i].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa9">modulateFromui</a>(pl-&gt;getUnAnimatedDiffuse(), att);
+00047 }
+00048 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CVegetableLightExo0" doxytag="NL3D::CVegetableLightEx::Color" ></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="a03337.html">NLMISC::CRGBA</a> <a class="el" href="a03679.html#NL3D_1_1CVegetableLightExo0">NL3D::CVegetableLightEx::Color</a>[MaxNumLight]
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Current Color of the light.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06697.html#l00065">65</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.
+<p>
+Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, and <a class="el" href="a06698.html#l02354">NL3D::CVegetableManager::updateInstanceLighting()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CVegetableLightExo1" doxytag="NL3D::CVegetableLightEx::Direction" ></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="a03128.html">CVector</a> <a class="el" href="a03679.html#NL3D_1_1CVegetableLightExo1">NL3D::CVegetableLightEx::Direction</a>[MaxNumLight]
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Direction of the light. the direction to the instance should be precomputed.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06697.html#l00060">60</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.
+<p>
+Referenced by <a class="el" href="a06698.html#l00939">NL3D::computeVegetVertexLighting()</a>, <a class="el" href="a06698.html#l00986">NL3D::computeVegetVertexLightingForceBestSided()</a>, and <a class="el" href="a06162.html#l00050">NL3D::CPatch::generateTileVegetable()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CVegetableLightExo2" doxytag="NL3D::CVegetableLightEx::NumLights" ></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="a03679.html#NL3D_1_1CVegetableLightExo2">NL3D::CVegetableLightEx::NumLights</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Number Of light currently really enabled.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06697.html#l00056">56</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.
+<p>
+Referenced by <a class="el" href="a06698.html#l01036">NL3D::CVegetableManager::addInstance()</a>, <a class="el" href="a06696.html#l00037">computeCurrentColors()</a>, <a class="el" href="a06698.html#l00939">NL3D::computeVegetVertexLighting()</a>, <a class="el" href="a06698.html#l00986">NL3D::computeVegetVertexLightingForceBestSided()</a>, <a class="el" href="a06697.html#l00068">CVegetableLightEx()</a>, <a class="el" href="a06162.html#l00050">NL3D::CPatch::generateTileVegetable()</a>, and <a class="el" href="a06698.html#l02354">NL3D::CVegetableManager::updateInstanceLighting()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CVegetableLightExo3" doxytag="NL3D::CVegetableLightEx::PointLight" ></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="a03094.html">CPointLightNamed</a>* <a class="el" href="a03679.html#NL3D_1_1CVegetableLightExo3">NL3D::CVegetableLightEx::PointLight</a>[MaxNumLight]
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+PointLights. Used at <a class="el" href="a03680.html#NL3D_1_1CVegetableManagerz1118_2">CVegetableManager::updateLighting()</a> to get current colors of pointLights.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06697.html#l00058">58</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.
+<p>
+Referenced by <a class="el" href="a06162.html#l00050">NL3D::CPatch::generateTileVegetable()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CVegetableLightExo4" doxytag="NL3D::CVegetableLightEx::PointLightFactor" ></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="a03679.html#NL3D_1_1CVegetableLightExo4">NL3D::CVegetableLightEx::PointLightFactor</a>[MaxNumLight]
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Factor to be multiplied by color of the light. Actually it is the attenuation factor.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06697.html#l00062">62</a> of file <a class="el" href="a06697.html">vegetable_light_ex.h</a>.
+<p>
+Referenced by <a class="el" href="a06696.html#l00037">computeCurrentColors()</a>, and <a class="el" href="a06162.html#l00050">NL3D::CPatch::generateTileVegetable()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06697.html">vegetable_light_ex.h</a><li><a class="el" href="a06696.html">vegetable_light_ex.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:21: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>