aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/particle__system__instance__user_8cpp-source.html
blob: 2ae4dd2d83235d24828acda907d2808625f4da1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
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="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=140 BGCOLOR=#dddddd><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD WIDTH=16><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
        <TD><IMG width=6 height=14 SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=><b>Home</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
        <TD><IMG  width=6 height=14  SRC="/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle>&nbsp;<A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A>&nbsp;&nbsp;&nbsp;</TD>
 </TR>
</TABLE> 

<!-- banner Nevrax -->
<TABLE CELLSPACING=0 CELLPADDING=0  BORDER=0 WIDTH=100%>
 <TR><TD  BGCOLOR="#000000" BACKGROUND="/inc/img/black_banner.jpg"><A HREF=""><IMG  SRC="/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="/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD>
	<TD WIDTH=140   BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG  SRC="/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="/news/" TITLE="Rubrique news"><img width=13 height=15  hspace=5 border=0 src=/inc/img/picto-news.gif ALT=#></A></td><td><a  class='linkbox' href="/news/" TITLE="News">News</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/mail/" TITLE="Rubrique mail"><img width=15 height=11  hspace=5 border=0 src=/inc/img/picto-mail.gif ALT=#></A></td><td><a  class='linkbox' href="/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/docs/" TITLE="Rubrique docs"><img width=14 height=16  hspace=5 border=0 src=/inc/img/picto-docs.gif ALT=#></A></td><td><a  class='linkbox' href="/docs/" TITLE="Documentation">Documentation</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/cvs/" TITLE="Rubrique cvs"><img width=13 height=17  hspace=5 border=0 src=/inc/img/picto-cvs.gif ALT=#></A></td><td><a  class='linkbox' href="/cvs/" TITLE="CVS Web">CVS</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/bugs/" TITLE="Rubrique bugs"><img width=20 height=16  hspace=5 border=0 src=/inc/img/picto-bugs.gif ALT=#></A></td><td><a  class='linkbox' href="/bugs/" TITLE="Bugtracking">Bugs</a></td></tr>
			<tr><td ALIGN=middle><a  class='linkbox' href="/GPL.php3" TITLE="Rubrique license"><img  width=18 height=12   hspace=5 border=0 src=/inc/img/picto-gpl.gif ALT=#></A></td><td><a  class='linkbox' href="/GPL.php3" TITLE="License">License</a></td></tr>
		</TABLE>
		</TD></TR></TABLE></TD></TR></TABLE>
		<!------ End Box  ------>

	</TD>
	<TD WIDTH=15><IMG  SRC="/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD>
	<TD ALIGN=left valign=top><IMG  SRC="/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT="">

<!-- title -->
<TABLE  background="/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0  BORDER=0 width=100%><tr><td>
<A HREF="/docs/"><img src="/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A>
</td><td><IMG  SRC="/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT="">
</td></tr></table>
&nbsp;

<!-- 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="/inc/img/reddots.gif"></TD>
	<TD><B>Documentation</B></TD>
	<TD ALIGN=RIGHT>&nbsp;</td>
</tr></table>
<!-- Generated by Doxygen 1.2.14 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindexRef" doxygen="_cgi:/cgi-bin/nel-search.cgi" href="/cgi-bin/nel-search.cgi">Search</a> &nbsp; </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&lt;CParticleSystemModel *&gt;(_Transform);
00043         psm-&gt;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> &amp;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&lt;CParticleSystemModel *&gt;(_Transform);
00051         psm-&gt;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&lt;CParticleSystemModel *&gt;(_Transform);
00059         psm-&gt;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&lt;CParticleSystemModel *&gt;(_Transform);
00068         <font class="keywordflow">return</font> psm-&gt;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> &amp;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&lt;CParticleSystemModel *&gt;(_Transform);
00077         <font class="keywordflow">if</font> (!psm-&gt;getPS()) <font class="keywordflow">return</font> <font class="keyword">false</font>;
00078         psm-&gt;getPS()-&gt;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> &gt;= <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&lt;CParticleSystemModel *&gt;(_Transform);
00091         <font class="comment">// psm-&gt;getPS()-&gt;setUserParam(index, value);</font>
00092         IAnimatedValue *av = psm-&gt;getValue(CParticleSystemModel::PSParam0 + <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>);
00093         NLMISC::safe_cast&lt;CAnimatedValueFloat *&gt;(av)-&gt;Value = <a class="code" href="driver__opengl__extension__def_8h.html#a415">value</a>;
00094         psm-&gt;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> &gt;= <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&lt;CParticleSystemModel *&gt;(_Transform) ;
00107         <font class="comment">//return psm-&gt;getPS()-&gt;getUserParam(index) ;</font>
00108         IAnimatedValue *av = psm-&gt;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&lt;CAnimatedValueFloat *&gt;(av)-&gt;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&lt;IPSObserver *&gt; 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&lt;IPSObserver *&gt;::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)-&gt;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       &amp;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 &amp; (0xff&lt;&lt;24))&gt;&gt;24)
00183                                 | ((input &amp; (0xff&lt;&lt;16))&gt;&gt;8)
00184                                 | ((input &amp; (0xff&lt;&lt;8))&lt;&lt;8)
00185                                 | ((input &amp; 0xff)&lt;&lt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00196         uint numLb  = ps-&gt;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 &lt; numLb; ++k)
00199         {
00200                 CPSLocatedBindable *lb = ps-&gt;getLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, k);               
00201                 <font class="keywordflow">if</font> (lb-&gt;getType() == <a class="code" href="namespaceNL3D.html#a204">PSEmitter</a>)
00202                 {
00203                         CPSEmitter *e = NLMISC::safe_cast&lt;CPSEmitter *&gt;(lb);
00204                         <a class="code" href="debug_8h.html#a6">nlassert</a>(e-&gt;getOwner());
00205                         uint nbInstances = e-&gt;getOwner()-&gt;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> &lt; nbInstances; ++<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>)
00207                         {
00208                                 e-&gt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00224         uint numLb  = ps-&gt;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 &lt; numLb; ++k)
00227         {
00228                 CPSLocatedBindable *lb = ps-&gt;getLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, k);
00229                 CPSLocated *owner = lb-&gt;getOwner();
00230                 <a class="code" href="debug_8h.html#a6">nlassert</a>(owner);
00231                 uint nbInstances  =  owner-&gt;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> &lt; nbInstances; ++<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>)
00233                 {
00234                         owner-&gt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00254         <font class="keywordflow">return</font> ps-&gt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00263         <font class="keywordflow">return</font> ps-&gt;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&lt;uint32&gt; &amp;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00272         ps-&gt;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&lt;CParticleSystemModel *&gt;(_Transform);
00282         <font class="keywordflow">if</font>(psm &amp;&amp; psm-&gt;Shape)
00283         {
00284                 psm-&gt;Shape-&gt;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&lt;CParticleSystemModel *&gt;(_Transform);
00293         <font class="keywordflow">if</font>(psm &amp;&amp; psm-&gt;Shape)
00294         {
00295                 <font class="keywordflow">return</font> psm-&gt;Shape-&gt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00308         uint numLb  = ps-&gt;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 &lt; numLb; ++k)
00311         {
00312                 CPSLocatedBindable *lb = ps-&gt;getLocatedBindableByExternID(<a class="code" href="driver__opengl__extension__def_8h.html#a356">id</a>, k);
00313                 lb-&gt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00325         <font class="keywordflow">for</font>(uint k = 0; k &lt; ps-&gt;getNbProcess(); ++k)
00326         {
00327                 CPSLocated *loc = dynamic_cast&lt;CPSLocated *&gt;(ps-&gt;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> &lt; loc-&gt;getNbBoundObjects(); ++<a class="code" href="namespaceNLAISCRIPT.html#a20">l</a>)
00331                         {
00332                                 <font class="keywordflow">if</font> (loc-&gt;getBoundObject(l)-&gt;getType() == <a class="code" href="namespaceNL3D.html#a204">PSEmitter</a>)     
00333                                         loc-&gt;getBoundObject(l)-&gt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00346         <font class="keywordflow">return</font> ps-&gt;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&lt;CParticleSystemModel *&gt;(_Transform))-&gt;getPS();
00355         <font class="keywordflow">return</font> ps-&gt;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&lt;CParticleSystemModel *&gt;(_Transform);
00362         <font class="keywordflow">if</font>(psm-&gt;Shape)
00363         {
00364                 <font class="keywordflow">return</font> NLMISC::safe_cast&lt;CParticleSystemShape *&gt;((IShape *) psm-&gt;Shape)-&gt;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 &amp;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 &amp;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 &amp;name,<font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CVector.html">NLMISC::CVector</a> &amp;<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 &amp;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 &gt;= <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&lt;CParticleSystemModel *&gt;(_Transform);
00467         psm-&gt;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 &gt;= <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&lt;CParticleSystemModel *&gt;(_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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </FONT>
</TD>
<TD WIDTH=15><IMG  SRC=/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD>
</TR>
</TABLE>
</BODY>
</HTML>