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/particle__system__instance__user_8cpp-source.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/particle__system__instance__user_8cpp-source.html')
-rw-r--r-- | docs/doxygen/nel/particle__system__instance__user_8cpp-source.html | 552 |
1 files changed, 552 insertions, 0 deletions
diff --git a/docs/doxygen/nel/particle__system__instance__user_8cpp-source.html b/docs/doxygen/nel/particle__system__instance__user_8cpp-source.html new file mode 100644 index 00000000..08bb5d0a --- /dev/null +++ b/docs/doxygen/nel/particle__system__instance__user_8cpp-source.html @@ -0,0 +1,552 @@ +<!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>particle_system_instance_user.cpp</h1><a href="particle__system__instance__user_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <font class="comment">/* Copyright, 2000, 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">#include "<a class="code" href="std3d_8h.html">std3d.h</a>"</font> +00027 +00028 <font class="preprocessor">#include "<a class="code" href="particle__system__instance__user_8h.html">3d/particle_system_instance_user.h</a>"</font> +00029 <font class="preprocessor">#include "<a class="code" href="particle__system_8h.html">3d/particle_system.h</a>"</font> +00030 <font class="preprocessor">#include "<a class="code" href="particle__system__shape_8h.html">3d/particle_system_shape.h</a>"</font> +00031 <font class="preprocessor">#include "<a class="code" href="ps__emitter_8h.html">3d/ps_emitter.h</a>"</font> +00032 +00033 +00034 <font class="keyword">namespace </font>NL3D { +00035 +00036 +00037 <font class="comment">//===================================================================</font> +<a name="l00038"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z652_0">00038</a> CParticleSystemInstanceUser::CParticleSystemInstanceUser(CScene *scene, IModel *model) +00039 : CTransformUser(scene, model), _Invalidated(false) +00040 { +00041 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00042 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00043 psm->registerPSModelObserver(<font class="keyword">this</font>); +00044 } +00045 +00046 <font class="comment">//===================================================================</font> +<a name="l00047"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z653_3">00047</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::getShapeAABBox(<a class="code" href="classNLMISC_1_1CAABBox.html">NLMISC::CAABBox</a> &bbox)<font class="keyword"> const</font> +00048 <font class="keyword"></font>{ +00049 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00050 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00051 psm->getAABBox(bbox); +00052 } +00053 +00054 <font class="comment">//===================================================================</font> +<a name="l00055"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z652_1">00055</a> CParticleSystemInstanceUser::~CParticleSystemInstanceUser() +00056 { +00057 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00058 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00059 psm->removePSModelObserver(<font class="keyword">this</font>); +00060 } +00061 +00062 <font class="comment">//===================================================================</font> +<a name="l00063"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">00063</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::isSystemPresent(<font class="keywordtype">void</font>)<font class="keyword"> const</font> +00064 <font class="keyword"></font>{ +00065 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00066 <font class="keywordflow">if</font> (_Invalidated) <font class="keywordflow">return</font> <font class="keyword">false</font>; <font class="comment">// the system is not even valid</font> +00067 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00068 <font class="keywordflow">return</font> psm->getPS() != NULL; +00069 } +00070 +00071 <font class="comment">//===================================================================</font> +<a name="l00072"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_3">00072</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::getSystemBBox(<a class="code" href="classNLMISC_1_1CAABBox.html">NLMISC::CAABBox</a> &bbox) +00073 { +00074 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00075 <font class="keywordflow">if</font> (_Invalidated) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00076 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00077 <font class="keywordflow">if</font> (!psm->getPS()) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00078 psm->getPS()->computeBBox(bbox); +00079 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00080 } +00081 +00082 <font class="comment">//===================================================================</font> +<a name="l00083"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_4">00083</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::setUserParam(uint <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>) +00084 { +00085 <font class="keywordflow">if</font> (<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a> >= <a class="code" href="namespaceNL3D.html#a165">MaxPSUserParam</a>) +00086 { +00087 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid user param index"</font>); +00088 <font class="keywordflow">return</font>; +00089 } +00090 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00091 <font class="comment">// psm->getPS()->setUserParam(index, value);</font> +00092 IAnimatedValue *av = psm->getValue(CParticleSystemModel::PSParam0 + <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); +00093 NLMISC::safe_cast<CAnimatedValueFloat *>(av)->Value = <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>; +00094 psm->touch(CParticleSystemModel::PSParam0 + <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>, CParticleSystemModel::OwnerBit); +00095 } +00096 +00097 <font class="comment">//===================================================================</font> +<a name="l00098"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_5">00098</a> <font class="keywordtype">float</font> CParticleSystemInstanceUser::getUserParam(uint <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>)<font class="keyword"> const</font> +00099 <font class="keyword"></font>{ +00100 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00101 <font class="keywordflow">if</font> (<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a> >= <a class="code" href="namespaceNL3D.html#a165">MaxPSUserParam</a>) +00102 { +00103 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid user param index"</font>); +00104 <font class="keywordflow">return</font> 0.f; +00105 } +00106 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform) ; +00107 <font class="comment">//return psm->getPS()->getUserParam(index) ;</font> +00108 IAnimatedValue *av = psm->getValue(CParticleSystemModel::PSParam0 + <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); +00109 <font class="keywordflow">return</font> NLMISC::safe_cast<CAnimatedValueFloat *>(av)->Value; +00110 } +00111 +00112 <font class="comment">//===================================================================</font> +<a name="l00113"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_8">00113</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::isValid(<font class="keywordtype">void</font>)<font class="keyword"> const</font> +00114 <font class="keyword"></font>{ +00115 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00116 <font class="keywordflow">return</font> !<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o1">_Invalidated</a>; +00117 } +00118 +00119 <font class="comment">//===================================================================</font> +<a name="l00120"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_9">00120</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::registerPSObserver(IPSObserver *observer) +00121 { +00122 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00123 <a class="code" href="debug_8h.html#a6">nlassert</a>(!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_10">isPSObserver</a>(observer)); +00124 <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.push_back(observer); +00125 } +00126 +00127 <font class="comment">//===================================================================</font> +<a name="l00128"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_10">00128</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::isPSObserver(IPSObserver *observer) +00129 { +00130 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00131 <font class="keywordflow">return</font> std::find(<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.begin(), <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.end(), observer) != <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.end(); +00132 } +00133 +00134 +00135 <font class="comment">//===================================================================</font> +<a name="l00136"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_11">00136</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::removePSObserver(IPSObserver *observer) +00137 { +00138 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00139 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_10">isPSObserver</a>(observer)); +00140 <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.erase(std::find(<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.begin(), <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.end(), observer)); +00141 } +00142 +00143 +00144 <font class="comment">//===================================================================</font> +<a name="l00145"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z655_0">00145</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::invalidPS(CParticleSystemModel *psm) +00146 { +00147 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00148 <font class="comment">// the instance pointer is invalid now</font> +00149 <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o1">_Invalidated</a> = <font class="keyword">true</font>; +00150 std::vector<IPSObserver *> obserCopy(<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.begin(), <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.end()); +00151 <font class="keywordflow">for</font> (std::vector<IPSObserver *>::iterator it = <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.begin(); it != <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#o0">_Observers</a>.end(); ++it) +00152 { +00153 (*it)->systemDestroyed(<font class="keyword">this</font>); +00154 } +00155 } +00156 +00157 <font class="comment">//===================================================================</font> +<a name="l00158"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z653_0">00158</a> uint CParticleSystemInstanceUser::getNumMaterials()<font class="keyword"> const</font> +00159 <font class="keyword"></font>{ +00160 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00161 <font class="keywordflow">return</font> 0; +00162 } +00163 +00164 <font class="comment">//===================================================================</font> +<a name="l00165"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z653_1">00165</a> UInstanceMaterial &CParticleSystemInstanceUser::getMaterial(uint materialId) +00166 { +00167 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00168 <a class="code" href="debug_8h.html#a6">nlassert</a>(0); <font class="comment">// no material for a particle system</font> +00169 +00170 <font class="comment">// return dummy object</font> +00171 <font class="keywordflow">return</font> *(UInstanceMaterial *) NULL; +00172 } +00173 +00174 +00175 <font class="comment">//===================================================================</font> +00176 <font class="keyword">static</font> <font class="keyword">inline</font> uint32 <a class="code" href="namespaceNL3D.html#a385">IDToLittleEndian</a>(uint32 input) +00177 { +00178 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00179 <font class="preprocessor"> #ifdef NL_LITTLE_ENDIAN</font> +00180 <font class="preprocessor"></font> <font class="keywordflow">return</font> input; +00181 <font class="preprocessor"> #else</font> +00182 <font class="preprocessor"></font> <font class="keywordflow">return</font> ((input & (0xff<<24))>>24) +00183 | ((input & (0xff<<16))>>8) +00184 | ((input & (0xff<<8))<<8) +00185 | ((input & 0xff)<<24); +00186 <font class="preprocessor"> #endif</font> +00187 <font class="preprocessor"></font>} +00188 +00189 <font class="comment">//===================================================================</font> +<a name="l00190"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_0">00190</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::emit(uint32 anId, uint quantity) +00191 { +00192 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00193 <font class="keyword">const</font> uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> = <a class="code" href="namespaceNL3D.html#a385">IDToLittleEndian</a>(anId); +00194 <a class="code" href="debug_8h.html#a6">nlassert</a>(<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()); +00195 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00196 uint numLb = ps->getNumLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>); +00197 <font class="keywordflow">if</font> (numLb == 0) <font class="keywordflow">return</font> <font class="keyword">false</font>; <font class="comment">// INVALID ID !!</font> +00198 <font class="keywordflow">for</font> (uint k = 0; k < numLb; ++k) +00199 { +00200 CPSLocatedBindable *lb = ps->getLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, k); +00201 <font class="keywordflow">if</font> (lb->getType() == <a class="code" href="namespaceNL3D.html#a204">PSEmitter</a>) +00202 { +00203 CPSEmitter *e = NLMISC::safe_cast<CPSEmitter *>(lb); +00204 <a class="code" href="debug_8h.html#a6">nlassert</a>(e->getOwner()); +00205 uint nbInstances = e->getOwner()->getSize(); +00206 <font class="keywordflow">for</font> (uint <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a> = 0; <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a> < nbInstances; ++<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00207 { +00208 e->singleEmit(<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>, quantity); +00209 } +00210 } +00211 } +00212 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00213 } +00214 +00215 +00216 +00217 <font class="comment">//===================================================================</font> +<a name="l00218"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_1">00218</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::removeByID(uint32 anId) +00219 { +00220 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00221 <font class="keyword">const</font> uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> = <a class="code" href="namespaceNL3D.html#a385">IDToLittleEndian</a>(anId); +00222 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00223 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00224 uint numLb = ps->getNumLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>); +00225 <font class="keywordflow">if</font> (numLb == 0) <font class="keywordflow">return</font> <font class="keyword">false</font>; <font class="comment">// INVALID ID !!</font> +00226 <font class="keywordflow">for</font> (uint k = 0; k < numLb; ++k) +00227 { +00228 CPSLocatedBindable *lb = ps->getLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, k); +00229 CPSLocated *owner = lb->getOwner(); +00230 <a class="code" href="debug_8h.html#a6">nlassert</a>(owner); +00231 uint nbInstances = owner->getSize(); +00232 <font class="keywordflow">for</font> (uint <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a> = 0; <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a> < nbInstances; ++<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00233 { +00234 owner->deleteElement(0); +00235 } +00236 } +00237 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00238 } +00239 +00240 <font class="comment">//===================================================================</font> +<a name="l00241"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a1">00241</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::changeMRMDistanceSetup(<font class="keywordtype">float</font> distanceFinest, <font class="keywordtype">float</font> distanceMiddle, <font class="keywordtype">float</font> distanceCoarsest) +00242 { +00243 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00244 <font class="comment">// no-op.</font> +00245 } +00246 +00247 +00248 <font class="comment">//===================================================================</font> +<a name="l00249"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_12">00249</a> uint CParticleSystemInstanceUser::getNumID()<font class="keyword"> const</font> +00250 <font class="keyword"></font>{ +00251 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00252 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> 0; +00253 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00254 <font class="keywordflow">return</font> ps->getNumID(); +00255 } +00256 +00257 <font class="comment">//===================================================================</font> +<a name="l00258"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_13">00258</a> uint32 CParticleSystemInstanceUser::getID(uint <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>)<font class="keyword"> const</font> +00259 <font class="keyword"></font>{ +00260 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00261 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> 0; +00262 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00263 <font class="keywordflow">return</font> ps->getID(<a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); +00264 } +00265 +00266 <font class="comment">//===================================================================</font> +<a name="l00267"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_14">00267</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::getIDs(std::vector<uint32> &dest)<font class="keyword"> const</font> +00268 <font class="keyword"></font>{ +00269 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00270 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00271 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00272 ps->getIDs(dest); +00273 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00274 } +00275 +00276 +00277 <font class="comment">//===================================================================</font> +<a name="l00278"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a2">00278</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::setShapeDistMax(<font class="keywordtype">float</font> distMax) +00279 { +00280 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00281 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00282 <font class="keywordflow">if</font>(psm && psm->Shape) +00283 { +00284 psm->Shape->setDistMax(distMax); +00285 } +00286 } +00287 +00288 <font class="comment">//===================================================================</font> +<a name="l00289"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a3">00289</a> <font class="keywordtype">float</font> CParticleSystemInstanceUser::getShapeDistMax()<font class="keyword"> const</font> +00290 <font class="keyword"></font>{ +00291 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00292 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00293 <font class="keywordflow">if</font>(psm && psm->Shape) +00294 { +00295 <font class="keywordflow">return</font> psm->Shape->getDistMax(); +00296 } +00297 <font class="keywordflow">else</font> +00298 <font class="keywordflow">return</font> -1; +00299 } +00300 +00301 <font class="comment">//===================================================================</font> +<a name="l00302"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_15">00302</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::setActive(uint32 anId, <font class="keywordtype">bool</font> active) +00303 { +00304 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00305 <font class="keyword">const</font> uint32 <a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a> = <a class="code" href="namespaceNL3D.html#a385">IDToLittleEndian</a>(anId); +00306 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00307 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00308 uint numLb = ps->getNumLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>); +00309 <font class="keywordflow">if</font> (numLb == 0) <font class="keywordflow">return</font> <font class="keyword">false</font>; <font class="comment">// INVALID ID !!</font> +00310 <font class="keywordflow">for</font> (uint k = 0; k < numLb; ++k) +00311 { +00312 CPSLocatedBindable *lb = ps->getLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, k); +00313 lb->setActive(active); +00314 } +00315 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00316 } +00317 +00318 +00319 <font class="comment">//===================================================================</font> +<a name="l00320"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_16">00320</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::activateEmitters(<font class="keywordtype">bool</font> active) +00321 { +00322 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00323 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00324 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00325 <font class="keywordflow">for</font>(uint k = 0; k < ps->getNbProcess(); ++k) +00326 { +00327 CPSLocated *loc = dynamic_cast<CPSLocated *>(ps->getProcess(k)); +00328 <font class="keywordflow">if</font> (loc) +00329 { +00330 <font class="keywordflow">for</font>(uint <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a> = 0; <a class="code" href="namespaceNLAISCRIPT.html#a20">l</a> < loc->getNbBoundObjects(); ++<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>) +00331 { +00332 <font class="keywordflow">if</font> (loc->getBoundObject(l)->getType() == <a class="code" href="namespaceNL3D.html#a204">PSEmitter</a>) +00333 loc->getBoundObject(l)->setActive(active); +00334 } +00335 } +00336 } +00337 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00338 } +00339 +00340 <font class="comment">//===================================================================</font> +<a name="l00341"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z656_0">00341</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::hasParticles()<font class="keyword"> const</font> +00342 <font class="keyword"></font>{ +00343 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00344 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00345 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00346 <font class="keywordflow">return</font> ps->hasParticles(); +00347 } +00348 +00349 <font class="comment">//===================================================================</font> +<a name="l00350"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z656_1">00350</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::hasEmmiters()<font class="keyword"> const</font> +00351 <font class="keyword"></font>{ +00352 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00353 <font class="keywordflow">if</font> (!<a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_2">isSystemPresent</a>()) <font class="keywordflow">return</font> <font class="keyword">false</font>; +00354 CParticleSystem *ps = (NLMISC::safe_cast<CParticleSystemModel *>(_Transform))->getPS(); +00355 <font class="keywordflow">return</font> ps->hasEmitters(); +00356 } +00357 <font class="comment">//===================================================================</font> +<a name="l00358"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a0">00358</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::isShared()<font class="keyword"> const</font> +00359 <font class="keyword"></font>{ +00360 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00361 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00362 <font class="keywordflow">if</font>(psm->Shape) +00363 { +00364 <font class="keywordflow">return</font> NLMISC::safe_cast<CParticleSystemShape *>((IShape *) psm->Shape)->isShared(); +00365 } +00366 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00367 } +00368 +00369 <font class="comment">//===================================================================</font> +<a name="l00370"></a><a class="code" href="classNL3D_1_1UParticleSystemInstance.html#z61_4">00370</a> <font class="keywordtype">void</font> UParticleSystemInstance::setGlobalUserParamValue(<font class="keyword">const</font> std::string &name, <font class="keywordtype">float</font> <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>) +00371 { +00372 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00373 <font class="keywordflow">if</font> (name.empty()) +00374 { +00375 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid name"</font>); +00376 <font class="keywordflow">return</font>; +00377 } +00378 CParticleSystem::setGlobalValue(name, <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>); +00379 } +00380 +00381 <font class="comment">//===================================================================</font> +<a name="l00382"></a><a class="code" href="classNL3D_1_1UParticleSystemInstance.html#z61_5">00382</a> <font class="keywordtype">float</font> UParticleSystemInstance::getGlobalUserParamValue(<font class="keyword">const</font> std::string &name) +00383 { +00384 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00385 <font class="keywordflow">if</font> (name.empty()) +00386 { +00387 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid name"</font>); +00388 <font class="keywordflow">return</font> 0.f; +00389 } +00390 <font class="keywordflow">return</font> CParticleSystem::getGlobalValue(name); +00391 } +00392 +00393 <font class="comment">//===================================================================</font> +<a name="l00394"></a><a class="code" href="classNL3D_1_1UParticleSystemInstance.html#z61_6">00394</a> <font class="keywordtype">void</font> UParticleSystemInstance::setGlobalVectorValue(<font class="keyword">const</font> std::string &name,<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &<a class="code" href="driver__opengl__extension__def_8h.html#a368">v</a>) +00395 { +00396 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00397 <font class="keywordflow">if</font> (name.empty()) +00398 { +00399 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid name"</font>); +00400 } +00401 CParticleSystem::setGlobalVectorValue(name, v); +00402 } +00403 +00404 <font class="comment">//===================================================================</font> +<a name="l00405"></a><a class="code" href="classNL3D_1_1UParticleSystemInstance.html#z61_7">00405</a> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> UParticleSystemInstance::getGlobalVectorValue(<font class="keyword">const</font> std::string &name) +00406 { +00407 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00408 <font class="keywordflow">if</font> (name.empty()) +00409 { +00410 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid name"</font>); +00411 <font class="keywordflow">return</font> <a class="code" href="classNLMISC_1_1CVector.html#p0">NLMISC::CVector::Null</a>; +00412 } +00413 <font class="keywordflow">else</font> <font class="keywordflow">return</font> CParticleSystem::getGlobalVectorValue(name); +00414 } +00415 +00416 <font class="comment">//===================================================================</font> +<a name="l00417"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a4">00417</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::enableAsyncTextureMode(<font class="keywordtype">bool</font> enable) +00418 { +00419 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00420 } +00421 +00422 <font class="comment">//===================================================================</font> +<a name="l00423"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a5">00423</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::getAsyncTextureMode()<font class="keyword"> const </font> +00424 <font class="keyword"></font>{ +00425 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00426 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00427 } +00428 +00429 <font class="comment">//===================================================================</font> +<a name="l00430"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a6">00430</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::startAsyncTextureLoading() +00431 { +00432 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00433 } +00434 +00435 <font class="comment">//===================================================================</font> +<a name="l00436"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a7">00436</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::isAsyncTextureReady() +00437 { +00438 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00439 <font class="keywordflow">return</font> <font class="keyword">true</font>; +00440 } +<a name="l00441"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a8">00441</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::setAsyncTextureDistance(<font class="keywordtype">float</font> dist) +00442 { +00443 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00444 } +<a name="l00445"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a9">00445</a> <font class="keywordtype">float</font> CParticleSystemInstanceUser::getAsyncTextureDistance()<font class="keyword"> const</font> +00446 <font class="keyword"></font>{ +00447 <font class="keywordflow">return</font> 0; +00448 } +<a name="l00449"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a10">00449</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::setAsyncTextureDirty(<font class="keywordtype">bool</font> flag) +00450 { +00451 } +<a name="l00452"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#a11">00452</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::isAsyncTextureDirty()<font class="keyword"> const</font> +00453 <font class="keyword"></font>{ +00454 <font class="keywordflow">return</font> <font class="keyword">false</font>; +00455 } +00456 +00457 <font class="comment">//===================================================================</font> +<a name="l00458"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_6">00458</a> <font class="keywordtype">void</font> CParticleSystemInstanceUser::bypassGlobalUserParamValue(uint userParamIndex, <font class="keywordtype">bool</font> byPass <font class="comment">/*=true*/</font>) +00459 { +00460 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00461 <font class="keywordflow">if</font> (userParamIndex >= <a class="code" href="namespaceNL3D.html#a165">MaxPSUserParam</a>) +00462 { +00463 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid user param index"</font>); +00464 <font class="keywordflow">return</font>; +00465 } +00466 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00467 psm->bypassGlobalUserParamValue(userParamIndex, byPass); +00468 } +00469 +00470 <font class="comment">//===================================================================</font> +<a name="l00471"></a><a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_7">00471</a> <font class="keywordtype">bool</font> CParticleSystemInstanceUser::isGlobalUserParamValueBypassed(uint userParamIndex)<font class="keyword"> const</font> +00472 <font class="keyword"></font>{ +00473 <a class="code" href="particle__system__instance__user_8h.html#a0">NL3D_MEM_PS_INSTANCE</a> +00474 <font class="keywordflow">if</font> (userParamIndex >= <a class="code" href="namespaceNL3D.html#a165">MaxPSUserParam</a>) +00475 { +00476 <a class="code" href="debug_8h.html#a2">nlwarning</a>(<font class="stringliteral">"invalid user param index"</font>); +00477 <font class="keywordflow">return</font> 0.f; +00478 } +00479 CParticleSystemModel *psm = NLMISC::safe_cast<CParticleSystemModel *>(_Transform); +00480 <font class="keywordflow">return</font> <a class="code" href="classNL3D_1_1CParticleSystemInstanceUser.html#z654_7">isGlobalUserParamValueBypassed</a>(userParamIndex); +00481 } +00482 +00483 } <font class="comment">// NL3D</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> |