diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02755.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a02755.html')
-rw-r--r-- | docs/doxygen/nel/a02755.html | 1225 |
1 files changed, 1225 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02755.html b/docs/doxygen/nel/a02755.html new file mode 100644 index 00000000..51a82b98 --- /dev/null +++ b/docs/doxygen/nel/a02755.html @@ -0,0 +1,1225 @@ +<!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::ULight 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 Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::ULight Class Reference</h1><code>#include <<a class="el" href="a06611.html">u_light.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::ULight: +<p><center><img src="a02755.png" usemap="#NL3D::ULight_map" border="0" alt=""></center> +<map name="NL3D::ULight_map"> +<area href="a02754.html" alt="NL3D::CLightUser" shape="rect" coords="0,56,112,80"> +</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="a06611.html#l00044">44</a> of file <a class="el" href="a06611.html">u_light.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 </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>virtual <a class="el" href="a03337.html">NLMISC::CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_0">getAmbiant</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_1">getConstantAttenuation</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_2">getCutoff</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03337.html">NLMISC::CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_3">getDiffuse</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03128.html">NLMISC::CVector</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_4">getDirection</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_5">getExponent</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_6">getLinearAttenuation</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_7">getMode</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03128.html">NLMISC::CVector</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_8">getPosition</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual float </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_9">getQuadraticAttenuation</a> () const=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03337.html">NLMISC::CRGBA</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1478_10">getSpecular</a> () const=0</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Set methods.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_0">setAmbiant</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &ambiant)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_1">setConstantAttenuation</a> (float constant)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_2">setCutoff</a> (float cutoff)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_3">setDiffuse</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &diffuse)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_4">setDirection</a> (const <a class="el" href="a03128.html">NLMISC::CVector</a> &direction)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_5">setExponent</a> (float exponent)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_6">setLinearAttenuation</a> (float linear)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_7">setMode</a> (<a class="el" href="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a> mode)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_8">setPosition</a> (const <a class="el" href="a03128.html">NLMISC::CVector</a> &position)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_9">setQuadraticAttenuation</a> (float quadratic)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1476_10">setSpecular</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &specular)=0</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Quick setup.</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1474_0">setNoAttenuation</a> ()=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1474_1">setupAttenuation</a> (float farAttenuationBegin, float farAttenuationEnd)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1474_2">setupDirectional</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &ambiant, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &diffuse, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &specular, const <a class="el" href="a03128.html">NLMISC::CVector</a> &direction, float constant=1, float linear=0, float quadratic=0)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Quick setup a directional light. <a href="#NL3D_1_1ULightz1474_2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1474_3">setupPointLight</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &ambiant, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &diffuse, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &specular, const <a class="el" href="a03128.html">NLMISC::CVector</a> &position, const <a class="el" href="a03128.html">NLMISC::CVector</a> &direction, float constant=1, float linear=0, float quadratic=0)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Quick setup a point light. <a href="#NL3D_1_1ULightz1474_3"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1474_4">setupSpotExponent</a> (float hotSpotAngle)=0</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULightz1474_5">setupSpotLight</a> (const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &ambiant, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &diffuse, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &specular, const <a class="el" href="a03128.html">NLMISC::CVector</a> &position, const <a class="el" href="a03128.html">NLMISC::CVector</a> &direction, float exponent, float cutoff, float constant=1, float linear=0, float quadratic=0)=0</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Quick setup a spotlight. <a href="#NL3D_1_1ULightz1474_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> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02755.html#NL3D_1_1ULighte0">createLight</a> ()</td></tr> + +</table> +<hr><h2>Member Enumeration Documentation</h2> +<a class="anchor" name="NL3D_1_1ULightw3" doxytag="NL3D::ULight::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> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ULightw3NL3D_1_1ULightw1" doxytag="PointLight" ></a>PointLight</em> </td><td> +</td></tr> +<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ULightw3NL3D_1_1ULightw2" doxytag="SpotLight" ></a>SpotLight</em> </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::ULight::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">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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_1ULightz1478_0" doxytag="NL3D::ULight::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"> virtual <a class="el" href="a03337.html">NLMISC::CRGBA</a> NL3D::ULight::getAmbiant </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the ambiant color of the light. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_0">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_1" doxytag="NL3D::ULight::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"> virtual float NL3D::ULight::getConstantAttenuation </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_1">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_2" doxytag="NL3D::ULight::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"> virtual float NL3D::ULight::getCutoff </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the cutoff of the light in radian. Should be between [0, Pi/2]. Used only for SpotLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_2">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_3" doxytag="NL3D::ULight::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"> virtual <a class="el" href="a03337.html">NLMISC::CRGBA</a> NL3D::ULight::getDiffuse </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the diffuse color of the light. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_3">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_4" doxytag="NL3D::ULight::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"> virtual <a class="el" href="a03128.html">NLMISC::CVector</a> NL3D::ULight::getDirection </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the direction of the light. Used only for DirectionalLight and SpotLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_4">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_5" doxytag="NL3D::ULight::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"> virtual float NL3D::ULight::getExponent </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the exponent of the light. Used only for SpotLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_5">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_6" doxytag="NL3D::ULight::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"> virtual float NL3D::ULight::getLinearAttenuation </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_6">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_7" doxytag="NL3D::ULight::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"> virtual <a class="el" href="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a> NL3D::ULight::getMode </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the light mode. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_7">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_8" doxytag="NL3D::ULight::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"> virtual <a class="el" href="a03128.html">NLMISC::CVector</a> NL3D::ULight::getPosition </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the position of the light. Used only for SpotLight and PointLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_8">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_9" doxytag="NL3D::ULight::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"> virtual float NL3D::ULight::getQuadraticAttenuation </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_9">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1478_10" doxytag="NL3D::ULight::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"> virtual <a class="el" href="a03337.html">NLMISC::CRGBA</a> NL3D::ULight::getSpecular </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Get the specular color of the light. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz330_10">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_0" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setAmbiant </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>ambiant</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the ambiant color of the light. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_0">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_1" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setConstantAttenuation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>constant</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_1">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_2" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setCutoff </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>cutoff</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the cutoff of the light in radian. Should be between [0, Pi/2]. Used only for SpotLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_2">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_3" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setDiffuse </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>diffuse</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the diffuse color of the light. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_3">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_4" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setDirection </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">NLMISC::CVector</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>direction</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the direction of the light. Used only for DirectionalLight and SpotLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_4">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_5" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setExponent </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>exponent</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the Intensity distribution of the light. Should be between [0, 1]. Used only for SpotLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_5">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_6" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setLinearAttenuation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>linear</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_6">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_7" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setMode </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02755.html#NL3D_1_1ULightw3">ULight::TLightMode</a> </td> + <td class="mdname1" valign="top" nowrap> <em>mode</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the light mode. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_7">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1474_0" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setNoAttenuation </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set no attenuation.<p> +The light will not use attenuation. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz326_0">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_8" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setPosition </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03128.html">NLMISC::CVector</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>position</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the position of the light. Used only for SpotLight and PointLight. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_8">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_9" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setQuadraticAttenuation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>quadratic</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_9">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1476_10" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setSpecular </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>specular</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the specular color of the light. +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz328_10">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1474_1" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setupAttenuation </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </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 </td> + <td class="mdname" nowrap> <em>farAttenuationEnd</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> </td><td>is the distance of the begin of the attenuation (attenuation == 0.9f) </td></tr> + <tr><td valign=top><em>farAttenuationEnd</em> </td><td>is the distance of the end of the attenuation (attenuation == 0.1f)</td></tr> + </table> +</dl> + +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz326_1">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1474_2" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setupDirectional </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> & </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> & </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> & </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> & </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 </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 </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 </td> + <td class="mdname" nowrap> <em>quadratic</em> = 0</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Quick setup a directional light. +<p> + +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz326_2">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1474_3" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setupPointLight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> & </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> & </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> & </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> & </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> & </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 </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 </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 </td> + <td class="mdname" nowrap> <em>quadratic</em> = 0</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Quick setup a point light. +<p> + +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz326_3">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1474_4" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setupSpotExponent </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">float </td> + <td class="mdname1" valign="top" nowrap> <em>hotSpotAngle</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </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> </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> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz326_4">NL3D::CLightUser</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1ULightz1474_5" doxytag="NL3D::ULight::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"> virtual void NL3D::ULight::setupSpotLight </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">NLMISC::CRGBA</a> & </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> & </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> & </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> & </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> & </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 </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 </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 </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 </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 </td> + <td class="mdname" nowrap> <em>quadratic</em> = 0</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [pure virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Quick setup a spotlight. +<p> + +<p> +Implemented in <a class="el" href="a02754.html#NL3D_1_1CLightUserz326_5">NL3D::CLightUser</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06611.html">u_light.h</a><li><a class="el" href="a05899.html">light_user.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:46:24 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> |