aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03178.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03178.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--docs/doxygen/nel/a03178.html614
1 files changed, 614 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03178.html b/docs/doxygen/nel/a03178.html
new file mode 100644
index 00000000..7a3ae924
--- /dev/null
+++ b/docs/doxygen/nel/a03178.html
@@ -0,0 +1,614 @@
+<!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::CPSMaterial 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::CPSMaterial Class Reference</h1><code>#include &lt;<a class="el" href="a06258.html">ps_particle_basic.h</a>&gt;</code>
+<p>
+<p>Inheritance diagram for NL3D::CPSMaterial:
+<p><center><img src="a03178.png" usemap="#NL3D::CPSMaterial_map" border="0" alt=""></center>
+<map name="NL3D::CPSMaterial_map">
+<area href="a03177.html" alt="NL3D::CPSDot" shape="rect" coords="0,56,153,80">
+<area href="a03194.html" alt="NL3D::CPSFanLight" shape="rect" coords="163,56,316,80">
+<area href="a03187.html" alt="NL3D::CPSQuad" shape="rect" coords="326,56,479,80">
+<area href="a03226.html" alt="NL3D::CPSRibbon" shape="rect" coords="489,56,642,80">
+<area href="a03230.html" alt="NL3D::CPSRibbonLookAt" shape="rect" coords="652,56,805,80">
+<area href="a03233.html" alt="NL3D::CPSShockWave" shape="rect" coords="815,56,968,80">
+<area href="a03240.html" alt="NL3D::CPSTailDot" shape="rect" coords="978,56,1131,80">
+<area href="a03186.html" alt="NL3D::CPSFace" shape="rect" coords="244,112,397,136">
+<area href="a03191.html" alt="NL3D::CPSFaceLookAt" shape="rect" coords="407,112,560,136">
+</map>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+this contains material of a particle, this doesn't initiliaze anything, this just give the abylity to change the blending mode
+<p>
+
+<p>
+Definition at line <a class="el" href="a06258.html#l00802">802</a> of file <a class="el" href="a06258.html">ps_particle_basic.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="a03178.html#NL3D_1_1CPSTailDotw9">TBlendingMode</a> { <a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw0">add</a>,
+<a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw7">modulate</a>,
+<a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw1">alphaBlend</a>,
+<a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2">alphaTest</a>
+ }</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">this enum summarize the useful modes for blending to the framebuffer <a href="#NL3D_1_1CPSTailDotw9">More...</a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03178.html#NL3D_1_1CPSMateriala0">CPSMaterial</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSMateriala0"></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="a03178.html#NL3D_1_1CPSTailDota9">enableZTest</a> (bool enabled)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTailDota9"></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="a03178.html#NL3D_1_1CPSTailDota11">forceModulateConstantColor</a> (bool force, const <a class="el" href="a03337.html">NLMISC::CRGBA</a> &amp;col=<a class="el" href="a03337.html#NLMISC_1_1CRGBAs6">NLMISC::CRGBA::White</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTailDota11"></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="a03178.html#NL3D_1_1CPSTailDota12">forceTexturedMaterialStages</a> (<a class="el" href="a04558.html#a15">uint</a> numStages)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTailDota12"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9">CPSMaterial::TBlendingMode</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03178.html#NL3D_1_1CPSTailDota13">getBlendingMode</a> (void) const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTailDota13"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03178.html#NL3D_1_1CPSTailDota45">isZTestEnabled</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTailDota45"></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="a03178.html#NL3D_1_1CPSTailDota50">serialMaterial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f) throw (NLMISC::EStream)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTailDota50"></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="a03178.html#NL3D_1_1CPSTailDota52">setBlendingMode</a> (<a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9">CPSMaterial::TBlendingMode</a> mode)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">=================================================================================== <a href="#NL3D_1_1CPSTailDota52"></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="a03178.html#NL3D_1_1CPSMateriala8">setZBias</a> (float <a class="el" href="a04223.html#a658">value</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="a02839.html">CMaterial</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a></td></tr>
+
+</table>
+<hr><h2>Member Enumeration Documentation</h2>
+<a class="anchor" name="NL3D_1_1CPSTailDotw9" doxytag="NL3D::CPSMaterial::TBlendingMode" ></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="a03178.html#NL3D_1_1CPSTailDotw9">NL3D::CPSMaterial::TBlendingMode</a>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+this enum summarize the useful modes for blending to the framebuffer
+<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_1CPSTailDotw9NL3D_1_1CPSTailDotw0" doxytag="add" ></a>add</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw7" doxytag="modulate" ></a>modulate</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw1" doxytag="alphaBlend" ></a>alphaBlend</em>&nbsp;</td><td>
+</td></tr>
+<tr><td valign=top><em><a class="anchor" name="NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2" doxytag="alphaTest" ></a>alphaTest</em>&nbsp;</td><td>
+</td></tr>
+</table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06258.html#l00809">809</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>.
+<p>
+<div class="fragment"><pre>00809 { <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw0">add</a>, <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw7">modulate</a>, <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw1">alphaBlend</a>, <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2">alphaTest</a> };
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NL3D_1_1CPSMateriala0" doxytag="NL3D::CPSMaterial::CPSMaterial" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NL3D::CPSMaterial::CPSMaterial </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00485">485</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a05641.html#l00064">NL3D::CMaterial::setBlend()</a>, <a class="el" href="a05641.html#l00091">NL3D::CMaterial::setBlendFunc()</a>, and <a class="el" href="a05641.html#l00105">NL3D::CMaterial::setZWrite()</a>.
+<p>
+<div class="fragment"><pre>00486 {
+00487 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlend(<span class="keyword">true</span>);
+00488 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlendFunc(CMaterial::one, CMaterial::one);
+00489 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setZWrite(<span class="keyword">false</span>);
+00490 }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NL3D_1_1CPSTailDota9" doxytag="NL3D::CPSMaterial::enableZTest" ></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::CPSMaterial::enableZTest </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">bool&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>enabled</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00508">508</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a05641.html#l00099">NL3D::CMaterial::setZFunc()</a>.
+<p>
+<div class="fragment"><pre>00509 {
+00510 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setZFunc(enabled ? CMaterial::less : CMaterial::always);
+00511 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CPSTailDota11" doxytag="NL3D::CPSMaterial::forceModulateConstantColor" ></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::CPSMaterial::forceModulateConstantColor </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">bool&nbsp;</td>
+ <td class="mdname" nowrap> <em>force</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>col</em> = <a class="el" href="a03337.html#NLMISC_1_1CRGBAs6">NLMISC::CRGBA::White</a></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td class="md">)&nbsp;</td>
+ <td class="md" colspan="2"></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+Force the material to have one texture that is modulated by diffuse, and a constant color and its diffuse color. This is not compatible with multitextureing, however. <dl compact><dt><b>Parameters:</b></dt><dd>
+ <table border="0" cellspacing="2" cellpadding="0">
+ <tr><td valign=top><em>force</em>&nbsp;</td><td>true to force constant color modulation</td></tr>
+ </table>
+</dl>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00573">573</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a06257.html#l00598">forceTexturedMaterialStages()</a>, <a class="el" href="a05641.html#l00046">NL3D::CMaterial::getTexture()</a>, <a class="el" href="a05968.html#l00322">NL3D::CMaterial::setTexture()</a>, <a class="el" href="a05641.html#l00268">NL3D::CMaterial::texConstantColor()</a>, <a class="el" href="a05641.html#l00247">NL3D::CMaterial::texEnvArg0Alpha()</a>, <a class="el" href="a05641.html#l00221">NL3D::CMaterial::texEnvArg0RGB()</a>, <a class="el" href="a05641.html#l00256">NL3D::CMaterial::texEnvArg1Alpha()</a>, <a class="el" href="a05641.html#l00229">NL3D::CMaterial::texEnvArg1RGB()</a>, <a class="el" href="a05641.html#l00240">NL3D::CMaterial::texEnvOpAlpha()</a>, and <a class="el" href="a05641.html#l00214">NL3D::CMaterial::texEnvOpRGB()</a>.
+<p>
+Referenced by <a class="el" href="a06277.html#l00319">NL3D::CPSRibbonLookAt::displayRibbons()</a>, <a class="el" href="a06279.html#l00286">NL3D::CPSShockWave::draw()</a>, and <a class="el" href="a06262.html#l00520">NL3D::CPSQuad::updateMatBeforeRendering()</a>.
+<p>
+<div class="fragment"><pre>00574 {
+00575 <span class="keywordflow">if</span> (force)
+00576 {
+00578 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.texConstantColor(1, col);
+00579 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.texEnvOpRGB(1, CMaterial::Modulate);
+00580 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.texEnvOpAlpha(1, CMaterial::Modulate);
+00581 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.texEnvArg0RGB(1, CMaterial::Previous, CMaterial::SrcColor);
+00582 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.texEnvArg1RGB(1, CMaterial::Constant, CMaterial::SrcColor);
+00583 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.texEnvArg0Alpha(1, CMaterial::Previous, CMaterial::SrcAlpha);
+00584 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.texEnvArg1Alpha(1, CMaterial::Constant, CMaterial::SrcAlpha);
+00585 <a class="code" href="a03178.html#NL3D_1_1CPSTailDota12">forceTexturedMaterialStages</a>(2);
+00586 }
+00587 <span class="keywordflow">else</span>
+00588 {
+00589 <span class="keywordflow">if</span> (<a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.getTexture(1) != NULL)
+00590 {
+00591 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setTexture(1, NULL);
+00592 }
+00593 }
+00594 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CPSTailDota12" doxytag="NL3D::CPSMaterial::forceTexturedMaterialStages" ></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::CPSMaterial::forceTexturedMaterialStages </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>numStages</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+This setup n stage of a material with at least texture.<ul>
+<li>If a texture was present for a given stage it still is</li><li>If a texture wasn't present, it create a dummy white texture there</li><li>Above numStages, textures are disabled. It can be used to do extra math with stages that have no textures (required by the driver)</li></ul>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00598">598</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a05641.html#l00046">NL3D::CMaterial::getTexture()</a>, <a class="el" href="a05969.html#l00047">NL3D::IDRV_MAT_MAXTEXTURES</a>, <a class="el" href="a05968.html#l00322">NL3D::CMaterial::setTexture()</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+Referenced by <a class="el" href="a06226.html#l00122">NL3D::CPSDot::draw()</a>, <a class="el" href="a06257.html#l00573">forceModulateConstantColor()</a>, and <a class="el" href="a06235.html#l00286">NL3D::CPSFanLight::setupMaterial()</a>.
+<p>
+<div class="fragment"><pre>00599 {
+00600 ITexture *blankTex = NULL;
+00601 <a class="code" href="a04558.html#a15">uint</a> k;
+00602 <span class="keywordflow">for</span> (k = 0; k &lt; numStages; ++k)
+00603 {
+00604 <span class="keywordflow">if</span> (<a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.getTexture(k) == NULL)
+00605 {
+00606 <span class="keywordflow">if</span> (!blankTex)
+00607 {
+00608 blankTex = CTextureMem::Create1x1WhiteTex();
+00609 }
+00610 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setTexture(k, blankTex);
+00611 }
+00612 }
+00613 <span class="keywordflow">for</span> (; k &lt; <a class="code" href="a05363.html#a83">IDRV_MAT_MAXTEXTURES</a>; ++k)
+00614 {
+00615 <span class="keywordflow">if</span> (<a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.getTexture(k) != NULL)
+00616 {
+00617 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setTexture(k, NULL);
+00618 }
+00619 }
+00620 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CPSTailDota13" doxytag="NL3D::CPSMaterial::getBlendingMode" ></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="a03178.html#NL3D_1_1CPSTailDotw9">CPSMaterial::TBlendingMode</a> NL3D::CPSMaterial::getBlendingMode </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">void&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00551">551</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw1">alphaBlend</a>, <a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2">alphaTest</a>, <a class="el" href="a05969.html#l00278">NL3D::CMaterial::getBlend()</a>, <a class="el" href="a05969.html#l00280">NL3D::CMaterial::getDstBlend()</a>, <a class="el" href="a05969.html#l00279">NL3D::CMaterial::getSrcBlend()</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
+<p>
+Referenced by <a class="el" href="a06283.html#l00352">NL3D::CPSTailDot::hasTransparentFaces()</a>, <a class="el" href="a06279.html#l00206">NL3D::CPSShockWave::hasTransparentFaces()</a>, <a class="el" href="a06277.html#l00524">NL3D::CPSRibbonLookAt::hasTransparentFaces()</a>, <a class="el" href="a06273.html#l00675">NL3D::CPSRibbon::hasTransparentFaces()</a>, <a class="el" href="a06262.html#l00226">NL3D::CPSQuad::hasTransparentFaces()</a>, <a class="el" href="a06235.html#l00252">NL3D::CPSFanLight::hasTransparentFaces()</a>, and <a class="el" href="a06226.html#l00250">NL3D::CPSDot::hasTransparentFaces()</a>.
+<p>
+<div class="fragment"><pre>00552 {
+00553 <span class="keywordflow">if</span> (<a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.getBlend())
+00554 {
+00555 CMaterial::TBlend srcBlend = <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.getSrcBlend();
+00556 CMaterial::TBlend destBlend = <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.getDstBlend();
+00557
+00558 <span class="keywordflow">if</span> (srcBlend == CMaterial::one &amp;&amp; destBlend == CMaterial::one) <span class="keywordflow">return</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw0">add</a>;
+00559 <span class="keywordflow">if</span> (srcBlend == CMaterial::zero &amp;&amp; destBlend == CMaterial::srccolor) <span class="keywordflow">return</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw7">modulate</a>;
+00560 <span class="keywordflow">if</span> (srcBlend == CMaterial::srcalpha &amp;&amp; destBlend == CMaterial::invsrcalpha) <span class="keywordflow">return</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw1">alphaBlend</a>;
+00561
+00562 <span class="comment">// unrecognized mode</span>
+00563 <a class="code" href="a04199.html#a6">nlassert</a>(0);
+00564 <span class="keywordflow">return</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2">alphaTest</a>; <span class="comment">// to avoid a warning only ...</span>
+00565 }
+00566 <span class="keywordflow">else</span>
+00567 {
+00568 <span class="keywordflow">return</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2">alphaTest</a>;
+00569 }
+00570 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CPSTailDota45" doxytag="NL3D::CPSMaterial::isZTestEnabled" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> bool NL3D::CPSMaterial::isZTestEnabled </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00514">514</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a05969.html#l00334">NL3D::CMaterial::getZFunc()</a>.
+<p>
+<div class="fragment"><pre>00515 {
+00516 <span class="keywordflow">return</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.getZFunc() != CMaterial::always;
+00517 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CPSTailDota50" doxytag="NL3D::CPSMaterial::serialMaterial" ></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::CPSMaterial::serialMaterial </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>f</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00493">493</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a05981.html#l00104">sint</a>.
+<p>
+<div class="fragment"><pre>00494 {
+00495 <a class="code" href="a04558.html#a14">sint</a> ver = f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(2);
+00496 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9">TBlendingMode</a> m = <a class="code" href="a03178.html#NL3D_1_1CPSTailDota13">getBlendingMode</a>();
+00497 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama7">serialEnum</a>(m);
+00498 <a class="code" href="a03178.html#NL3D_1_1CPSTailDota52">setBlendingMode</a>(m);
+00499 <span class="keywordflow">if</span> (ver &gt;= 2)
+00500 {
+00501 <span class="keywordtype">bool</span> zTest = <a class="code" href="a03178.html#NL3D_1_1CPSTailDota45">isZTestEnabled</a>();
+00502 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(zTest);
+00503 <a class="code" href="a03178.html#NL3D_1_1CPSTailDota9">enableZTest</a>(zTest);
+00504 }
+00505 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CPSTailDota52" doxytag="NL3D::CPSMaterial::setBlendingMode" ></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::CPSMaterial::setBlendingMode </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9">CPSMaterial::TBlendingMode</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></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+===================================================================================
+<p>
+
+<p>
+Definition at line <a class="el" href="a06257.html#l00520">520</a> of file <a class="el" href="a06257.html">ps_particle_basic.cpp</a>.
+<p>
+References <a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw1">alphaBlend</a>, <a class="el" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2">alphaTest</a>, <a class="el" href="a05641.html#l00078">NL3D::CMaterial::setAlphaTest()</a>, <a class="el" href="a05641.html#l00064">NL3D::CMaterial::setBlend()</a>, <a class="el" href="a05641.html#l00091">NL3D::CMaterial::setBlendFunc()</a>, and <a class="el" href="a05641.html#l00105">NL3D::CMaterial::setZWrite()</a>.
+<p>
+<div class="fragment"><pre>00521 {
+00522 <span class="keywordflow">switch</span> (mode)
+00523 {
+00524 <span class="keywordflow">case</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw0">add</a>:
+00525 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlend(<span class="keyword">true</span>);
+00526 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlendFunc(CMaterial::one, CMaterial::one);
+00527 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setZWrite(<span class="keyword">false</span>);
+00528 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setAlphaTest(<span class="keyword">false</span>);
+00529 <span class="keywordflow">break</span>;
+00530 <span class="keywordflow">case</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw7">modulate</a>:
+00531 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlend(<span class="keyword">true</span>);
+00532 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlendFunc(CMaterial::zero, CMaterial::srccolor);
+00533 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setZWrite(<span class="keyword">false</span>);
+00534 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setAlphaTest(<span class="keyword">false</span>);
+00535 <span class="keywordflow">break</span>;
+00536 <span class="keywordflow">case</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw1">alphaBlend</a>:
+00537 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlend(<span class="keyword">true</span>);
+00538 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlendFunc(CMaterial::srcalpha, CMaterial::invsrcalpha);
+00539 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setZWrite(<span class="keyword">false</span>);
+00540 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setAlphaTest(<span class="keyword">false</span>);
+00541 <span class="keywordflow">break</span>;
+00542 <span class="keywordflow">case</span> <a class="code" href="a03178.html#NL3D_1_1CPSTailDotw9NL3D_1_1CPSTailDotw2">alphaTest</a>:
+00543 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setBlend(<span class="keyword">false</span>);
+00544 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setZWrite(<span class="keyword">true</span>);
+00545 <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setAlphaTest(<span class="keyword">true</span>);
+00546 <span class="keywordflow">break</span>;
+00547 }
+00548 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NL3D_1_1CPSMateriala8" doxytag="NL3D::CPSMaterial::setZBias" ></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::CPSMaterial::setZBias </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top">float&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>value</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap><code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Reimplemented in <a class="el" href="a03177.html#NL3D_1_1CPSDota61">NL3D::CPSDot</a>, <a class="el" href="a03194.html#NL3D_1_1CPSFanLighta82">NL3D::CPSFanLight</a>, <a class="el" href="a03187.html#NL3D_1_1CPSQuada104">NL3D::CPSQuad</a>, <a class="el" href="a03226.html#NL3D_1_1CPSRibbona75">NL3D::CPSRibbon</a>, <a class="el" href="a03230.html#NL3D_1_1CPSRibbonLookAta66">NL3D::CPSRibbonLookAt</a>, <a class="el" href="a03233.html#NL3D_1_1CPSShockWavea98">NL3D::CPSShockWave</a>, and <a class="el" href="a03240.html#NL3D_1_1CPSTailDota60">NL3D::CPSTailDot</a>.
+<p>
+Definition at line <a class="el" href="a06258.html#l00841">841</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>.
+<p>
+References <a class="el" href="a05641.html#l00112">NL3D::CMaterial::setZBias()</a>, and <a class="el" href="a05646.html#l01132">value</a>.
+<p>
+<div class="fragment"><pre>00841 { <a class="code" href="a03178.html#NL3D_1_1CPSTailDotp5">_Mat</a>.setZBias(value); }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NL3D_1_1CPSTailDotp5" doxytag="NL3D::CPSMaterial::_Mat" ></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="a02839.html">CMaterial</a> <a class="el" href="a03178.html#NL3D_1_1CPSTailDotp5">NL3D::CPSMaterial::_Mat</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="a06258.html#l00844">844</a> of file <a class="el" href="a06258.html">ps_particle_basic.h</a>.
+<p>
+Referenced by <a class="el" href="a06231.html#l00055">NL3D::CPSFaceHelper::drawFaces()</a>, <a class="el" href="a06235.html#l00072">NL3D::CPSFanLightHelper::drawFanLight()</a>, <a class="el" href="a06233.html#l00379">NL3D::CPSFaceLookAtHelper::drawLookAt()</a>, and <a class="el" href="a06233.html#l00089">NL3D::CPSFaceLookAtHelper::drawLookAtAlignOnMotion()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06258.html">ps_particle_basic.h</a><li><a class="el" href="a06257.html">ps_particle_basic.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 07:17:56 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>