diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/class_NL3D__CMaterial.html | 3028 |
1 files changed, 3028 insertions, 0 deletions
diff --git a/docs/doxygen/nel/class_NL3D__CMaterial.html b/docs/doxygen/nel/class_NL3D__CMaterial.html new file mode 100644 index 00000000..eba97e97 --- /dev/null +++ b/docs/doxygen/nel/class_NL3D__CMaterial.html @@ -0,0 +1,3028 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.2 on Tue May 8 22:29:03 2001 --> +<center> +<a class="qindex" href="index.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">Compound List</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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NL3D::CMaterial Class Reference</h1>A material represent ALL the states relatives to the aspect of a primitive. +<a href="#_details">More...</a> +<p> +<code>#include <<a class="el" href="material_h-source.html">material.h</a>></code> +<p> +Inheritance diagram for NL3D::CMaterial<p><center><img src="class_NL3D__CMaterial_inherit_graph.gif" border="0" usemap="#NL3D::CMaterial_inherit_map" alt="Inheritance graph"></center> +<map name="NL3D::CMaterial_inherit_map"> +<area href="class_NLMISC__CRefCount.html" shape="rect" coords="0,1,131,19"> +</map> +<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for NL3D::CMaterial:<p><center><img src="class_NL3D__CMaterial_coll_graph.gif" border="0" usemap="#NL3D::CMaterial_coll_map" alt="Collaboration graph"></center> +<map name="NL3D::CMaterial_coll_map"> +<area href="class_NLMISC__CRefCount.html" shape="rect" coords="1,58,132,76"> +<area href="class_NL3D__ITexture.html" shape="rect" coords="219,58,317,76"> +<area href="class_NL3D__IShader.html" shape="rect" coords="220,119,316,138"> +<area href="class_NL3D__CMaterial__CTexEnv.html" shape="rect" coords="184,186,352,204"> +</map> +<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_NL3D__CMaterial-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Public Types</h2></td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#s36">ZFunc</a> { <br> + <a class="el" href="class_NL3D__CMaterial.html#s36s0">always</a> = 0, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s1">never</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s2">equal</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s3">notequal</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s4">less</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s5">lessequal</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s6">greater</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s7">greaterequal</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s36s8">zfuncCount</a> +<br> + }</td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> { <br> + <a class="el" href="class_NL3D__CMaterial.html#s37s9">one</a> = 0, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s37s10">zero</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s37s11">srcalpha</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s37s12">invsrcalpha</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s37s13">srccolor</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s37s14">invsrccolor</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s37s15">blendCount</a> +<br> + }</td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a> { <br> + <a class="el" href="class_NL3D__CMaterial.html#s38s16">Normal</a> = 0, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s38s17">Bump</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s38s18">UserColor</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s38s19">shaderCount</a> +<br> + }</td></tr> +<tr><td> </td><td><font size=-1><em>Normal shader: use simple multitexturing.</em> <a href="#s38">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#s39">TTexOperator</a> { <br> + <a class="el" href="class_NL3D__CMaterial.html#s39s20">Replace</a> = 0, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s39s21">Modulate</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s39s22">Add</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s39s23">AddSigned</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s39s24">InterpolateTexture</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s39s25">InterpolatePrevious</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s39s26">InterpolateDiffuse</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s39s27">InterpolateConstant</a> +<br> + }</td></tr> +<tr><td> </td><td><font size=-1><em>Environements operators: Replace: out= arg0 Modulate: out= arg0 * arg1 Add: out= arg0 + arg1 AddSigned: out= arg0 + arg1 -0.5 Interpolate*: out= arg0*As + arg1*(1-As), where As is taken from the SrcAlpha of Texture/Previous/Diffuse/Constant, respectively if operator is InterpolateTexture/InterpolatePrevious/InterpolateDiffuse/InterpolateConstant.</em> <a href="#s39">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> { <br> + <a class="el" href="class_NL3D__CMaterial.html#s40s29">Previous</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s40s30">Diffuse</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s40s31">Constant</a> +<br> + }</td></tr> +<tr><td> </td><td><font size=-1><em>Source argument.</em> <a href="#s40">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>enum </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> { <br> + <a class="el" href="class_NL3D__CMaterial.html#s41s32">SrcColor</a> = 0, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s41s33">InvSrcColor</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s41s34">SrcAlpha</a>, +<br> + <a class="el" href="class_NL3D__CMaterial.html#s41s35">InvSrcAlpha</a> +<br> + }</td></tr> +<tr><td> </td><td><font size=-1><em>Operand for the argument.</em> <a href="#s41">More...</a><em></em></font><br><br></td></tr> +<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a0">CMaterial</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>ctor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a1">CMaterial</a> (const CMaterial &mat)</td></tr> +<tr><td> </td><td><font size=-1><em>see operator=.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a2">~CMaterial</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>dtor.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>CMaterial& </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a3">operator=</a> (const CMaterial &mat)</td></tr> +<tr><td> </td><td><font size=-1><em>Do not copy DrvInfos, copy all infos and set IDRV_TOUCHED_ALL.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a4">setShader</a> (<a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a> val)</td></tr> +<tr><td> </td><td><font size=-1><em>Set the shader for this material.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a5">getShader</a> () const</td></tr> +<tr><td> </td><td><font size=-1><em>get the current material shadertype.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a6">setTexture</a> (<a class="el" href="types_nl_h.html#a5">uint8</a> stage, <a class="el" href="class_NL3D__ITexture.html">ITexture</a>* ptex)</td></tr> +<tr><td> </td><td><font size=-1><em>set a texture for a special stage.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__ITexture.html">ITexture</a>* </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a7">getTexture</a> (<a class="el" href="types_nl_h.html#a5">uint8</a> stage) const</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a8">texturePresent</a> (<a class="el" href="types_nl_h.html#a5">uint8</a> stage) const</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a9">setBlend</a> (bool active)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a10">setBlendFunc</a> (<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> src, <a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> dst)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a11">setSrcBlend</a> (<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> val)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a12">setDstBlend</a> (<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> val)</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a13">getBlend</a> () const</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a14">getSrcBlend</a> (void) const</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a15">getDstBlend</a> (void) const</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a16">setDoubleSided</a> (bool active)</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a17">detDoubleSided</a> () const</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a18">setZFunc</a> (<a class="el" href="class_NL3D__CMaterial.html#s36">ZFunc</a> val)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a19">setZWrite</a> (bool active)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a20">setZBias</a> (float val)</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s36">ZFunc</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a21">getZFunc</a> (void) const</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a22">getZWrite</a> (void) const</td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a23">getZBias</a> (void) const</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a24">setColor</a> (CRGBA rgba)</td></tr> +<tr><td> </td><td><font size=-1><em>The Color is used only if lighting is disabled. Also, color is replaced by per vertex color (if any).</em> <a href="#a24">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a25">setLighting</a> ( bool active, bool DefMat=true, CRGBA emissive=CRGBA(0,0,0), CRGBA ambient=CRGBA(0,0,0), CRGBA diffuse=CRGBA(0,0,0), CRGBA specular=CRGBA(0,0,0), float shininess= 10)</td></tr> +<tr><td> </td><td><font size=-1><em>Batch setup lighting. Opacity is in diffuse.A.</em> <a href="#a25">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a26">setEmissive</a> ( CRGBA emissive=CRGBA(0,0,0) )</td></tr> +<tr><td> </td><td><font size=-1><em>Set the emissive part ot material. Usefull only if setLighting(true, false) has been done.</em> <a href="#a26">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a27">setAmbient</a> ( CRGBA ambient=CRGBA(0,0,0) )</td></tr> +<tr><td> </td><td><font size=-1><em>Set the Ambient part ot material. Usefull only if setLighting(true, false) has been done.</em> <a href="#a27">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a28">setDiffuse</a> ( CRGBA diffuse=CRGBA(0,0,0) )</td></tr> +<tr><td> </td><td><font size=-1><em>Set the Diffuse part ot material. Usefull only if setLighting(true, false) has been done. NB: opacity is NOT copied from diffuse.A.</em> <a href="#a28">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a29">setOpacity</a> ( <a class="el" href="types_nl_h.html#a5">uint8</a> opa )</td></tr> +<tr><td> </td><td><font size=-1><em>Set the Opacity part ot material. Usefull only if setLighting(true, false) has been done.</em> <a href="#a29">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a30">setSpecular</a> ( CRGBA specular=CRGBA(0,0,0) )</td></tr> +<tr><td> </td><td><font size=-1><em>Set the specular part ot material. Usefull only if setLighting(true, false) has been done.</em> <a href="#a30">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a31">setShininess</a> ( float shininess )</td></tr> +<tr><td> </td><td><font size=-1><em>Set the shininess part ot material. Usefull only if setLighting(true, false) has been done.</em> <a href="#a31">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a32">isLighted</a> () const</td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a33">getColor</a> (void) const</td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a34">getEmissive</a> () const</td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a35">getAmbient</a> () const</td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a36">getDiffuse</a> () const</td></tr> +<tr><td> </td><td><font size=-1><em>return diffuse part. NB: A==opacity.</em> <a href="#a36">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types_nl_h.html#a5">uint8</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a37">getOpacity</a> () const</td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a38">getSpecular</a> () const</td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a39">getShininess</a> () const</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a40">texEnvOpRGB</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, <a class="el" href="class_NL3D__CMaterial.html#s39">TTexOperator</a> ope)</td></tr> +<tr><td> </td><td><font size=-1><em>This part is valid for Normal shaders (nlassert).</em> <a href="#a40">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a41">texEnvArg0RGB</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, <a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> src, <a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> oper)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a42">texEnvArg1RGB</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, <a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> src, <a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> oper)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a43">texEnvOpAlpha</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, <a class="el" href="class_NL3D__CMaterial.html#s39">TTexOperator</a> ope)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a44">texEnvArg0Alpha</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, <a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> src, <a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> oper)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a45">texEnvArg1Alpha</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, <a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> src, <a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> oper)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a46">texConstantColor</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, CRGBA color)</td></tr> +<tr><td> </td><td><font size=-1><em>Setup the constant color for a stage. Used for the TTexSource:Constant.</em> <a href="#a46">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types_nl_h.html#a9">uint32</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a47">getTexEnvMode</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage)</td></tr> +<tr><td> </td><td><font size=-1><em>For push/pop only, get the packed version of the environnment mode.</em> <a href="#a47">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a48">setTexEnvMode</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage, <a class="el" href="types_nl_h.html#a9">uint32</a> packed)</td></tr> +<tr><td> </td><td><font size=-1><em>For push/pop only, set the packed version of the environnment mode.</em> <a href="#a48">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a49">getTexConstantColor</a> (<a class="el" href="types_nl_h.html#a13">uint</a> stage)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a50">setUserColor</a> (CRGBA userColor)</td></tr> +<tr><td> </td><td><font size=-1><em>This part is valid for Normal shaders (nlassert).</em> <a href="#a50">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a51">getUserColor</a> () const</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a52">initUnlit</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Init the material as unlit.</em> <a href="#a52">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a53">initLighted</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Init the material as default white lighted material.</em> <a href="#a53">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a54">serial</a> (<a class="el" href="class_NLMISC__IStream.html">NLMISC::IStream</a> &f)</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types_nl_h.html#a9">uint32</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a55">getFlags</a> () const</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types_nl_h.html#a9">uint32</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a56">getTouched</a> (void) const</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#a57">clearTouched</a> (<a class="el" href="types_nl_h.html#a9">uint32</a> flag)</td></tr> +<tr><td colspan=2><br><h2>Public Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial__CTexEnv.html">CTexEnv</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#m0">_TexEnvs</a> [<a class="el" href="namespace_NL3D.html#a47">IDRV_MAT_MAXTEXTURES</a>]</td></tr> +<tr><td nowrap align=right valign=top>CRefPtr<<a class="el" href="class_NL3D__IShader.html">IShader</a>> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#m1">pShader</a></td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o0">_ShaderType</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types_nl_h.html#a9">uint32</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o1">_Flags</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o2">_SrcBlend</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o3">_DstBlend</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="class_NL3D__CMaterial.html#s36">ZFunc</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o4">_ZFunction</a></td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o5">_ZBias</a></td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o6">_Color</a></td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o7">_Emissive</a></td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o8">_Ambient</a></td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o9">_Diffuse</a></td></tr> +<tr><td nowrap align=right valign=top>CRGBA </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o10">_Specular</a></td></tr> +<tr><td nowrap align=right valign=top>float </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o11">_Shininess</a></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types_nl_h.html#a9">uint32</a> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o12">_Touched</a></td></tr> +<tr><td nowrap align=right valign=top>CSmartPtr<<a class="el" href="class_NL3D__ITexture.html">ITexture</a>> </td><td valign=bottom><a class="el" href="class_NL3D__CMaterial.html#o13">_Textures</a> [<a class="el" href="namespace_NL3D.html#a47">IDRV_MAT_MAXTEXTURES</a>]</td></tr> +</table> +<hr><a name="_details"></a><h2>Detailed Description</h2> +A material represent ALL the states relatives to the aspect of a primitive. +<p> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00082">82</a> of file <a class="el" href="material_h-source.html">material.h</a>.<hr><h2>Member Enumeration Documentation</h2> +<a name="s37" doxytag="NL3D::CMaterial::TBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +enum NL3D::CMaterial::TBlend + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt> +<b>Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><a name="s37s9" doxytag="one"></a><em>one</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s37s10" doxytag="zero"></a><em>zero</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s37s11" doxytag="srcalpha"></a><em>srcalpha</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s37s12" doxytag="invsrcalpha"></a><em>invsrcalpha</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s37s13" doxytag="srccolor"></a><em>srccolor</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s37s14" doxytag="invsrccolor"></a><em>invsrccolor</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s37s15" doxytag="blendCount"></a><em>blendCount</em> + </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00087">87</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="s38" doxytag="NL3D::CMaterial::TShader"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +enum NL3D::CMaterial::TShader + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Normal shader: use simple multitexturing. +<p> +<ul> +<li>see texEnv*() methods. Bump:<ul> +<li>not implemented yet. UserColor:<li>UserColor (see <a class="el" href="class_NL3D__CMaterial.html#a50">setUserColor</a>()) is blended with precomputed texture/textureAlpha.<li>Alpha Blending ignore Alpha of texture (of course :) ), but use Alpha diffuse (vertex/material color). </ul> +</ul> +<dl compact><dt> +<b>Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><a name="s38s16" doxytag="Normal"></a><em>Normal</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s38s17" doxytag="Bump"></a><em>Bump</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s38s18" doxytag="UserColor"></a><em>UserColor</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s38s19" doxytag="shaderCount"></a><em>shaderCount</em> + </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00097">97</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="s41" doxytag="NL3D::CMaterial::TTexOperand"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +enum NL3D::CMaterial::TTexOperand + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Operand for the argument. +<p> +For Alpha arguments, only SrcAlpha and InvSrcAlpha are Valid!! <br> + SrcColor: arg= ColorSource. InvSrcColor: arg= 1-ColorSource. SrcAlpha: arg= AlphaSource. InvSrcAlpha: arg= 1-AlphaSource. <dl compact><dt> +<b>Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><a name="s41s32" doxytag="SrcColor"></a><em>SrcColor</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s41s33" doxytag="InvSrcColor"></a><em>InvSrcColor</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s41s34" doxytag="SrcAlpha"></a><em>SrcAlpha</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s41s35" doxytag="InvSrcAlpha"></a><em>InvSrcAlpha</em> + </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00128">128</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="s39" doxytag="NL3D::CMaterial::TTexOperator"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +enum NL3D::CMaterial::TTexOperator + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Environements operators: Replace: out= arg0 Modulate: out= arg0 * arg1 Add: out= arg0 + arg1 AddSigned: out= arg0 + arg1 -0.5 Interpolate*: out= arg0*As + arg1*(1-As), where As is taken from the SrcAlpha of Texture/Previous/Diffuse/Constant, respectively if operator is InterpolateTexture/InterpolatePrevious/InterpolateDiffuse/InterpolateConstant. +<p> +<dl compact><dt> +<b>Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><a name="s39s20" doxytag="Replace"></a><em>Replace</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s39s21" doxytag="Modulate"></a><em>Modulate</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s39s22" doxytag="Add"></a><em>Add</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s39s23" doxytag="AddSigned"></a><em>AddSigned</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s39s24" doxytag="InterpolateTexture"></a><em>InterpolateTexture</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s39s25" doxytag="InterpolatePrevious"></a><em>InterpolatePrevious</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s39s26" doxytag="InterpolateDiffuse"></a><em>InterpolateDiffuse</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s39s27" doxytag="InterpolateConstant"></a><em>InterpolateConstant</em> + </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00110">110</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="s40" doxytag="NL3D::CMaterial::TTexSource"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +enum NL3D::CMaterial::TTexSource + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Source argument. +<p> +Texture: the arg is taken from the current texture of the stage. Previous: the arg is taken from the previous enabled stage. If stage 0, Previous==Diffuse. Diffuse: the arg is taken from the primary color vertex. Constant: the arg is taken from the constant color setuped for this texture stage. <dl compact><dt> +<b>Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><a name="s40s29" doxytag="Previous"></a><em>Previous</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s40s30" doxytag="Diffuse"></a><em>Diffuse</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s40s31" doxytag="Constant"></a><em>Constant</em> + </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00119">119</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="s36" doxytag="NL3D::CMaterial::ZFunc"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +enum NL3D::CMaterial::ZFunc + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +<dl compact><dt> +<b>Enumeration values:</b><dd> +<table border=0 cellspacing=2 cellpadding=0> +<tr><td valign=top><a name="s36s0" doxytag="always"></a><em>always</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s1" doxytag="never"></a><em>never</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s2" doxytag="equal"></a><em>equal</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s3" doxytag="notequal"></a><em>notequal</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s4" doxytag="less"></a><em>less</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s5" doxytag="lessequal"></a><em>lessequal</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s6" doxytag="greater"></a><em>greater</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s7" doxytag="greaterequal"></a><em>greaterequal</em> + </td><td> +</td></tr> +<tr><td valign=top><a name="s36s8" doxytag="zfuncCount"></a><em>zfuncCount</em> + </td><td> +</td></tr> +</table> +</dl> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00086">86</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a name="a0" doxytag="NL3D::CMaterial::CMaterial"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +NL3D::CMaterial::CMaterial ( + </b></td> + <td valign="bottom"><b> +) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +ctor. +<p> +By default, shader is normal, SrcBlend is srcalpha, dstblend is invsrcalpha, ZFunction is lessequal, ZBias is 0, Color is White: (255,255,255,255), not double sided. +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00038">38</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<a name="a1" doxytag="NL3D::CMaterial::CMaterial"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +NL3D::CMaterial::CMaterial ( + </b></td> + <td valign="bottom"><b> +const CMaterial & <em>mat</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +see operator=. +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00141">141</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a2" doxytag="NL3D::CMaterial::~CMaterial"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +NL3D::CMaterial::~CMaterial ( + </b></td> + <td valign="bottom"><b> +) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +dtor. +<p> + +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00107">107</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="a57" doxytag="NL3D::CMaterial::clearTouched"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::clearTouched ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a9">uint32</a> <em>flag</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00390">390</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a17" doxytag="NL3D::CMaterial::detDoubleSided"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NL3D::CMaterial::detDoubleSided ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00186">186</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a35" doxytag="NL3D::CMaterial::getAmbient"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::getAmbient ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00233">233</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a13" doxytag="NL3D::CMaterial::getBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NL3D::CMaterial::getBlend ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00176">176</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a33" doxytag="NL3D::CMaterial::getColor"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::getColor ( + </b></td> + <td valign="bottom"><b> +void ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00231">231</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a36" doxytag="NL3D::CMaterial::getDiffuse"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::getDiffuse ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +return diffuse part. NB: A==opacity. +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00235">235</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a15" doxytag="NL3D::CMaterial::getDstBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> NL3D::CMaterial::getDstBlend ( + </b></td> + <td valign="bottom"><b> +void ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00178">178</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a34" doxytag="NL3D::CMaterial::getEmissive"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::getEmissive ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00232">232</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a55" doxytag="NL3D::CMaterial::getFlags"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="types_nl_h.html#a9">uint32</a> NL3D::CMaterial::getFlags ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00388">388</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a37" doxytag="NL3D::CMaterial::getOpacity"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="types_nl_h.html#a5">uint8</a> NL3D::CMaterial::getOpacity ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00236">236</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a5" doxytag="NL3D::CMaterial::getShader"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a> NL3D::CMaterial::getShader ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +get the current material shadertype. +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00153">153</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a39" doxytag="NL3D::CMaterial::getShininess"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +float NL3D::CMaterial::getShininess ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00238">238</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a38" doxytag="NL3D::CMaterial::getSpecular"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::getSpecular ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00237">237</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a14" doxytag="NL3D::CMaterial::getSrcBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> NL3D::CMaterial::getSrcBlend ( + </b></td> + <td valign="bottom"><b> +void ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00177">177</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a49" doxytag="NL3D::CMaterial::getTexConstantColor"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::getTexConstantColor ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00268">268</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a47" doxytag="NL3D::CMaterial::getTexEnvMode"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="types_nl_h.html#a9">uint32</a> NL3D::CMaterial::getTexEnvMode ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +For push/pop only, get the packed version of the environnment mode. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00254">254</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a7" doxytag="NL3D::CMaterial::getTexture"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__ITexture.html">ITexture</a> * NL3D::CMaterial::getTexture ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a5">uint8</a> <em>n</em> ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00046">46</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a56" doxytag="NL3D::CMaterial::getTouched"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="types_nl_h.html#a9">uint32</a> NL3D::CMaterial::getTouched ( + </b></td> + <td valign="bottom"><b> +void ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00389">389</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a51" doxytag="NL3D::CMaterial::getUserColor"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::getUserColor ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00291">291</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a23" doxytag="NL3D::CMaterial::getZBias"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +float NL3D::CMaterial::getZBias ( + </b></td> + <td valign="bottom"><b> +void ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00198">198</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a21" doxytag="NL3D::CMaterial::getZFunc"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s36">ZFunc</a> NL3D::CMaterial::getZFunc ( + </b></td> + <td valign="bottom"><b> +void ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00196">196</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a22" doxytag="NL3D::CMaterial::getZWrite"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NL3D::CMaterial::getZWrite ( + </b></td> + <td valign="bottom"><b> +void ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00197">197</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a53" doxytag="NL3D::CMaterial::initLighted"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::initLighted ( + </b></td> + <td valign="bottom"><b> +) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Init the material as default white lighted material. +<p> +normal shader, lighting .... Default to: normal shader, lighting to default material, no texture, ZBias=0, ZFunc= lessequal, ZWrite==true, no blend. All other states are undefined (such as blend function, since blend is disabled). +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00068">68</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<a name="a52" doxytag="NL3D::CMaterial::initUnlit"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::initUnlit ( + </b></td> + <td valign="bottom"><b> +) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Init the material as unlit. +<p> +normal shader, no lighting .... Default to: normal shader, no lighting, color to White(1,1,1,1), no texture, ZBias=0, ZFunc= lessequal, ZWrite==true, no blend. All other states are undefined (such as blend function, since blend is disabled). +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00053">53</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<a name="a32" doxytag="NL3D::CMaterial::isLighted"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NL3D::CMaterial::isLighted ( + </b></td> + <td valign="bottom"><b> +) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00229">229</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="a3" doxytag="NL3D::CMaterial::operator="></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CMaterial & NL3D::CMaterial::operator= ( + </b></td> + <td valign="bottom"><b> +const CMaterial & <em>mat</em> ) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Do not copy DrvInfos, copy all infos and set IDRV_TOUCHED_ALL. +<p> + +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00076">76</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<a name="a54" doxytag="NL3D::CMaterial::serial"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::serial ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="class_NLMISC__IStream.html">NLMISC::IStream</a> & <em>f</em> ) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00115">115</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<a name="a27" doxytag="NL3D::CMaterial::setAmbient"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setAmbient ( + </b></td> + <td valign="bottom"><b> +CRGBA <em>ambient</em> = CRGBA(0,0,0) )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the Ambient part ot material. Usefull only if setLighting(true, false) has been done. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00150">150</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a9" doxytag="NL3D::CMaterial::setBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setBlend ( + </b></td> + <td valign="bottom"><b> +bool <em>active</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00064">64</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a10" doxytag="NL3D::CMaterial::setBlendFunc"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setBlendFunc ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> <em>src</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> <em>dst</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00078">78</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a24" doxytag="NL3D::CMaterial::setColor"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setColor ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="class_NLMISC__CRGBA.html">NLMISC::CRGBA</a> <em>rgba</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +The Color is used only if lighting is disabled. Also, color is replaced by per vertex color (if any). +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00105">105</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a28" doxytag="NL3D::CMaterial::setDiffuse"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setDiffuse ( + </b></td> + <td valign="bottom"><b> +CRGBA <em>diffuse</em> = CRGBA(0,0,0) )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the Diffuse part ot material. Usefull only if setLighting(true, false) has been done. NB: opacity is NOT copied from diffuse.A. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00156">156</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a16" doxytag="NL3D::CMaterial::setDoubleSided"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setDoubleSided ( + </b></td> + <td valign="bottom"><b> +bool <em>active</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00071">71</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a12" doxytag="NL3D::CMaterial::setDstBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setDstBlend ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> <em>val</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00058">58</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a26" doxytag="NL3D::CMaterial::setEmissive"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setEmissive ( + </b></td> + <td valign="bottom"><b> +CRGBA <em>emissive</em> = CRGBA(0,0,0) )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the emissive part ot material. Usefull only if setLighting(true, false) has been done. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00144">144</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a25" doxytag="NL3D::CMaterial::setLighting"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setLighting ( + </b></td> + <td valign="bottom"><b> +bool <em>active</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +bool <em>DefMat</em> = true, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLMISC__CRGBA.html">NLMISC::CRGBA</a> <em>emissive</em> = CRGBA(0,0,0), + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLMISC__CRGBA.html">NLMISC::CRGBA</a> <em>ambient</em> = CRGBA(0,0,0), + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLMISC__CRGBA.html">NLMISC::CRGBA</a> <em>diffuse</em> = CRGBA(0,0,0), + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NLMISC__CRGBA.html">NLMISC::CRGBA</a> <em>specular</em> = CRGBA(0,0,0), + </b></td> + </tr> + <tr> + <td></td> + <td><b> +float <em>shininess</em> = 10 )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Batch setup lighting. Opacity is in diffuse.A. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00111">111</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a29" doxytag="NL3D::CMaterial::setOpacity"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setOpacity ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a5">uint8</a> <em>opa</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the Opacity part ot material. Usefull only if setLighting(true, false) has been done. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00165">165</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a4" doxytag="NL3D::CMaterial::setShader"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setShader ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a> <em>val</em> ) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the shader for this material. +<p> +All textures are reseted!! +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00179">179</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<a name="a31" doxytag="NL3D::CMaterial::setShininess"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setShininess ( + </b></td> + <td valign="bottom"><b> +float <em>shininess</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the shininess part ot material. Usefull only if setLighting(true, false) has been done. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00177">177</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a30" doxytag="NL3D::CMaterial::setSpecular"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setSpecular ( + </b></td> + <td valign="bottom"><b> +CRGBA <em>specular</em> = CRGBA(0,0,0) )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Set the specular part ot material. Usefull only if setLighting(true, false) has been done. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00171">171</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a11" doxytag="NL3D::CMaterial::setSrcBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setSrcBlend ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> <em>val</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00052">52</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a48" doxytag="NL3D::CMaterial::setTexEnvMode"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setTexEnvMode ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="types_nl_h.html#a9">uint32</a> <em>packed</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +For push/pop only, set the packed version of the environnment mode. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00261">261</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a6" doxytag="NL3D::CMaterial::setTexture"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setTexture ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a5">uint8</a> <em>n</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__ITexture.html">ITexture</a> * <em>ptex</em> ) + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +set a texture for a special stage. +<p> +Different usage according to shader:<ul> +<li>Normal shader do multitexturing (see texEnv*() methods).<li>UserColor assert if stage!=0. (NB: internal only: UserColor setup texture to stage 0 and 1). </ul> + +<p> +Definition at line <a class="el" href="material_cpp-source.html#l00214">214</a> of file <a class="el" href="material_cpp-source.html">material.cpp</a>. </td> + </tr> +</table> +<a name="a50" doxytag="NL3D::CMaterial::setUserColor"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setUserColor ( + </b></td> + <td valign="bottom"><b> +CRGBA <em>userColor</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This part is valid for Normal shaders (nlassert). +<p> +<dl compact><dt> +<b>See also: </b><dd> + <a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a>. </dl> +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00283">283</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a20" doxytag="NL3D::CMaterial::setZBias"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setZBias ( + </b></td> + <td valign="bottom"><b> +float <em>val</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00099">99</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a18" doxytag="NL3D::CMaterial::setZFunc"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setZFunc ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="class_NL3D__CMaterial.html#s36">ZFunc</a> <em>val</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00086">86</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a19" doxytag="NL3D::CMaterial::setZWrite"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::setZWrite ( + </b></td> + <td valign="bottom"><b> +bool <em>active</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00092">92</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a46" doxytag="NL3D::CMaterial::texConstantColor"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::texConstantColor ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +CRGBA <em>color</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Setup the constant color for a stage. Used for the TTexSource:Constant. +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00245">245</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a44" doxytag="NL3D::CMaterial::texEnvArg0Alpha"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::texEnvArg0Alpha ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> <em>src</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> <em>oper</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00224">224</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a41" doxytag="NL3D::CMaterial::texEnvArg0RGB"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::texEnvArg0RGB ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> <em>src</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> <em>oper</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00198">198</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a45" doxytag="NL3D::CMaterial::texEnvArg1Alpha"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::texEnvArg1Alpha ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> <em>src</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> <em>oper</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00233">233</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a42" doxytag="NL3D::CMaterial::texEnvArg1RGB"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::texEnvArg1RGB ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s40">TTexSource</a> <em>src</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s41">TTexOperand</a> <em>oper</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00206">206</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a43" doxytag="NL3D::CMaterial::texEnvOpAlpha"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::texEnvOpAlpha ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s39">TTexOperator</a> <em>ope</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00217">217</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a40" doxytag="NL3D::CMaterial::texEnvOpRGB"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +void NL3D::CMaterial::texEnvOpRGB ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a13">uint</a> <em>stage</em>, + </b></td> + </tr> + <tr> + <td></td> + <td><b> +<a class="el" href="class_NL3D__CMaterial.html#s39">TTexOperator</a> <em>ope</em> )<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +This part is valid for Normal shaders (nlassert). +<p> +It maps the EXT_texture_env_combine opengl extension. A stage is enabled iff his texture is !=NULL. By default, all stages are setup to Modulate style: AlphaOp=RGBOp= Modulate, RGBArg0= TextureSrcColor, RGBArg1= PreviousSrcColor, AlphaArg0= TextureSrcAlpha, AlphaArg1= PreviousSrcAlpha. ConstantColor default to White(255,255,255,255). +<p> +For compatibility problems:<ul> +<li>no scaling is allowed (some cards do not implement this well).<li>Texture can be the source only for Arg0 (DirectX restriction). nlassert...</ul> +NB: for Alpha Aguments, only operands SrcAlpha and InvSrcAlpha are valid (nlassert..). +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00191">191</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<a name="a8" doxytag="NL3D::CMaterial::texturePresent"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +bool NL3D::CMaterial::texturePresent ( + </b></td> + <td valign="bottom"><b> +<a class="el" href="types_nl_h.html#a5">uint8</a> <em>n</em> ) const<code> [inline]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="driver_material_inline_h-source.html#l00036">36</a> of file <a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="o8" doxytag="NL3D::CMaterial::_Ambient"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::_Ambient<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00377">377</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o6" doxytag="NL3D::CMaterial::_Color"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::_Color<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00376">376</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o9" doxytag="NL3D::CMaterial::_Diffuse"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::_Diffuse<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00377">377</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o3" doxytag="NL3D::CMaterial::_DstBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> NL3D::CMaterial::_DstBlend<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00373">373</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o7" doxytag="NL3D::CMaterial::_Emissive"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::_Emissive<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00377">377</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o1" doxytag="NL3D::CMaterial::_Flags"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="types_nl_h.html#a9">uint32</a> NL3D::CMaterial::_Flags<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00372">372</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o0" doxytag="NL3D::CMaterial::_ShaderType"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s38">TShader</a> NL3D::CMaterial::_ShaderType<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00371">371</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o11" doxytag="NL3D::CMaterial::_Shininess"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +float NL3D::CMaterial::_Shininess<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00378">378</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o10" doxytag="NL3D::CMaterial::_Specular"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRGBA NL3D::CMaterial::_Specular<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00377">377</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o2" doxytag="NL3D::CMaterial::_SrcBlend"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s37">TBlend</a> NL3D::CMaterial::_SrcBlend<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00373">373</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="m0" doxytag="NL3D::CMaterial::_TexEnvs"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial__CTexEnv.html">CTexEnv</a> NL3D::CMaterial::_TexEnvs[<a class="el" href="namespace_NL3D.html#a47">IDRV_MAT_MAXTEXTURES</a>] + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00385">385</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o13" doxytag="NL3D::CMaterial::_Textures"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CSmartPtr< <a class="el" href="class_NL3D__ITexture.html">ITexture</a> > NL3D::CMaterial::_Textures[<a class="el" href="namespace_NL3D.html#a47">IDRV_MAT_MAXTEXTURES</a>]<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00381">381</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o12" doxytag="NL3D::CMaterial::_Touched"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="types_nl_h.html#a9">uint32</a> NL3D::CMaterial::_Touched<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00379">379</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o5" doxytag="NL3D::CMaterial::_ZBias"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +float NL3D::CMaterial::_ZBias<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00375">375</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="o4" doxytag="NL3D::CMaterial::_ZFunction"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +<a class="el" href="class_NL3D__CMaterial.html#s36">ZFunc</a> NL3D::CMaterial::_ZFunction<code> [private]</code> + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00374">374</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<a name="m1" doxytag="NL3D::CMaterial::pShader"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td nowrap valign="top"><b> +CRefPtr< <a class="el" href="class_NL3D__IShader.html">IShader</a> > NL3D::CMaterial::pShader + </b></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="material_h-source.html#l00386">386</a> of file <a class="el" href="material_h-source.html">material.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="material_h-source.html">material.h</a><li><a class="el" href="driver_material_inline_h-source.html">driver_material_inline.h</a><li><a class="el" href="material_cpp-source.html">material.cpp</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |