diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/driver__material__inline_8h-source.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/driver__material__inline_8h-source.html')
-rw-r--r-- | docs/doxygen/nel/driver__material__inline_8h-source.html | 457 |
1 files changed, 457 insertions, 0 deletions
diff --git a/docs/doxygen/nel/driver__material__inline_8h-source.html b/docs/doxygen/nel/driver__material__inline_8h-source.html new file mode 100644 index 00000000..b275184e --- /dev/null +++ b/docs/doxygen/nel/driver__material__inline_8h-source.html @@ -0,0 +1,457 @@ +<!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.14 --> +<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>driver_material_inline.h</h1><a href="driver__material__inline_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <font class="comment">/* Copyright, 2000 Nevrax Ltd.</font> +00008 <font class="comment"> *</font> +00009 <font class="comment"> * This file is part of NEVRAX NEL.</font> +00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font> +00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font> +00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font> +00013 <font class="comment"> * any later version.</font> +00014 <font class="comment"></font> +00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font> +00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font> +00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font> +00018 <font class="comment"> * General Public License for more details.</font> +00019 <font class="comment"></font> +00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font> +00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font> +00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font> +00023 <font class="comment"> * MA 02111-1307, USA.</font> +00024 <font class="comment"> */</font> +00025 +00026 <font class="preprocessor">#ifndef NL_DRIVER_MATERIAL_INLINE_H</font> +00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_DRIVER_MATERIAL_INLINE_H</font> +00028 <font class="preprocessor"></font> +00029 <font class="preprocessor">#include "<a class="code" href="debug_8h.html">nel/misc/debug.h</a>"</font> +00030 +00031 <font class="keyword">namespace </font>NL3D +00032 { +00033 +00034 <font class="comment">// --------------------------------------------------</font> +00035 +<a name="l00036"></a><a class="code" href="classNL3D_1_1CMaterial.html#z541_2">00036</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> CMaterial::texturePresent(uint8 n)<font class="keyword"> const</font> +00037 <font class="keyword"></font>{ +00038 <a class="code" href="debug_8h.html#a6">nlassert</a>(n<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00039 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CMaterial.html#o16">_Textures</a>[n]) +00040 { +00041 <font class="keywordflow">return</font>(true); +00042 } +00043 <font class="keywordflow">return</font>(false); +00044 } +00045 +<a name="l00046"></a><a class="code" href="classNL3D_1_1CMaterial.html#z541_1">00046</a> <font class="keyword">inline</font> ITexture* CMaterial::getTexture(uint8 n)<font class="keyword"> const</font> +00047 <font class="keyword"></font>{ +00048 <a class="code" href="debug_8h.html#a6">nlassert</a>(n<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00049 <font class="keywordflow">return</font>(<a class="code" href="classNL3D_1_1CMaterial.html#o16">_Textures</a>[n]); +00050 } +00051 +<a name="l00052"></a><a class="code" href="classNL3D_1_1CMaterial.html#z542_2">00052</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setSrcBlend(TBlend val) +00053 { +00054 <a class="code" href="classNL3D_1_1CMaterial.html#o2">_SrcBlend</a>=val; +00055 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a95">IDRV_TOUCHED_BLENDFUNC</a>; +00056 } +00057 +<a name="l00058"></a><a class="code" href="classNL3D_1_1CMaterial.html#z542_3">00058</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setDstBlend(TBlend val) +00059 { +00060 <a class="code" href="classNL3D_1_1CMaterial.html#o3">_DstBlend</a>=val; +00061 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a95">IDRV_TOUCHED_BLENDFUNC</a>; +00062 } +00063 +<a name="l00064"></a><a class="code" href="classNL3D_1_1CMaterial.html#z542_0">00064</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setBlend(<font class="keywordtype">bool</font> active) +00065 { +00066 <font class="keywordflow">if</font> (active) <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>|=<a class="code" href="namespaceNL3D.html#a117">IDRV_MAT_BLEND</a>; +00067 <font class="keywordflow">else</font> <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>&=~<a class="code" href="namespaceNL3D.html#a117">IDRV_MAT_BLEND</a>; +00068 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a96">IDRV_TOUCHED_BLEND</a>; +00069 } +00070 +<a name="l00071"></a><a class="code" href="classNL3D_1_1CMaterial.html#z544_0">00071</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setDoubleSided(<font class="keywordtype">bool</font> active) +00072 { +00073 <font class="keywordflow">if</font> (active) <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>|=<a class="code" href="namespaceNL3D.html#a118">IDRV_MAT_DOUBLE_SIDED</a>; +00074 <font class="keywordflow">else</font> <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>&=~<a class="code" href="namespaceNL3D.html#a118">IDRV_MAT_DOUBLE_SIDED</a>; +00075 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a104">IDRV_TOUCHED_DOUBLE_SIDED</a>; +00076 } +00077 +<a name="l00078"></a><a class="code" href="classNL3D_1_1CMaterial.html#z545_0">00078</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setAlphaTest(<font class="keywordtype">bool</font> active) +00079 { +00080 <font class="keywordflow">if</font> (active) <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>|=<a class="code" href="namespaceNL3D.html#a119">IDRV_MAT_ALPHA_TEST</a>; +00081 <font class="keywordflow">else</font> <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>&=~<a class="code" href="namespaceNL3D.html#a119">IDRV_MAT_ALPHA_TEST</a>; +00082 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a106">IDRV_TOUCHED_ALPHA_TEST</a>; +00083 } +00084 +<a name="l00085"></a><a class="code" href="classNL3D_1_1CMaterial.html#z545_2">00085</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setAlphaTestThreshold(<font class="keywordtype">float</font> thre) +00086 { +00087 <a class="code" href="classNL3D_1_1CMaterial.html#o12">_AlphaTestThreshold</a>= thre; +00088 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a107">IDRV_TOUCHED_ALPHA_TEST_THRE</a>; +00089 } +00090 +<a name="l00091"></a><a class="code" href="classNL3D_1_1CMaterial.html#z542_1">00091</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setBlendFunc(TBlend <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, TBlend dst) +00092 { +00093 <a class="code" href="classNL3D_1_1CMaterial.html#o2">_SrcBlend</a>=<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>; +00094 <a class="code" href="classNL3D_1_1CMaterial.html#o3">_DstBlend</a>=dst; +00095 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a95">IDRV_TOUCHED_BLENDFUNC</a>; +00096 } +00097 +00098 +<a name="l00099"></a><a class="code" href="classNL3D_1_1CMaterial.html#z546_0">00099</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setZFunc(ZFunc val) +00100 { +00101 <a class="code" href="classNL3D_1_1CMaterial.html#o4">_ZFunction</a>=val; +00102 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a98">IDRV_TOUCHED_ZFUNC</a>; +00103 } +00104 +<a name="l00105"></a><a class="code" href="classNL3D_1_1CMaterial.html#z546_1">00105</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setZWrite(<font class="keywordtype">bool</font> active) +00106 { +00107 <font class="keywordflow">if</font> (active) <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>|=<a class="code" href="namespaceNL3D.html#a112">IDRV_MAT_ZWRITE</a>; +00108 <font class="keywordflow">else</font> <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>&=~<a class="code" href="namespaceNL3D.html#a112">IDRV_MAT_ZWRITE</a>; +00109 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a103">IDRV_TOUCHED_ZWRITE</a>; +00110 } +00111 +<a name="l00112"></a><a class="code" href="classNL3D_1_1CMaterial.html#z546_2">00112</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setZBias(<font class="keywordtype">float</font> val) +00113 { +00114 <a class="code" href="classNL3D_1_1CMaterial.html#o5">_ZBias</a>=val; +00115 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a99">IDRV_TOUCHED_ZBIAS</a>; +00116 } +00117 +<a name="l00118"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_0">00118</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setColor(<a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> rgba) +00119 { +00120 <font class="keywordflow">if</font> (<a class="code" href="classNL3D_1_1CMaterial.html#o6">_Color</a> != rgba) +00121 { +00122 <a class="code" href="classNL3D_1_1CMaterial.html#o6">_Color</a>=rgba; +00123 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a100">IDRV_TOUCHED_COLOR</a>; +00124 } +00125 } +00126 +<a name="l00127"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_1">00127</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setLighting( <font class="keywordtype">bool</font> active, +00128 <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> emissive, +00129 <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> ambient, +00130 <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> diffuse, +00131 <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a> specular, +00132 <font class="keywordtype">float</font> shininess) +00133 { +00134 <font class="keywordflow">if</font> (active) +00135 { +00136 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>|=<a class="code" href="namespaceNL3D.html#a114">IDRV_MAT_LIGHTING</a>; +00137 } +00138 <font class="keywordflow">else</font> +00139 { +00140 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>&=~<a class="code" href="namespaceNL3D.html#a114">IDRV_MAT_LIGHTING</a>; +00141 } +00142 <a class="code" href="classNL3D_1_1CMaterial.html#o7">_Emissive</a>=emissive; +00143 <a class="code" href="classNL3D_1_1CMaterial.html#o8">_Ambient</a>=ambient; +00144 <a class="code" href="classNL3D_1_1CMaterial.html#o9">_Diffuse</a>=diffuse; +00145 <a class="code" href="classNL3D_1_1CMaterial.html#o10">_Specular</a>=specular; +00146 <a class="code" href="classNL3D_1_1CMaterial.html#o11">_Shininess</a>= shininess; +00147 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00148 } +00149 +00150 +00151 <font class="comment">// ***************************************************************************</font> +<a name="l00152"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_2">00152</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setEmissive( CRGBA emissive) +00153 { +00154 <a class="code" href="classNL3D_1_1CMaterial.html#o7">_Emissive</a>= emissive; +00155 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00156 } +00157 <font class="comment">// ***************************************************************************</font> +<a name="l00158"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_3">00158</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setAmbient( CRGBA ambient) +00159 { +00160 <a class="code" href="classNL3D_1_1CMaterial.html#o8">_Ambient</a>= ambient; +00161 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00162 } +00163 <font class="comment">// ***************************************************************************</font> +<a name="l00164"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_4">00164</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setDiffuse( CRGBA diffuse) +00165 { +00166 <font class="comment">// Keep opacity.</font> +00167 <a class="code" href="classNL3D_1_1CMaterial.html#o9">_Diffuse</a>.R= diffuse.R; +00168 <a class="code" href="classNL3D_1_1CMaterial.html#o9">_Diffuse</a>.G= diffuse.G; +00169 <a class="code" href="classNL3D_1_1CMaterial.html#o9">_Diffuse</a>.B= diffuse.B; +00170 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00171 } +00172 <font class="comment">// ***************************************************************************</font> +<a name="l00173"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_5">00173</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setOpacity( uint8 opa ) +00174 { +00175 <a class="code" href="classNL3D_1_1CMaterial.html#o9">_Diffuse</a>.A= opa; +00176 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00177 } +00178 <font class="comment">// ***************************************************************************</font> +<a name="l00179"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_6">00179</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setSpecular( CRGBA specular) +00180 { +00181 <a class="code" href="classNL3D_1_1CMaterial.html#o10">_Specular</a>= specular; +00182 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00183 } +00184 <font class="comment">// ***************************************************************************</font> +<a name="l00185"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_7">00185</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setShininess( <font class="keywordtype">float</font> shininess ) +00186 { +00187 <a class="code" href="classNL3D_1_1CMaterial.html#o11">_Shininess</a>= shininess; +00188 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00189 } +00190 <font class="comment">// ***************************************************************************</font> +<a name="l00191"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_8">00191</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setLightedVertexColor( <font class="keywordtype">bool</font> useLightedVertexColor ) +00192 { +00193 <font class="keywordflow">if</font> (useLightedVertexColor) +00194 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> |= <a class="code" href="namespaceNL3D.html#a121">IDRV_MAT_LIGHTED_VERTEX_COLOR</a>; +00195 <font class="keywordflow">else</font> +00196 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> &= ~<a class="code" href="namespaceNL3D.html#a121">IDRV_MAT_LIGHTED_VERTEX_COLOR</a>; +00197 <a class="code" href="classNL3D_1_1CMaterial.html#o13">_Touched</a>|=<a class="code" href="namespaceNL3D.html#a101">IDRV_TOUCHED_LIGHTING</a>; +00198 } +00199 +00200 <font class="comment">// ***************************************************************************</font> +<a name="l00201"></a><a class="code" href="classNL3D_1_1CMaterial.html#z547_9">00201</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> CMaterial::getLightedVertexColor ()<font class="keyword"> const</font> +00202 <font class="keyword"></font>{ +00203 <font class="keywordflow">return</font> (<a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> & <a class="code" href="namespaceNL3D.html#a121">IDRV_MAT_LIGHTED_VERTEX_COLOR</a>) != 0; +00204 } +00205 +00206 +00207 <font class="comment">// ***************************************************************************</font> +00208 <font class="comment">// ***************************************************************************</font> +00209 <font class="comment">// ***************************************************************************</font> +00210 +00211 +00212 +00213 <font class="comment">// ***************************************************************************</font> +<a name="l00214"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_0">00214</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::texEnvOpRGB(uint stage, TTexOperator ope) +00215 { +00216 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00217 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00218 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.OpRGB= ope; +00219 } +00220 <font class="comment">// ***************************************************************************</font> +<a name="l00221"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_1">00221</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::texEnvArg0RGB(uint stage, TTexSource <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, TTexOperand oper) +00222 { +00223 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00224 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00225 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.SrcArg0RGB= <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>; +00226 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.OpArg0RGB= oper; +00227 } +00228 <font class="comment">// ***************************************************************************</font> +<a name="l00229"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_2">00229</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::texEnvArg1RGB(uint stage, TTexSource <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, TTexOperand oper) +00230 { +00231 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00232 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00233 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>!=<a class="code" href="classNL3D_1_1CMaterial.html#z538_1s40">Texture</a>); +00234 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.SrcArg1RGB= <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>; +00235 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.OpArg1RGB= oper; +00236 } +00237 +00238 +00239 <font class="comment">// ***************************************************************************</font> +<a name="l00240"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_3">00240</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::texEnvOpAlpha(uint stage, TTexOperator ope) +00241 { +00242 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00243 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00244 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.OpAlpha= ope; +00245 } +00246 <font class="comment">// ***************************************************************************</font> +<a name="l00247"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_4">00247</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::texEnvArg0Alpha(uint stage, TTexSource <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, TTexOperand oper) +00248 { +00249 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00250 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00251 <a class="code" href="debug_8h.html#a6">nlassert</a>(oper==<a class="code" href="classNL3D_1_1CMaterial.html#z538_2s46">SrcAlpha</a> || oper==<a class="code" href="classNL3D_1_1CMaterial.html#z538_2s47">InvSrcAlpha</a>); +00252 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.SrcArg0Alpha= <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>; +00253 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.OpArg0Alpha= oper; +00254 } +00255 <font class="comment">// ***************************************************************************</font> +<a name="l00256"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_5">00256</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::texEnvArg1Alpha(uint stage, TTexSource <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>, TTexOperand oper) +00257 { +00258 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00259 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00260 <a class="code" href="debug_8h.html#a6">nlassert</a>(oper==<a class="code" href="classNL3D_1_1CMaterial.html#z538_2s46">SrcAlpha</a> || oper==<a class="code" href="classNL3D_1_1CMaterial.html#z538_2s47">InvSrcAlpha</a>); +00261 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>!=<a class="code" href="classNL3D_1_1CMaterial.html#z538_1s40">Texture</a>); +00262 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.SrcArg1Alpha= <a class="code" href="driver__opengl__extension__def_8h.html#a409">src</a>; +00263 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m11">Env</a>.OpArg1Alpha= oper; +00264 } +00265 +00266 +00267 <font class="comment">// ***************************************************************************</font> +<a name="l00268"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_6">00268</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::texConstantColor(uint stage, CRGBA color) +00269 { +00270 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00271 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00272 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m12">ConstantColor</a>= color; +00273 } +00274 +00275 +00276 <font class="comment">// ***************************************************************************</font> +<a name="l00277"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_7">00277</a> <font class="keyword">inline</font> uint32 CMaterial::getTexEnvMode(uint stage) +00278 { +00279 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00280 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00281 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m0">EnvPacked</a>; +00282 } +00283 <font class="comment">// ***************************************************************************</font> +<a name="l00284"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_8">00284</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setTexEnvMode(uint stage, uint32 packed) +00285 { +00286 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00287 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00288 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m0">EnvPacked</a>= packed; +00289 } +00290 <font class="comment">// ***************************************************************************</font> +<a name="l00291"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_9">00291</a> <font class="keyword">inline</font> CRGBA CMaterial::getTexConstantColor(uint stage) +00292 { +00293 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::Normal); +00294 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00295 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[stage].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m12">ConstantColor</a>; +00296 } +00297 <font class="comment">// ***************************************************************************</font> +<a name="l00298"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_11">00298</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> CMaterial::getTexCoordGen(uint stage)<font class="keyword"> const</font> +00299 <font class="keyword"></font>{ +00300 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00301 <font class="keywordflow">return</font> (<a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>&(<a class="code" href="namespaceNL3D.html#a122">IDRV_MAT_GEN_TEX_0</a><<stage))!=0; +00302 } +00303 <font class="comment">// ***************************************************************************</font> +<a name="l00304"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_10">00304</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setTexCoordGen(uint stage, <font class="keywordtype">bool</font> generate) +00305 { +00306 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage>=0 && stage<<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00307 <font class="keywordflow">if</font> (generate) +00308 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>|=(<a class="code" href="namespaceNL3D.html#a122">IDRV_MAT_GEN_TEX_0</a><<stage); +00309 <font class="keywordflow">else</font> +00310 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a>&=~(<a class="code" href="namespaceNL3D.html#a122">IDRV_MAT_GEN_TEX_0</a><<stage); +00311 } +00312 +00313 +00314 <font class="comment">// ***************************************************************************</font> +00315 <font class="comment">// ***************************************************************************</font> +00316 <font class="comment">// ***************************************************************************</font> +00317 +00318 +00319 +00320 <font class="comment">// ***************************************************************************</font> +<a name="l00321"></a><a class="code" href="classNL3D_1_1CMaterial.html#z549_0">00321</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setUserColor(CRGBA userColor) +00322 { +00323 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::UserColor); +00324 <font class="comment">// setup stage 0 constant color (don't use texConstantColor() because of assert).</font> +00325 <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[0].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m12">ConstantColor</a>= userColor; +00326 } +00327 +00328 <font class="comment">// ***************************************************************************</font> +<a name="l00329"></a><a class="code" href="classNL3D_1_1CMaterial.html#z549_1">00329</a> <font class="keyword">inline</font> CRGBA CMaterial::getUserColor()<font class="keyword"> const</font> +00330 <font class="keyword"></font>{ +00331 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o0">_ShaderType</a>==CMaterial::UserColor); +00332 <font class="comment">// setup stage 0 constant color (don't use getTexConstantColor() because of assert).</font> +00333 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CMaterial.html#m1">_TexEnvs</a>[0].<a class="code" href="structNL3D_1_1CMaterial_1_1CTexEnv.html#m12">ConstantColor</a>; +00334 } +00335 +00336 <font class="comment">// ***************************************************************************</font> +<a name="l00337"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_12">00337</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::enableUserTexMat(uint stage, <font class="keywordtype">bool</font> enabled <font class="comment">/*= true*/</font>) +00338 { +00339 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage < <a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00340 <font class="keywordflow">if</font> (enabled) +00341 { +00342 <font class="keywordflow">if</font> (!(<a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> & <a class="code" href="namespaceNL3D.html#a138">IDRV_MAT_USER_TEX_MAT_ALL</a>)) <font class="comment">// not usr tex mat setupped before?</font> +00343 { +00344 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>.get() == NULL); +00345 <a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>.reset(<font class="keyword">new</font> CUserTexMat); +00346 } +00347 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> |= (<a class="code" href="namespaceNL3D.html#a130">IDRV_MAT_USER_TEX_0_MAT</a> << stage); +00348 <a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>->TexMat[stage].identity(); +00349 } +00350 <font class="keywordflow">else</font> +00351 { +00352 <font class="keywordflow">if</font> (!(<a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> & <a class="code" href="namespaceNL3D.html#a138">IDRV_MAT_USER_TEX_MAT_ALL</a>)) <font class="keywordflow">return</font>; <font class="comment">// nothing to do</font> +00353 <a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> &= ~(<a class="code" href="namespaceNL3D.html#a130">IDRV_MAT_USER_TEX_0_MAT</a> << stage); <font class="comment">// clear the stage flag</font> +00354 <font class="keywordflow">if</font> (!(<a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> & <a class="code" href="namespaceNL3D.html#a138">IDRV_MAT_USER_TEX_MAT_ALL</a>)) <font class="comment">// no more user textures used ?</font> +00355 { +00356 <a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>.reset(); +00357 } +00358 } +00359 } +00360 +00361 <font class="comment">// ***************************************************************************</font> +<a name="l00362"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_13">00362</a> <font class="keyword">inline</font> <font class="keywordtype">bool</font> CMaterial::isUserTexMatEnabled(uint stage)<font class="keyword"> const</font> +00363 <font class="keyword"></font>{ +00364 <a class="code" href="debug_8h.html#a6">nlassert</a>(stage < <a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>); +00365 <font class="keywordflow">return</font> (<a class="code" href="classNL3D_1_1CMaterial.html#o1">_Flags</a> & (<a class="code" href="namespaceNL3D.html#a130">IDRV_MAT_USER_TEX_0_MAT</a> << stage)) != 0; +00366 } +00367 +00368 <font class="comment">// ***************************************************************************</font> +<a name="l00369"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_14">00369</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> CMaterial::setUserTexMat(uint stage, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &m) +00370 { +00371 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#z548_13">isUserTexMatEnabled</a>(stage)); +00372 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>.get() != NULL); +00373 <a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>->TexMat[stage] = m; +00374 } +00375 +00376 <font class="comment">// ***************************************************************************</font> +<a name="l00377"></a><a class="code" href="classNL3D_1_1CMaterial.html#z548_15">00377</a> <font class="keyword">inline</font> <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &CMaterial::getUserTexMat(uint stage)<font class="keyword"> const</font> +00378 <font class="keyword"></font>{ +00379 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#z548_13">isUserTexMatEnabled</a>(stage)); +00380 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>.get() != NULL); +00381 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CMaterial.html#o15">_TexUserMat</a>->TexMat[stage]; +00382 } +00383 +00384 +00385 } +00386 +00387 <font class="preprocessor">#endif</font> +00388 <font class="preprocessor"></font> +</pre></div> + +<!-- 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> |