aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/vegetable__manager_8h-source.html
blob: e8094c76de9e24e6980381f6d2c655a3c74e6e08 (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
<!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>vegetable_manager.h</h1><a href="vegetable__manager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 
00007 <font class="comment">/* Copyright, 2001 Nevrax Ltd.</font>
00008 <font class="comment"> *</font>
00009 <font class="comment"> * This file is part of NEVRAX NEL.</font>
00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font>
00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font>
00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font>
00013 <font class="comment"> * any later version.</font>
00014 <font class="comment"></font>
00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font>
00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font>
00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font>
00018 <font class="comment"> * General Public License for more details.</font>
00019 <font class="comment"></font>
00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font>
00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font>
00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font>
00023 <font class="comment"> * MA 02111-1307, USA.</font>
00024 <font class="comment"> */</font>
00025 
00026 <font class="preprocessor">#ifndef NL_VEGETABLE_MANAGER_H</font>
00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_VEGETABLE_MANAGER_H</font>
00028 <font class="preprocessor"></font>
00029 <font class="preprocessor">#include "<a class="code" href="types__nl_8h.html">nel/misc/types_nl.h</a>"</font>
00030 <font class="preprocessor">#include "<a class="code" href="matrix_8h.html">nel/misc/matrix.h</a>"</font>
00031 <font class="preprocessor">#include "<a class="code" href="rgba_8h.html">nel/misc/rgba.h</a>"</font>
00032 <font class="preprocessor">#include "<a class="code" href="block__memory_8h.html">nel/misc/block_memory.h</a>"</font>
00033 <font class="preprocessor">#include "<a class="code" href="vector__2f_8h.html">nel/misc/vector_2f.h</a>"</font>
00034 <font class="preprocessor">#include "<a class="code" href="smart__ptr_8h.html">nel/misc/smart_ptr.h</a>"</font>
00035 <font class="preprocessor">#include "<a class="code" href="vegetable__clip__block_8h.html">3d/vegetable_clip_block.h</a>"</font>
00036 <font class="preprocessor">#include "<a class="code" href="vegetable__sort__block_8h.html">3d/vegetable_sort_block.h</a>"</font>
00037 <font class="preprocessor">#include "<a class="code" href="vegetable__instance__group_8h.html">3d/vegetable_instance_group.h</a>"</font>
00038 <font class="preprocessor">#include "<a class="code" href="vegetable__shape_8h.html">3d/vegetable_shape.h</a>"</font>
00039 <font class="preprocessor">#include "<a class="code" href="vegetablevb__allocator_8h.html">3d/vegetablevb_allocator.h</a>"</font>
00040 <font class="preprocessor">#include "<a class="code" href="material_8h.html">3d/material.h</a>"</font>
00041 <font class="preprocessor">#include "<a class="code" href="driver_8h.html">3d/driver.h</a>"</font>
00042 <font class="preprocessor">#include "<a class="code" href="vegetable__uv8_8h.html">3d/vegetable_uv8.h</a>"</font>
00043 
00044 
00045 <font class="keyword">namespace </font>NL3D 
00046 {
00047 
00048 
00049 <font class="keyword">class   </font>CVegetableBlendLayerModel;
00050 <font class="keyword">class   </font>CScene;
00051 <font class="keyword">class   </font>CVegetableLightEx;
00052 
00053 
00054 <font class="comment">// ***************************************************************************</font>
00055 <font class="comment">// By default there is 20 layers.</font>
<a name="l00056"></a><a class="code" href="vegetable__manager_8h.html#a0">00056</a> <font class="preprocessor">#define NL3D_VEGETABLE_DEFAULT_NUM_BLEND_LAYER  20</font>
00057 <font class="preprocessor"></font><font class="comment">// default distance is 60 meters.</font>
<a name="l00058"></a><a class="code" href="vegetable__manager_8h.html#a1">00058</a> <font class="preprocessor">#define NL3D_VEGETABLE_DEFAULT_DIST_MAX                 60.f</font>
00059 <font class="preprocessor"></font>
00060 
00061 <font class="comment">// ***************************************************************************</font>
<a name="l00075"></a><a class="code" href="classNL3D_1_1CVegetableManager.html">00075</a> <font class="comment"></font><font class="keyword">class </font>CVegetableManager
00076 {
00077 <font class="keyword">public</font>:
<a name="l00079"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#s4">00079</a>         <font class="keyword">enum</font> <a class="code" href="classNL3D_1_1CVegetableManager.html#s4">TVegetableWater</a> { <a class="code" href="classNL3D_1_1CVegetableManager.html#s4s0">AboveWater</a> = 0, <a class="code" href="classNL3D_1_1CVegetableManager.html#s4s1">UnderWater</a>, <a class="code" href="classNL3D_1_1CVegetableManager.html#s4s2">IntersectWater</a>, <a class="code" href="classNL3D_1_1CVegetableManager.html#s4s3">VegetInfoLast</a> };
00080 
00081 <font class="keyword">public</font>:
00082 
00089         <a class="code" href="classNL3D_1_1CVegetableManager.html#a0">CVegetableManager</a>(uint maxVertexVbHardUnlit, uint maxVertexVbHardLighted, 
00090                 uint nbBlendLayers= <a class="code" href="vegetable__manager_8h.html#a0">NL3D_VEGETABLE_DEFAULT_NUM_BLEND_LAYER</a>, 
00091                 <font class="keywordtype">float</font> blendLayerDistMax= <a class="code" href="vegetable__manager_8h.html#a1">NL3D_VEGETABLE_DEFAULT_DIST_MAX</a>);
00092         <a class="code" href="classNL3D_1_1CVegetableManager.html#a1">~CVegetableManager</a>();
00093 
00097         <font class="keywordtype">void</font>                                            <a class="code" href="classNL3D_1_1CVegetableManager.html#a2">createVegetableBlendLayersModels</a>(CScene *scene);
00098 
00099 
00101         <font class="comment">// @{</font>
00102 
00104         CVegetableShape                         *<a class="code" href="classNL3D_1_1CVegetableManager.html#z881_0">getVegetableShape</a>(<font class="keyword">const</font> std::string &amp;shape);
00105 
00106         <font class="comment">// @}</font>
00107 
00108 
00110         <font class="comment">// @{</font>
00111 
00113         CVegetableClipBlock                     *<a class="code" href="classNL3D_1_1CVegetableManager.html#z882_0">createClipBlock</a>();
00115         <font class="keywordtype">void</font>                                            <a class="code" href="classNL3D_1_1CVegetableManager.html#z882_1">deleteClipBlock</a>(CVegetableClipBlock *clipBlock);
00116 
00124         CVegetableSortBlock                     *<a class="code" href="classNL3D_1_1CVegetableManager.html#z882_2">createSortBlock</a>(CVegetableClipBlock *clipBlock, <font class="keyword">const</font> CVector &amp;center, <font class="keywordtype">float</font> radius);
00126         <font class="keywordtype">void</font>                                            <a class="code" href="classNL3D_1_1CVegetableManager.html#z882_3">deleteSortBlock</a>(CVegetableSortBlock *sortBlock);
00127 
00131         CVegetableInstanceGroup         *<a class="code" href="classNL3D_1_1CVegetableManager.html#z882_4">createIg</a>(CVegetableSortBlock *sortBlock);
00136         <font class="keywordtype">void</font>                                            <a class="code" href="classNL3D_1_1CVegetableManager.html#z882_5">deleteIg</a>(CVegetableInstanceGroup *ig);
00137 
00138         <font class="comment">// @}</font>
00139 
00140 
00142 
00159         <font class="comment">// @{</font>
00160 
00166         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z883_0">reserveIgAddInstances</a>(CVegetableInstanceGroupReserve &amp;vegetIgReserve, CVegetableShape *shape, <a class="code" href="classNL3D_1_1CVegetableManager.html#s4">TVegetableWater</a> vegetWaterState, uint numInstances);
00171         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z883_1">reserveIgCompile</a>(CVegetableInstanceGroup *ig, <font class="keyword">const</font> CVegetableInstanceGroupReserve &amp;vegetIgReserve);
00172 
00173 
00187         <font class="keywordtype">void</font>                                            <a class="code" href="classNL3D_1_1CVegetableManager.html#z883_2">addInstance</a>(CVegetableInstanceGroup *ig, 
00188                 CVegetableShape *shape, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a> &amp;mat, 
00189                 <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CRGBAF.html">NLMISC::CRGBAF</a> &amp;ambientColor, <font class="keyword">const</font> <a class="code" href="classNLMISC_1_1CRGBAF.html">NLMISC::CRGBAF</a> &amp;diffuseColor, 
00190                 <font class="keywordtype">float</font>   bendFactor, <font class="keywordtype">float</font> bendPhase, <font class="keywordtype">float</font> bendFreqFactor, <font class="keywordtype">float</font> blendDistMax,
00191                 <a class="code" href="classNL3D_1_1CVegetableManager.html#s4">TVegetableWater</a> vegetWaterState, CVegetableUV8 dlmUV);
00192 
00193         <font class="comment">// @}</font>
00194 
00195 
00197         <font class="comment">// @{</font>
00198 
00200         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z884_0">updateDriver</a>(IDriver *driver);
00201 
00203         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z884_1">loadTexture</a>(<font class="keyword">const</font> std::string &amp;texName);
00205         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z884_1">loadTexture</a>(ITexture *itex);
00207         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z884_3">setDirectionalLight</a>(<font class="keyword">const</font> CRGBA &amp;ambient, <font class="keyword">const</font> CRGBA &amp;diffuse, <font class="keyword">const</font> CVector &amp;light);
00208         
00213         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z884_4">lockBuffers</a>();
00215         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z884_5">unlockBuffers</a>();
00216 
00221         <font class="keywordtype">void</font>                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z884_6">render</a>(<font class="keyword">const</font> CVector &amp;viewCenter, <font class="keyword">const</font> CVector &amp;frontVector, <font class="keyword">const</font> std::vector&lt;CPlane&gt; &amp;pyramid, 
00222                 ITexture *textureDLM, IDriver *driver);
00223 
00224         <font class="comment">// @}</font>
00225 
00226 
00228         <font class="comment">// @{</font>
00229 
00239         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z885_0">setWind</a>(<font class="keyword">const</font> CVector &amp;windDir, <font class="keywordtype">float</font> windFreq, <font class="keywordtype">float</font> windPower, <font class="keywordtype">float</font> windBendMin);
00240 
00243         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z885_1">setTime</a>(<font class="keywordtype">double</font> time);
00244 
00245         <font class="comment">// @}</font>
00246 
00247 
00249         <font class="comment">// @{</font>
00250 
00254         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z886_0">setUpdateLightingTime</a>(<font class="keywordtype">double</font> time);
00255 
00259         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z886_1">updateLighting</a>();
00260 
00265         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z886_2">setUpdateLightingFrequency</a>(<font class="keywordtype">float</font> freq);
00266 
00270         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z886_3">updateLightingAll</a>();
00271 
00272         <font class="comment">// @}</font>
00273 
00274 
00276         <font class="comment">// @{</font>
00277 
00279         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z887_0">resetNumVegetableFaceRendered</a>();
00281         uint            <a class="code" href="classNL3D_1_1CVegetableManager.html#z887_1">getNumVegetableFaceRendered</a>() <font class="keyword">const</font>;
00282 
00283         <font class="comment">// @}</font>
00284 
00285 <font class="comment">// *********************</font>
00286 <font class="keyword">private</font>:
<a name="l00287"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#l0">00287</a>         <font class="keyword">friend</font> <font class="keyword">class    </font><a class="code" href="classNL3D_1_1CVegetableManager.html#l0">CVegetableBlendLayerModel</a>;
00288 
<a name="l00289"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o0">00289</a>         <a class="code" href="classNLMISC_1_1CBlockMemory.html">NLMISC::CBlockMemory&lt;CVegetableClipBlock&gt;</a>               <a class="code" href="classNL3D_1_1CVegetableManager.html#o0">_ClipBlockMemory</a>;
<a name="l00290"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o1">00290</a>         <a class="code" href="classNLMISC_1_1CBlockMemory.html">NLMISC::CBlockMemory&lt;CVegetableSortBlock&gt;</a>               <a class="code" href="classNL3D_1_1CVegetableManager.html#o1">_SortBlockMemory</a>;
<a name="l00291"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o2">00291</a>         <a class="code" href="classNLMISC_1_1CBlockMemory.html">NLMISC::CBlockMemory&lt;CVegetableInstanceGroup&gt;</a>   <a class="code" href="classNL3D_1_1CVegetableManager.html#o2">_InstanceGroupMemory</a>;
00292 
00293         <font class="comment">// List of ClipBlock not empty. tested for clipping</font>
<a name="l00294"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o3">00294</a>         CTessList&lt;CVegetableClipBlock&gt;                                  <a class="code" href="classNL3D_1_1CVegetableManager.html#o3">_ClipBlockList</a>;
00295         <font class="comment">// List of ClipBlock created, with no Ig, so not tested for clipping</font>
<a name="l00296"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o4">00296</a>         CTessList&lt;CVegetableClipBlock&gt;                                  <a class="code" href="classNL3D_1_1CVegetableManager.html#o4">_EmptyClipBlockList</a>;
00297 
00298 
00299         <font class="comment">// Vegetable Shape map.</font>
<a name="l00300"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#u0">00300</a>         <font class="keyword">typedef</font> std::map&lt;std::string, CVegetableShape&gt;  <a class="code" href="classNL3D_1_1CVegetableManager.html#u0">TShapeMap</a>;
<a name="l00301"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#u1">00301</a>         <font class="keyword">typedef</font> TShapeMap::iterator                                             <a class="code" href="classNL3D_1_1CVegetableManager.html#u1">ItShapeMap</a>;
<a name="l00302"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o5">00302</a>         <a class="code" href="classNL3D_1_1CVegetableManager.html#u0">TShapeMap</a>                                                                               <a class="code" href="classNL3D_1_1CVegetableManager.html#o5">_ShapeMap</a>;
00303 
00304 
00305         <font class="comment">// Vertex Buffers for display. One allocator for Lighted and Unlit mode.</font>
<a name="l00306"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o6">00306</a>         CVegetableVBAllocator                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#o6">_VBHardAllocator</a>[CVegetableVBAllocator::VBTypeCount];
00307         <font class="comment">// The same, but no VBHard.</font>
<a name="l00308"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o7">00308</a>         CVegetableVBAllocator                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#o7">_VBSoftAllocator</a>[CVegetableVBAllocator::VBTypeCount];
00309         <font class="comment">// Vertex Program. One VertexProgram for each rdrPass</font>
<a name="l00310"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o8">00310</a>         CVertexProgram                                                                  *<a class="code" href="classNL3D_1_1CVegetableManager.html#o8">_VertexProgram</a>[<a class="code" href="vegetable__def_8h.html#a0">NL3D_VEGETABLE_NRDRPASS</a>];
00311 
00312 
00313         <font class="comment">// Material. Usefull for texture and alphaTest</font>
<a name="l00314"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o9">00314</a>         CMaterial                                                                               <a class="code" href="classNL3D_1_1CVegetableManager.html#o9">_VegetableMaterial</a>;
00315         <font class="comment">// Norm</font>
<a name="l00316"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o10">00316</a>         CVector                                                                                 <a class="code" href="classNL3D_1_1CVegetableManager.html#o10">_DirectionalLight</a>;
<a name="l00317"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o11">00317</a>         <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a>                                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#o11">_GlobalAmbient</a>;
<a name="l00318"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o12">00318</a>         <a class="code" href="classNLMISC_1_1CRGBA.html">NLMISC::CRGBA</a>                                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#o12">_GlobalDiffuse</a>;
00319 
00320 
<a name="l00322"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o13">00322</a>         uint                                                                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#o13">_NumVegetableFaceRendered</a>;
00323 
00324 
00325         <font class="comment">// return true if the ith rdrPass is 2Sided.</font>
00326         <font class="keyword">static</font>  <font class="keywordtype">bool</font>    <a class="code" href="classNL3D_1_1CVegetableManager.html#f0">doubleSidedRdrPass</a>(uint rdrPass);
00327 
00328 
00330         uint                    <a class="code" href="classNL3D_1_1CVegetableManager.html#c0">getRdrPassInfoForShape</a>(CVegetableShape *shape, <a class="code" href="classNL3D_1_1CVegetableManager.html#s4">TVegetableWater</a> vegetWaterState, 
00331                 <font class="keywordtype">bool</font> &amp;instanceLighted, <font class="keywordtype">bool</font> &amp;instanceDoubleSided, <font class="keywordtype">bool</font> &amp;instanceZSort,
00332                 <font class="keywordtype">bool</font> &amp;destLighted, <font class="keywordtype">bool</font> &amp;precomputeLighting);
00333 
00334 
00336         CVegetableVBAllocator   &amp;<a class="code" href="classNL3D_1_1CVegetableManager.html#c1">getVBAllocatorForRdrPassAndVBHardMode</a>(uint rdrPass, uint vbHardMode);
00337 
00338 
00340         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#c2">initVertexProgram</a>(uint vpType);
00341 
00342 
00344         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#c3">setupVertexProgramConstants</a>(IDriver *driver);
00345 
00346 
00350         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#c4">swapIgRdrPassHardMode</a>(CVegetableInstanceGroup *, uint rdrPass);
00351 
00352 
00354         <font class="comment">// @{</font>
<a name="l00355"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_0">00355</a>         CVector                                                                                 <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_0">_WindDirection</a>;
<a name="l00356"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_1">00356</a>         <font class="keywordtype">float</font>                                                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_1">_WindFrequency</a>;
<a name="l00357"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_2">00357</a>         <font class="keywordtype">float</font>                                                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_2">_WindPower</a>;
<a name="l00358"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_3">00358</a>         <font class="keywordtype">float</font>                                                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_3">_WindBendMin</a>;
00359         <font class="comment">// nb: used for wind animation </font>
<a name="l00360"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_4">00360</a>         <font class="keywordtype">double</font>                                                                                  <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_4">_Time</a>;
<a name="l00361"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_5">00361</a>         <font class="keywordtype">double</font>                                                                                  <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_5">_WindPrecRenderTime</a>;
00362         <font class="comment">// updated at each render().</font>
<a name="l00363"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_6">00363</a>         <font class="keywordtype">double</font>                                                                                  <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_6">_WindAnimTime</a>;
00364 
00365         <font class="comment">// Constant LUT.</font>
<a name="l00366"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_7">00366</a>         <font class="keywordtype">float</font>                                                                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_7">_CosTable</a>[<a class="code" href="vegetable__def_8h.html#a6">NL3D_VEGETABLE_VP_LUT_SIZE</a>];
00367         <font class="comment">// computed at each render().</font>
<a name="l00368"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_8">00368</a>         <a class="code" href="classNLMISC_1_1CVector2f.html">NLMISC::CVector2f</a>                                                               <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_8">_WindTable</a>[<a class="code" href="vegetable__def_8h.html#a6">NL3D_VEGETABLE_VP_LUT_SIZE</a>];
<a name="l00369"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z888_9">00369</a>         <a class="code" href="classNLMISC_1_1CVector2f.html">NLMISC::CVector2f</a>                                                               <a class="code" href="classNL3D_1_1CVegetableManager.html#z888_9">_WindDeltaTable</a>[<a class="code" href="vegetable__def_8h.html#a6">NL3D_VEGETABLE_VP_LUT_SIZE</a>];
00370 
00371 
00372         <font class="comment">// @}</font>
00373 
00374 
00376         <font class="comment">// @{</font>
00377 
<a name="l00378"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z889_0">00378</a>         CVector                                 <a class="code" href="classNL3D_1_1CVegetableManager.html#z889_0">_AngleAxis</a>;
<a name="l00379"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z889_1">00379</a>         CVector                                 <a class="code" href="classNL3D_1_1CVegetableManager.html#z889_1">_ViewCenter</a>;
<a name="l00380"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z889_2">00380</a>         <font class="keywordtype">bool</font>                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z889_2">_BkupFog</a>;
00381         <font class="comment">// NB: the manager matrix may not be Identity, for ZBuffer precision reason.</font>
<a name="l00382"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z889_3">00382</a>         <a class="code" href="classNLMISC_1_1CMatrix.html">NLMISC::CMatrix</a>                 <a class="code" href="classNL3D_1_1CVegetableManager.html#z889_3">_ManagerMatrix</a>;
00383 
00384         <font class="comment">// @}</font>
00385 
00386 
00388         <font class="comment">// @{</font>
00389 
00390 
<a name="l00392"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z890_2">00392</a>         uint                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z890_2">_NumZSortBlendLayers</a>;
<a name="l00393"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z890_3">00393</a>         <font class="keywordtype">float</font>                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#z890_3">_ZSortLayerDistMax</a>;
<a name="l00394"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z890_4">00394</a>         CScene                                  *<a class="code" href="classNL3D_1_1CVegetableManager.html#z890_4">_ZSortScene</a>;
<a name="l00395"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z890_5">00395</a>         std::vector&lt;CVegetableBlendLayerModel*&gt;         <a class="code" href="classNL3D_1_1CVegetableManager.html#z890_5">_ZSortModelLayers</a>;
00396         <font class="comment">// The same but under water</font>
<a name="l00397"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z890_6">00397</a>         std::vector&lt;CVegetableBlendLayerModel*&gt;         <a class="code" href="classNL3D_1_1CVegetableManager.html#z890_6">_ZSortModelLayersUW</a>;
00398 
00399 
00401         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z890_0">setupRenderStateForBlendLayerModel</a>(IDriver *driver);
00402         <font class="keywordtype">void</font>                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z890_1">exitRenderStateForBlendLayerModel</a>(IDriver *driver);
00403 
00404         <font class="comment">// @}</font>
00405 
00406 
00408 
00411         <font class="comment">// @{</font>
00412 
00413         <font class="comment">// Last update time.</font>
<a name="l00414"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_3">00414</a>         <font class="keywordtype">double</font>                                  <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_3">_ULPrecTime</a>;
<a name="l00415"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_4">00415</a>         <font class="keywordtype">bool</font>                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_4">_ULPrecTimeInit</a>;
<a name="l00416"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_5">00416</a>         <font class="keywordtype">double</font>                                  <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_5">_ULTime</a>;
00417 
<a name="l00419"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_6">00419</a>         <font class="keywordtype">float</font>                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_6">_ULFrequency</a>;
<a name="l00421"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_7">00421</a>         <font class="keywordtype">float</font>                                   <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_7">_ULNVerticesToUpdate</a>;
<a name="l00423"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_8">00423</a>         uint                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_8">_ULNTotalVertices</a>;
<a name="l00425"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_9">00425</a>         CVegetableInstanceGroup *<a class="code" href="classNL3D_1_1CVegetableManager.html#z891_9">_ULRootIg</a>;
<a name="l00427"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_10">00427</a>         uint                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_10">_ULCurrentIgRdrPass</a>;
<a name="l00428"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#z891_11">00428</a>         uint                                    <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_11">_ULCurrentIgInstance</a>;
00429 
00431         <font class="keywordtype">void</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_0">doUpdateLighting</a>();
00432 
00436         <font class="keywordtype">bool</font>            <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_1">updateLightingIGPart</a>();
00437 
00438 
00442         uint            <a class="code" href="classNL3D_1_1CVegetableManager.html#z891_2">updateInstanceLighting</a>(CVegetableInstanceGroup *ig, uint rdrPassId, uint instanceId);
00443 
00444 
00445         <font class="comment">// @}</font>
00446 
00447         <font class="comment">// last driver setupped with a call to update driver</font>
<a name="l00448"></a><a class="code" href="classNL3D_1_1CVegetableManager.html#o14">00448</a>         <a class="code" href="classNLMISC_1_1CRefPtr.html">NLMISC::CRefPtr&lt;IDriver&gt;</a> <a class="code" href="classNL3D_1_1CVegetableManager.html#o14">_LastDriver</a>;
00449 
00450 
00451 };
00452 
00453 
00454 } <font class="comment">// NL3D</font>
00455 
00456 
00457 <font class="preprocessor">#endif // NL_VEGETABLE_MANAGER_H</font>
00458 <font class="preprocessor"></font>
00459 <font class="comment">/* End of vegetable_manager.h */</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>