aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02754.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/doxygen/nel/a02754.html')
-rw-r--r--docs/doxygen/nel/a02754.html1563
1 files changed, 1563 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02754.html b/docs/doxygen/nel/a02754.html
new file mode 100644
index 00000000..1874f184
--- /dev/null
+++ b/docs/doxygen/nel/a02754.html
@@ -0,0 +1,1563 @@
+<!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::CLightUser 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::CLightUser Class Reference</h1><code>#include &lt;<a class="el" href="a05900.html">light_user.h</a>&gt;</code>
+<p>
+<p>Inheritance diagram for NL3D::CLightUser:
+<p><center><img src="a02754.png" usemap="#NL3D::CLightUser_map" border="0" alt=""></center>
+<map name="NL3D::CLightUser_map">
+<area href="a02755.html" alt="NL3D::ULight" shape="rect" coords="0,0,112,24">
+</map>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+<a class="el" href="a02755.html">ULight</a> implementation. <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <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="a05900.html#l00048">48</a> of file <a class="el" href="a05900.html">light_user.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="a02755.html#NL3D_1_1ULightw3">TLightMode</a> { <a class="el" href="a02755.html#NL3D_1_1ULightw3NL3D_1_1ULightw0">DirectionalLight</a>,
+<a class="el" href="a02755.html#NL3D_1_1ULightw3NL3D_1_1ULightw1">PointLight</a>,
+<a class="el" href="a02755.html#NL3D_1_1ULightw3NL3D_1_1ULightw2">SpotLight</a>
+ }</td></tr>
+
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td colspan="2"><div class="groupHeader">Get methods.</div></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="a02754.html#NL3D_1_1CLightUserz330_0">getAmbiant</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_1">getConstantAttenuation</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_2">getCutoff</a> () const </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="a02754.html#NL3D_1_1CLightUserz330_3">getDiffuse</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">NLMISC::CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_4">getDirection</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_5">getExponent</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_6">getLinearAttenuation</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_7">getMode</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">NLMISC::CVector</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_8">getPosition</a> () const </td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>float&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz330_9">getQuadraticAttenuation</a> () const </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="a02754.html#NL3D_1_1CLightUserz330_10">getSpecular</a> () const </td></tr>
+
+<tr><td colspan="2"><div class="groupHeader">Set methods.</div></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_0">setAmbiant</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;ambiant)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_1">setConstantAttenuation</a> (float constant)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_2">setCutoff</a> (float cutoff)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_3">setDiffuse</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;diffuse)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_4">setDirection</a> (const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;direction)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_5">setExponent</a> (float exponent)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_6">setLinearAttenuation</a> (float linear)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_7">setMode</a> (<a class="el" href="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a> mode)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_8">setPosition</a> (const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;position)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_9">setQuadraticAttenuation</a> (float quadratic)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz328_10">setSpecular</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;specular)</td></tr>
+
+<tr><td colspan="2"><div class="groupHeader">Quick setup.</div></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz326_0">setNoAttenuation</a> ()</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz326_1">setupAttenuation</a> (float farAttenuationBegin, float farAttenuationEnd)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz326_2">setupDirectional</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;ambiant, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;diffuse, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;specular, const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;direction, float constant=1, float linear=0, float quadratic=0)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Quick setup a directional light. <a href="#NL3D_1_1CLightUserz326_2"></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="a02754.html#NL3D_1_1CLightUserz326_3">setupPointLight</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;ambiant, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;diffuse, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;specular, const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;position, const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;direction, float constant=1, float linear=0, float quadratic=0)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Quick setup a point light. <a href="#NL3D_1_1CLightUserz326_3"></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="a02754.html#NL3D_1_1CLightUserz326_4">setupSpotExponent</a> (float hotSpotAngle)</td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserz326_5">setupSpotLight</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;ambiant, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;diffuse, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;specular, const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;position, const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;direction, float exponent, float cutoff, float constant=1, float linear=0, float quadratic=0)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Quick setup a spotlight. <a href="#NL3D_1_1CLightUserz326_5"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02755.html">ULight</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULighte0">createLight</a> ()</td></tr>
+
+<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02743.html">CLight</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02754.html#NL3D_1_1CLightUserp0">_Light</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="a02754.html#NL3D_1_1CLightUsern0">CDriverUser</a></td></tr>
+
+</table>
+<hr><h2>Member Enumeration Documentation</h2>
+<a class="anchor" name="NL3D_1_1ULightw3" doxytag="NL3D::CLightUser::TLightMode" ></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"> enum <a class="el" href="a02755.html#NL3D_1_1ULightw3">NL3D::ULight::TLightMode</a><code> [inherited]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<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_1ULightw3NL3D_1_1ULightw0" doxytag="DirectionalLight" ></a>DirectionalLight</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ULightw3NL3D_1_1ULightw1" doxytag="PointLight" ></a>PointLight</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ULightw3NL3D_1_1ULightw2" doxytag="SpotLight" ></a>SpotLight</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06611.html#l00048">48</a> of file <a class="el" href="a06611.html">u_light.h</a>.
+<p>
+<div class="fragment"><pre>00049 {
+00050 <span class="comment">// The light is directional.</span>
+00051 <a class="code" href="a02755.html#NL3D_1_1ULightw3NL3D_1_1ULightw0">DirectionalLight</a>,
+00052
+00053 <span class="comment">// The light is a point.</span>
+00054 <a class="code" href="a02755.html#NL3D_1_1ULightw3NL3D_1_1ULightw1">PointLight</a>,
+00055
+00056 <span class="comment">// The light is a spotlight with a cone.</span>
+00057 <a class="code" href="a02755.html#NL3D_1_1ULightw3NL3D_1_1ULightw2">SpotLight</a>
+00058 };
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1ULighte0" doxytag="NL3D::CLightUser::createLight" ></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="a02755.html">ULight</a> * NL3D::ULight::createLight </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> [static, inherited]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+This is the static function create a stand alone light.
+<p>
+Definition at line <a class="el" href="a05899.html#l00034">34</a> of file <a class="el" href="a05899.html">light_user.cpp</a>.
+<p>
+References <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00035 {
+00036 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00037 <span class="comment">// return the new light</span>
+00038 <span class="keywordflow">return</span> <span class="keyword">new</span> CLightUser;
+00039 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_0" doxytag="NL3D::CLightUser::getAmbiant" ></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> NL3D::CLightUser::getAmbiant </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the ambiant color of the light.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_0">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00253">253</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00232">NL3D::CLight::getAmbiant()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00254 {
+00255 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00256 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getAmbiant ();
+00257 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_1" doxytag="NL3D::CLightUser::getConstantAttenuation" ></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"> float NL3D::CLightUser::getConstantAttenuation </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get constant attenuation.<p>
+The intensity of the light is attenuated this way: light_intensity = light_intensity / ( CONSTANT_ATTENUATION + vertex_light_distance * LINEAR_ATTENUATION + vertex_light_distance * vertex_light_distance * QUADRATIC_ATTENUATION );
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_1">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00320">320</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00292">NL3D::CLight::getConstantAttenuation()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00321 {
+00322 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00323 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getConstantAttenuation ();
+00324 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_2" doxytag="NL3D::CLightUser::getCutoff" ></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"> float NL3D::CLightUser::getCutoff </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the cutoff of the light in radian. Should be between [0, Pi/2]. Used only for SpotLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_2">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00307">307</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00280">NL3D::CLight::getCutoff()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00308 {
+00309 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00310 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getCutoff ();
+00311 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_3" doxytag="NL3D::CLightUser::getDiffuse" ></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> NL3D::CLightUser::getDiffuse </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the diffuse color of the light.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_3">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00262">262</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00240">NL3D::CLight::getDiffuse()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00263 {
+00264 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00265 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getDiffuse ();
+00266 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_4" doxytag="NL3D::CLightUser::getDirection" ></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">NLMISC::CVector</a> NL3D::CLightUser::getDirection </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the direction of the light. Used only for DirectionalLight and SpotLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_4">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00289">289</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00264">NL3D::CLight::getDirection()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00290 {
+00291 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00292 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getDirection ();
+00293 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_5" doxytag="NL3D::CLightUser::getExponent" ></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"> float NL3D::CLightUser::getExponent </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the exponent of the light. Used only for SpotLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_5">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00298">298</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00272">NL3D::CLight::getExponent()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00299 {
+00300 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00301 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getExponent ();
+00302 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_6" doxytag="NL3D::CLightUser::getLinearAttenuation" ></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"> float NL3D::CLightUser::getLinearAttenuation </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get linear attenuation.<p>
+The intensity of the light is attenuated this way: light_intensity = light_intensity / ( CONSTANT_ATTENUATION + vertex_light_distance * LINEAR_ATTENUATION + vertex_light_distance * vertex_light_distance * QUADRATIC_ATTENUATION );
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_6">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00333">333</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00304">NL3D::CLight::getLinearAttenuation()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00334 {
+00335 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00336 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getLinearAttenuation ();
+00337 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_7" doxytag="NL3D::CLightUser::getMode" ></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="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a> NL3D::CLightUser::getMode </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the light mode.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_7">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00244">244</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00224">NL3D::CLight::getMode()</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00245 {
+00246 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00247 <span class="keywordflow">return</span> (ULight::TLightMode)(<a class="code" href="a04558.html#a11">uint32</a>)<a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getMode ();
+00248 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_8" doxytag="NL3D::CLightUser::getPosition" ></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">NLMISC::CVector</a> NL3D::CLightUser::getPosition </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the position of the light. Used only for SpotLight and PointLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_8">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00280">280</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00256">NL3D::CLight::getPosition()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00281 {
+00282 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00283 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getPosition ();
+00284 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_9" doxytag="NL3D::CLightUser::getQuadraticAttenuation" ></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"> float NL3D::CLightUser::getQuadraticAttenuation </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get quadratic attenuation.<p>
+The intensity of the light is attenuated this way: light_intensity = light_intensity / ( CONSTANT_ATTENUATION + vertex_light_distance * LINEAR_ATTENUATION + vertex_light_distance * vertex_light_distance * QUADRATIC_ATTENUATION );
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_9">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00346">346</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00316">NL3D::CLight::getQuadraticAttenuation()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00347 {
+00348 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00349 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getQuadraticAttenuation ();
+00350 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz330_10" doxytag="NL3D::CLightUser::getSpecular" ></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> NL3D::CLightUser::getSpecular </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<code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Get the specular color of the light.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1478_10">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00271">271</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05892.html#l00248">NL3D::CLight::getSpecular()</a>, and <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>.
+<p>
+<div class="fragment"><pre>00272 {
+00273 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00274 <span class="keywordflow">return</span> <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.getSpecular ();
+00275 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_0" doxytag="NL3D::CLightUser::setAmbiant" ></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::CLightUser::setAmbiant </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>ambiant</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the ambiant color of the light.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_0">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00137">137</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00127">NL3D::CLight::setAmbiant()</a>.
+<p>
+<div class="fragment"><pre>00138 {
+00139 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00140 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setAmbiant (ambiant);
+00141 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_1" doxytag="NL3D::CLightUser::setConstantAttenuation" ></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::CLightUser::setConstantAttenuation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>constant</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set constant attenuation.<p>
+The intensity of the light is attenuated this way: light_intensity = light_intensity / ( CONSTANT_ATTENUATION + vertex_light_distance * LINEAR_ATTENUATION + vertex_light_distance * vertex_light_distance * QUADRATIC_ATTENUATION );
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_1">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00204">204</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00187">NL3D::CLight::setConstantAttenuation()</a>.
+<p>
+<div class="fragment"><pre>00205 {
+00206 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00207 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setConstantAttenuation (constant);
+00208 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_2" doxytag="NL3D::CLightUser::setCutoff" ></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::CLightUser::setCutoff </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>cutoff</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the cutoff of the light in radian. Should be between [0, Pi/2]. Used only for SpotLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_2">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00191">191</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00175">NL3D::CLight::setCutoff()</a>.
+<p>
+<div class="fragment"><pre>00192 {
+00193 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00194 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setCutoff (cutoff);
+00195 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_3" doxytag="NL3D::CLightUser::setDiffuse" ></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::CLightUser::setDiffuse </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>diffuse</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the diffuse color of the light.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_3">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00146">146</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00135">NL3D::CLight::setDiffuse()</a>.
+<p>
+<div class="fragment"><pre>00147 {
+00148 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00149 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setDiffuse (diffuse);
+00150 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_4" doxytag="NL3D::CLightUser::setDirection" ></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::CLightUser::setDirection </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>direction</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the direction of the light. Used only for DirectionalLight and SpotLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_4">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00173">173</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00159">NL3D::CLight::setDirection()</a>.
+<p>
+<div class="fragment"><pre>00174 {
+00175 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00176 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setDirection (direction);
+00177 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_5" doxytag="NL3D::CLightUser::setExponent" ></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::CLightUser::setExponent </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>exponent</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the Intensity distribution of the light. Should be between [0, 1]. Used only for SpotLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_5">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00182">182</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00167">NL3D::CLight::setExponent()</a>.
+<p>
+<div class="fragment"><pre>00183 {
+00184 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00185 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setExponent (exponent);
+00186 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_6" doxytag="NL3D::CLightUser::setLinearAttenuation" ></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::CLightUser::setLinearAttenuation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>linear</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set linear attenuation.<p>
+The intensity of the light is attenuated this way: light_intensity = light_intensity / ( CONSTANT_ATTENUATION + vertex_light_distance * LINEAR_ATTENUATION + vertex_light_distance * vertex_light_distance * QUADRATIC_ATTENUATION );
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_6">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00217">217</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00199">NL3D::CLight::setLinearAttenuation()</a>.
+<p>
+<div class="fragment"><pre>00218 {
+00219 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00220 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setLinearAttenuation (linear);
+00221 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_7" doxytag="NL3D::CLightUser::setMode" ></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::CLightUser::setMode </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>mode</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the light mode.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_7">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00128">128</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, <a class="el" href="a05892.html#l00119">NL3D::CLight::setMode()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00129 {
+00130 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00131 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setMode ((CLight::TLightMode)(<a class="code" href="a04558.html#a11">uint32</a>)mode);
+00132 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz326_0" doxytag="NL3D::CLightUser::setNoAttenuation" ></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::CLightUser::setNoAttenuation </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, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set no attenuation.<p>
+The light will not use attenuation.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1474_0">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00101">101</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05891.html#l00160">NL3D::CLight::setNoAttenuation()</a>.
+<p>
+<div class="fragment"><pre>00102 {
+00103 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00104 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setNoAttenuation ();
+00105 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_8" doxytag="NL3D::CLightUser::setPosition" ></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::CLightUser::setPosition </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>position</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the position of the light. Used only for SpotLight and PointLight.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_8">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00164">164</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00151">NL3D::CLight::setPosition()</a>.
+<p>
+<div class="fragment"><pre>00165 {
+00166 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00167 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setPosition (position);
+00168 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_9" doxytag="NL3D::CLightUser::setQuadraticAttenuation" ></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::CLightUser::setQuadraticAttenuation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>quadratic</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set quadratic attenuation.<p>
+The intensity of the light is attenuated this way: light_intensity = light_intensity / ( CONSTANT_ATTENUATION + vertex_light_distance * LINEAR_ATTENUATION + vertex_light_distance * vertex_light_distance * QUADRATIC_ATTENUATION );
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_9">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00230">230</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00211">NL3D::CLight::setQuadraticAttenuation()</a>.
+<p>
+<div class="fragment"><pre>00231 {
+00232 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00233 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setQuadraticAttenuation (quadratic);
+00234 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz328_10" doxytag="NL3D::CLightUser::setSpecular" ></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::CLightUser::setSpecular </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>specular</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Set the specular color of the light.
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1476_10">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00155">155</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05892.html#l00143">NL3D::CLight::setSpecular()</a>.
+<p>
+<div class="fragment"><pre>00156 {
+00157 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00158 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setSpecular (specular);
+00159 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz326_1" doxytag="NL3D::CLightUser::setupAttenuation" ></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::CLightUser::setupAttenuation </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname" nowrap> <em>farAttenuationBegin</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>farAttenuationEnd</em></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Setup attenuation with begin and end attenuation distance.<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>farAttenuationBegin</em>&nbsp;</td><td>is the distance of the begin of the attenuation (attenuation == 0.9f) </td></tr>
+ <tr><td valign=top><em>farAttenuationEnd</em>&nbsp;</td><td>is the distance of the end of the attenuation (attenuation == 0.1f)</td></tr>
+ </table>
+</dl>
+
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1474_1">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00089">89</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05891.html#l00109">NL3D::CLight::setupAttenuation()</a>.
+<p>
+<div class="fragment"><pre>00090 {
+00091 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00092 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setupAttenuation (farAttenuationBegin, farAttenuationEnd);
+00093 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz326_2" doxytag="NL3D::CLightUser::setupDirectional" ></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::CLightUser::setupDirectional </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>ambiant</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>diffuse</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>specular</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>direction</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>constant</em> = 1, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>linear</em> = 0, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>quadratic</em> = 0</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Quick setup a directional light.
+<p>
+
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1474_2">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00060">60</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05891.html#l00037">NL3D::CLight::setupDirectional()</a>.
+<p>
+<div class="fragment"><pre>00062 {
+00063 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00064 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setupDirectional (ambiant, diffuse, specular, direction, constant, linear, quadratic);
+00065 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz326_3" doxytag="NL3D::CLightUser::setupPointLight" ></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::CLightUser::setupPointLight </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>ambiant</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>diffuse</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>specular</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>position</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>direction</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>constant</em> = 1, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>linear</em> = 0, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>quadratic</em> = 0</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Quick setup a point light.
+<p>
+
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1474_3">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00068">68</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05891.html#l00059">NL3D::CLight::setupPointLight()</a>.
+<p>
+<div class="fragment"><pre>00070 {
+00071 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00072 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setupPointLight (ambiant, diffuse, specular, position, direction, constant, linear, quadratic);
+00073 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz326_4" doxytag="NL3D::CLightUser::setupSpotExponent" ></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::CLightUser::setupSpotExponent </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>hotSpotAngle</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Setup spot exponent with angle of the hotspot.<p>
+<dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>hotSpotAngle</em>&nbsp;</td><td>is the angle in radian between the axis of the spot and the vector from light where attenuation is == 0.9.</td></tr>
+ </table>
+</dl>
+
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1474_4">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00113">113</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05891.html#l00150">NL3D::CLight::setupSpotExponent()</a>.
+<p>
+<div class="fragment"><pre>00114 {
+00115 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00116 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setupSpotExponent (hotSpotAngle);
+00117 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CLightUserz326_5" doxytag="NL3D::CLightUser::setupSpotLight" ></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::CLightUser::setupSpotLight </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>ambiant</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>diffuse</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>specular</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>position</em>, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>const <a class="el" href="a03128.html">NLMISC::CVector</a> &amp;&nbsp;</td>
+ <td class="mdname" nowrap> <em>direction</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>exponent</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>cutoff</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>constant</em> = 1, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>linear</em> = 0, </td>
+ </tr>
+ <tr>
+ <td class="md" nowrap align="right"></td>
+ <td></td>
+ <td class="md" nowrap>float&nbsp;</td>
+ <td class="mdname" nowrap> <em>quadratic</em> = 0</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"><code> [inline, virtual]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Quick setup a spotlight.
+<p>
+
+<p>
+Implements <a class="el" href="a02755.html#NL3D_1_1ULightz1474_5">NL3D::ULight</a>.
+<p>
+Definition at line <a class="el" href="a05900.html#l00076">76</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+References <a class="el" href="a05900.html#l00051">_Light</a>, <a class="el" href="a05900.html#l00033">NL3D_MEM_LIGHT</a>, and <a class="el" href="a05891.html#l00082">NL3D::CLight::setupSpotLight()</a>.
+<p>
+<div class="fragment"><pre>00078 {
+00079 <a class="code" href="a04477.html#a0">NL3D_MEM_LIGHT</a>
+00080 <a class="code" href="a02754.html#NL3D_1_1CLightUserp0">_Light</a>.setupSpotLight (ambiant, diffuse, specular, position, direction, exponent, cutoff, constant, linear, quadratic);
+00081 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Friends And Related Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CLightUsern0" doxytag="NL3D::CLightUser::CDriverUser" ></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="a02437.html">CDriverUser</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="a05900.html#l00052">52</a> of file <a class="el" href="a05900.html">light_user.h</a>. </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CLightUserp0" doxytag="NL3D::CLightUser::_Light" ></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="a02743.html">CLight</a> <a class="el" href="a02754.html#NL3D_1_1CLightUserp0">NL3D::CLightUser::_Light</a><code> [protected]</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="a05900.html#l00051">51</a> of file <a class="el" href="a05900.html">light_user.h</a>.
+<p>
+Referenced by <a class="el" href="a05900.html#l00253">getAmbiant()</a>, <a class="el" href="a05900.html#l00320">getConstantAttenuation()</a>, <a class="el" href="a05900.html#l00307">getCutoff()</a>, <a class="el" href="a05900.html#l00262">getDiffuse()</a>, <a class="el" href="a05900.html#l00289">getDirection()</a>, <a class="el" href="a05900.html#l00298">getExponent()</a>, <a class="el" href="a05900.html#l00333">getLinearAttenuation()</a>, <a class="el" href="a05900.html#l00244">getMode()</a>, <a class="el" href="a05900.html#l00280">getPosition()</a>, <a class="el" href="a05900.html#l00346">getQuadraticAttenuation()</a>, <a class="el" href="a05900.html#l00271">getSpecular()</a>, <a class="el" href="a05900.html#l00137">setAmbiant()</a>, <a class="el" href="a05900.html#l00204">setConstantAttenuation()</a>, <a class="el" href="a05900.html#l00191">setCutoff()</a>, <a class="el" href="a05900.html#l00146">setDiffuse()</a>, <a class="el" href="a05900.html#l00173">setDirection()</a>, <a class="el" href="a05900.html#l00182">setExponent()</a>, <a class="el" href="a05657.html#l01049">NL3D::CDriverUser::setLight()</a>, <a class="el" href="a05900.html#l00217">setLinearAttenuation()</a>, <a class="el" href="a05900.html#l00128">setMode()</a>, <a class="el" href="a05900.html#l00101">setNoAttenuation()</a>, <a class="el" href="a05900.html#l00164">setPosition()</a>, <a class="el" href="a05900.html#l00230">setQuadraticAttenuation()</a>, <a class="el" href="a05900.html#l00155">setSpecular()</a>, <a class="el" href="a05900.html#l00089">setupAttenuation()</a>, <a class="el" href="a05900.html#l00060">setupDirectional()</a>, <a class="el" href="a05900.html#l00068">setupPointLight()</a>, <a class="el" href="a05900.html#l00113">setupSpotExponent()</a>, and <a class="el" href="a05900.html#l00076">setupSpotLight()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following file:<ul>
+<li><a class="el" href="a05900.html">light_user.h</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:49:37 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>