diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/animated__material_8h-source.html | 302 |
1 files changed, 302 insertions, 0 deletions
diff --git a/docs/doxygen/nel/animated__material_8h-source.html b/docs/doxygen/nel/animated__material_8h-source.html new file mode 100644 index 00000000..c1891fa8 --- /dev/null +++ b/docs/doxygen/nel/animated__material_8h-source.html @@ -0,0 +1,302 @@ +<!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>animated_material.h</h1><a href="animated__material_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <font class="comment">/* Copyright, 2001 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_ANIMATED_MATERIAL_H</font> +00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_ANIMATED_MATERIAL_H</font> +00028 <font class="preprocessor"></font> +00029 +00030 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font> +00031 <font class="preprocessor">#include "<a class="code" href="smart__ptr_8h.html">nel/misc/smart_ptr.h</a>"</font> +00032 <font class="preprocessor">#include "<a class="code" href="animatable_8h.html">3d/animatable.h</a>"</font> +00033 <font class="preprocessor">#include "<a class="code" href="material_8h.html">3d/material.h</a>"</font> +00034 <font class="preprocessor">#include "<a class="code" href="track_8h.html">3d/track.h</a>"</font> +00035 <font class="preprocessor">#include <map></font> +00036 +00037 +00038 <font class="keyword">namespace </font>NL3D +00039 { +00040 +00041 +00042 +00043 <font class="comment">// ***************************************************************************</font> +<a name="l00051"></a><a class="code" href="classNL3D_1_1CMaterialBase.html">00051</a> <font class="comment"></font><font class="keyword">class </font>CMaterialBase : <font class="keyword">public</font> NLMISC::CRefCount +00052 { +00053 <font class="keyword">public</font>: +00054 +00055 <a class="code" href="classNL3D_1_1CMaterialBase.html#a0">CMaterialBase</a>(); +00056 +00064 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CMaterialBase.html#a1">copyFromMaterial</a>(CMaterial *pMat); +00065 +00066 +00067 <font class="comment">// Name of this material, for Animation access.</font> +<a name="l00068"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m0">00068</a> std::string <a class="code" href="classNL3D_1_1CMaterialBase.html#m0">Name</a>; +00069 +00070 +00071 <font class="comment">// Default tracks.</font> +<a name="l00072"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m1">00072</a> CTrackDefaultRGBA <a class="code" href="classNL3D_1_1CMaterialBase.html#m1">DefaultAmbient</a>; +<a name="l00073"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m2">00073</a> CTrackDefaultRGBA <a class="code" href="classNL3D_1_1CMaterialBase.html#m2">DefaultDiffuse</a>; +<a name="l00074"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m3">00074</a> CTrackDefaultRGBA <a class="code" href="classNL3D_1_1CMaterialBase.html#m3">DefaultSpecular</a>; +<a name="l00075"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m4">00075</a> CTrackDefaultFloat <a class="code" href="classNL3D_1_1CMaterialBase.html#m4">DefaultShininess</a>; +<a name="l00076"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m5">00076</a> CTrackDefaultRGBA <a class="code" href="classNL3D_1_1CMaterialBase.html#m5">DefaultEmissive</a>; +<a name="l00077"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m6">00077</a> CTrackDefaultFloat <a class="code" href="classNL3D_1_1CMaterialBase.html#m6">DefaultOpacity</a>; +<a name="l00078"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m7">00078</a> CTrackDefaultInt <a class="code" href="classNL3D_1_1CMaterialBase.html#m7">DefaultTexture</a>; +00079 +00080 <font class="comment">// Texture animation</font> +<a name="l00081"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html">00081</a> <font class="keyword">struct </font>CTexAnimTracks +00082 { +00083 +<a name="l00084"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m0">00084</a> CTrackDefaultFloat <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m0">DefaultUTrans</a>; <font class="comment">// u translation</font> +<a name="l00085"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m1">00085</a> CTrackDefaultFloat <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m1">DefaultVTrans</a>; <font class="comment">// v translation</font> +<a name="l00086"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m2">00086</a> CTrackDefaultFloat <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m2">DefaultUScale</a>; <font class="comment">// u scale</font> +<a name="l00087"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m3">00087</a> CTrackDefaultFloat <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m3">DefaultVScale</a>; <font class="comment">// u scale</font> +<a name="l00088"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m4">00088</a> CTrackDefaultFloat <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m4">DefaultWRot</a>; <font class="comment">// v scale</font> +00089 +00090 +00091 <font class="comment">// number of default tracks</font> +00092 <font class="keyword">enum</font> { <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#s1s0">NumTexAnimatedValues</a> = 5 }; +00093 +00094 +<a name="l00095"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#a0">00095</a> <font class="keywordtype">void</font> <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#a0">setDefaultValue</a>() +00096 { +00097 <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m0">DefaultUTrans</a>.setValue(0); +00098 <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m1">DefaultVTrans</a>.setValue(0); +00099 <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m2">DefaultUScale</a>.setValue(1); +00100 <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m3">DefaultVScale</a>.setValue(1); +00101 } +00102 +<a name="l00103"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#a1">00103</a> <font class="keywordtype">void</font> <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#a1">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &f) +00104 { +00105 (void)f.<a class="code" href="classNLMISC_1_1IStream.html#a29">serialVersion</a>(0); +00106 f.<a class="code" href="classNLMISC_1_1IStream.html#a5">serial</a>(<a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m0">DefaultUTrans</a>, <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m1">DefaultVTrans</a>, <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m2">DefaultUScale</a>, <a class="code" href="structNL3D_1_1CMaterialBase_1_1CTexAnimTracks.html#m3">DefaultVScale</a>); +00107 } +00108 }; +<a name="l00109"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#m8">00109</a> CTexAnimTracks <a class="code" href="classNL3D_1_1CMaterialBase.html#m8">DefaultTexAnimTracks</a>[<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>]; +00110 +00112 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CMaterialBase.html#a2">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &f); +00113 +00114 +00116 +00122 <font class="comment">// @{</font> +00124 <font class="comment"> void setAnimatedTexture(uint32 id, CSmartPtr<ITexture> pText);</font> +00126 <font class="comment"> bool validAnimatedTexture(uint32 id);</font> +00128 <font class="comment"> ITexture* getAnimatedTexture(uint32 id);</font> +00129 +00130 <font class="comment">// @}</font> +00131 +00132 <font class="comment">// *********************</font> +00133 <font class="keyword">private</font>: +00134 +<a name="l00135"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CAnimatedTexture.html">00135</a> <font class="keyword">struct </font>CAnimatedTexture +00136 { +<a name="l00137"></a><a class="code" href="structNL3D_1_1CMaterialBase_1_1CAnimatedTexture.html#m0">00137</a> CSmartPtr<ITexture> <a class="code" href="structNL3D_1_1CMaterialBase_1_1CAnimatedTexture.html#m0">Texture</a>; +00138 +00139 <font class="comment">// serial.</font> +00140 <font class="keywordtype">void</font> <a class="code" href="structNL3D_1_1CMaterialBase_1_1CAnimatedTexture.html#a0">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &f); +00141 }; +00142 +<a name="l00143"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#u0">00143</a> <font class="keyword">typedef</font> std::map<uint32, CAnimatedTexture> <a class="code" href="classNL3D_1_1CMaterialBase.html#u0">TAnimatedTextureMap</a>; +<a name="l00144"></a><a class="code" href="classNL3D_1_1CMaterialBase.html#o0">00144</a> <a class="code" href="classNL3D_1_1CMaterialBase.html#u0">TAnimatedTextureMap</a> <a class="code" href="classNL3D_1_1CMaterialBase.html#o0">_AnimatedTextures</a>; +00145 +00146 }; +00147 +00148 +00149 +00150 <font class="comment">// ***************************************************************************</font> +<a name="l00159"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html">00159</a> <font class="comment"></font><font class="keyword">class </font>CAnimatedMaterial : <font class="keyword">public</font> IAnimatable +00160 { +00161 <font class="keyword">public</font>: +00162 +00164 <font class="comment">// @{</font> +00170 <font class="comment"></font> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z372_0">CAnimatedMaterial</a>(CMaterialBase *baseMat); +00171 +00172 +00177 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z372_1">setMaterial</a>(CMaterial *pMat); +00178 +00181 std::string <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z372_2">getMaterialName</a>() <font class="keyword">const</font>; +00182 <font class="comment">// @}</font> +00183 +00184 +00190 <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#a0">update</a>(); +00191 +00192 +00194 <font class="comment">// @{</font> +<a name="l00195"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_0">00195</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_0">getAmbientValueName</a>() {<font class="keywordflow">return</font> <font class="stringliteral">"ambient"</font>;} +<a name="l00196"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_1">00196</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_1">getDiffuseValueName</a>() {<font class="keywordflow">return</font> <font class="stringliteral">"diffuse"</font>;} +<a name="l00197"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_2">00197</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_2">getSpecularValueName</a>() {<font class="keywordflow">return</font> <font class="stringliteral">"specular"</font>;} +<a name="l00198"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_3">00198</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_3">getShininessValueName</a>() {<font class="keywordflow">return</font> <font class="stringliteral">"shininess"</font>;} +<a name="l00199"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_4">00199</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_4">getEmissiveValueName</a>() {<font class="keywordflow">return</font> <font class="stringliteral">"emissive"</font>;} +<a name="l00200"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_5">00200</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_5">getOpacityValueName</a>() {<font class="keywordflow">return</font> <font class="stringliteral">"opacity"</font>;} +<a name="l00201"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_6">00201</a> <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_6">getTextureValueName</a>() {<font class="keywordflow">return</font> <font class="stringliteral">"texture"</font>;} +00202 <font class="comment">//</font> +00203 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_7">getTexMatUTransName</a>(uint stage); +00204 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_8">getTexMatVTransName</a>(uint stage); +00205 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_9">getTexMatUScaleName</a>(uint stage); +00206 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_10">getTexMatVScaleName</a>(uint stage); +00207 <font class="keyword">static</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z373_11">getTexMatWRotName</a>(uint stage); +00208 +00209 <font class="comment">// @}</font> +00210 +00212 <font class="keyword">enum</font> { <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#s11s0">NumTexAnimatedValues</a> = CMaterialBase::CTexAnimTracks::NumTexAnimatedValues }; +00213 +00215 <font class="comment">// @{</font> +<a name="l00217"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0">00217</a> <font class="comment"> enum TAnimValues</font> +00218 { +00219 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s1">OwnerBit</a>= IAnimatable::AnimValueLast, +00220 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s2">AmbientValue</a>, +00221 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s3">DiffuseValue</a>, +00222 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s4">SpecularValue</a>, +00223 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s5">ShininessValue</a>, +00224 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s6">EmissiveValue</a>, +00225 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s7">OpacityValue</a>, +00226 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s8">TextureValue</a>, +00227 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s9">TextureMatValues</a>, +00228 <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s10">AnimValueLast</a> = <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_0s9">TextureMatValues</a> + <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#s11s0">NumTexAnimatedValues</a> * <a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a> <font class="comment">/* texture matrix anim */</font> +00229 }; +00230 +00232 <font class="keyword">virtual</font> IAnimatedValue* <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_1">getValue</a> (uint valueId); +00233 +00235 <font class="keyword">virtual</font> <font class="keyword">const</font> <font class="keywordtype">char</font> *<a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_2">getValueName</a> (uint valueId) <font class="keyword">const</font>; +00236 +00238 <font class="keyword">virtual</font> ITrack* <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_3">getDefaultTrack</a> (uint valueId); +00239 +00241 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#z374_4">registerToChannelMixer</a>(CChannelMixer *chanMixer, <font class="keyword">const</font> std::string &prefix); +00242 +00243 <font class="comment">// @}</font> +00244 +00245 +00246 <font class="comment">// ********************</font> +00247 <font class="keyword">private</font>: +00248 +00249 <font class="comment">// The material instantiator.</font> +<a name="l00250"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o0">00250</a> CRefPtr<CMaterialBase> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o0">_MaterialBase</a>; +00251 <font class="comment">// The material.</font> +<a name="l00252"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o1">00252</a> CRefPtr<CMaterial> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o1">_Material</a>; +00253 +00254 <font class="comment">// AnimValues.</font> +<a name="l00255"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o2">00255</a> <a class="code" href="namespaceNL3D.html#a17">CAnimatedValueRGBA</a> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o2">_Ambient</a>; +<a name="l00256"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o3">00256</a> <a class="code" href="namespaceNL3D.html#a17">CAnimatedValueRGBA</a> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o3">_Diffuse</a>; +<a name="l00257"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o4">00257</a> <a class="code" href="namespaceNL3D.html#a17">CAnimatedValueRGBA</a> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o4">_Specular</a>; +<a name="l00258"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o5">00258</a> <a class="code" href="namespaceNL3D.html#a13">CAnimatedValueFloat</a> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o5">_Shininess</a>; +<a name="l00259"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o6">00259</a> <a class="code" href="namespaceNL3D.html#a17">CAnimatedValueRGBA</a> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o6">_Emissive</a>; +<a name="l00260"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o7">00260</a> <a class="code" href="namespaceNL3D.html#a13">CAnimatedValueFloat</a> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o7">_Opacity</a>; +<a name="l00261"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o8">00261</a> <a class="code" href="namespaceNL3D.html#a12">CAnimatedValueInt</a> <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o8">_Texture</a>; +00262 +<a name="l00263"></a><a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html">00263</a> <font class="keyword">struct </font>CTexAnimatedMatValues +00264 { +<a name="l00265"></a><a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m0">00265</a> <a class="code" href="namespaceNL3D.html#a13">CAnimatedValueFloat</a> <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m0">_UTrans</a>; +<a name="l00266"></a><a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m1">00266</a> <a class="code" href="namespaceNL3D.html#a13">CAnimatedValueFloat</a> <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m1">_VTrans</a>; +<a name="l00267"></a><a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m2">00267</a> <a class="code" href="namespaceNL3D.html#a13">CAnimatedValueFloat</a> <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m2">_UScale</a>; +<a name="l00268"></a><a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m3">00268</a> <a class="code" href="namespaceNL3D.html#a13">CAnimatedValueFloat</a> <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m3">_VScale</a>; +<a name="l00269"></a><a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m4">00269</a> <a class="code" href="namespaceNL3D.html#a13">CAnimatedValueFloat</a> <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m4">_WRot</a>; +00270 +<a name="l00271"></a><a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#a0">00271</a> <font class="keywordtype">void</font> <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#a0">affect</a>(CMaterialBase::CTexAnimTracks &at) +00272 { +00273 <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m0">_UTrans</a>.affect(at.DefaultUTrans.getValue()); +00274 <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m1">_VTrans</a>.affect(at.DefaultVTrans.getValue()); +00275 <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m2">_UScale</a>.affect(at.DefaultUScale.getValue()); +00276 <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m3">_VScale</a>.affect(at.DefaultVScale.getValue()); +00277 <a class="code" href="structNL3D_1_1CAnimatedMaterial_1_1CTexAnimatedMatValues.html#m4">_WRot</a>.affect(at.DefaultWRot.getValue()); +00278 +00279 } +00280 }; +<a name="l00281"></a><a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o9">00281</a> CTexAnimatedMatValues <a class="code" href="classNL3D_1_1CAnimatedMaterial.html#o9">_TexAnimatedMatValues</a>[<a class="code" href="namespaceNL3D.html#a94">IDRV_MAT_MAXTEXTURES</a>]; +00282 }; +00283 +00284 +00285 } <font class="comment">// NL3D</font> +00286 +00287 +00288 <font class="preprocessor">#endif // NL_ANIMATED_MATERIAL_H</font> +00289 <font class="preprocessor"></font> +00290 <font class="comment">/* End of animated_material.h */</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> |