aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a02635.html
blob: 63758298ff559c376c8969f2ea5cc43b4fcb6da6 (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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NeL: NL3D::CHLSTextureBank class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NL3D::CHLSTextureBank Class Reference</h1><code>#include &lt;<a class="el" href="a05793.html">hls_texture_bank.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A bank of HLS colorisable textures <dl compact><dt><b>Author:</b></dt><dd>Lionel Berenguier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2002 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a05793.html#l00050">50</a> of file <a class="el" href="a05793.html">hls_texture_bank.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBanka0">CHLSTextureBank</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#NL3D_1_1CHLSTextureBanka0"></a><br><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Build</div></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_0">addColorTexture</a> (const <a class="el" href="a02632.html">CHLSColorTexture</a> &amp;tex)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add a colorisable texture to the bank.  <a href="#NL3D_1_1CHLSTextureBankz201_0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_1">addTextureInstance</a> (const std::string &amp;name, <a class="el" href="a04558.html#a11">uint32</a> colorTextureId, const std::vector&lt; <a class="el" href="a02631.html">CHLSColorDelta</a> &gt; &amp;cols)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_2">compile</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">compile the bank.  <a href="#NL3D_1_1CHLSTextureBankz201_2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_3">reset</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">clear the bank  <a href="#NL3D_1_1CHLSTextureBankz201_3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_4">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">serial. if loading, ptrs are correclty setuped =&gt; no <a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_2">compile()</a> needed  <a href="#NL3D_1_1CHLSTextureBankz201_4"></a><br><br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Usage</div></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz203_0">fillHandleArray</a> (std::vector&lt; <a class="el" href="a02637.html">CTextureInstanceHandle</a> &gt; &amp;array)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Append handle into the array (build of the manager).  <a href="#NL3D_1_1CHLSTextureBankz203_0"></a><br><br></td></tr>
<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankd0">compilePtrs</a> ()</td></tr>

<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a02632.html">CHLSColorTexture</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankr0">_ColorTextures</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of colorisable texture.  <a href="#NL3D_1_1CHLSTextureBankr0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a04558.html#a7">uint8</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankr1">_TextureInstanceData</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Raw Array of Name+HLS color delta.  <a href="#NL3D_1_1CHLSTextureBankr1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::vector&lt; <a class="el" href="a02636.html">CTextureInstance</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankr2">_TextureInstances</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Array of textureInstances.  <a href="#NL3D_1_1CHLSTextureBankr2"></a><br><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CHLSTextureBanka0" doxytag="NL3D::CHLSTextureBank::CHLSTextureBank" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> NL3D::CHLSTextureBank::CHLSTextureBank </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructor. 
<p>

<p>
Definition at line <a class="el" href="a05792.html#l00045">45</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
<div class="fragment"><pre>00046 {
00047 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CHLSTextureBankz201_0" doxytag="NL3D::CHLSTextureBank::addColorTexture" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NL3D::CHLSTextureBank::addColorTexture </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a02632.html">CHLSColorTexture</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>tex</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add a colorisable texture to the bank. 
<p>

<p>
Definition at line <a class="el" href="a05792.html#l00056">56</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
References <a class="el" href="a05793.html#l00147">_ColorTextures</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>00057 {
00058         <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr0">_ColorTextures</a>.push_back(tex);
00059         <span class="keywordflow">return</span> <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr0">_ColorTextures</a>.size()-1;
00060 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankz201_1" doxytag="NL3D::CHLSTextureBank::addTextureInstance" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CHLSTextureBank::addTextureInstance </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>colorTextureId</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const std::vector&lt; <a class="el" href="a02631.html">CHLSColorDelta</a> &gt; &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>cols</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Add an instance texture (ie colorised) to the bank <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>name</em>&nbsp;</td><td>name of the colored texture. NB: it is lowered in this method </td></tr>
    <tr><td valign=top><em>colorTextureId</em>&nbsp;</td><td>index returned by <a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_0">addColorTexture()</a> </td></tr>
    <tr><td valign=top><em>cols</em>&nbsp;</td><td>must be same size of number of mask of the colorTextureId pointed (nlassert)</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05792.html#l00062">62</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
References <a class="el" href="a05793.html#l00060">NL3D::CHLSTextureBank::CTextureInstance::_ColorTextureId</a>, <a class="el" href="a05793.html#l00064">NL3D::CHLSTextureBank::CTextureInstance::_ColorTexturePtr</a>, <a class="el" href="a05793.html#l00147">_ColorTextures</a>, <a class="el" href="a05793.html#l00058">NL3D::CHLSTextureBank::CTextureInstance::_DataIndex</a>, <a class="el" href="a05793.html#l00062">NL3D::CHLSTextureBank::CTextureInstance::_DataPtr</a>, <a class="el" href="a05793.html#l00150">_TextureInstanceData</a>, <a class="el" href="a05793.html#l00153">_TextureInstances</a>, <a class="el" href="a05791.html#l00090">NL3D::CHLSColorTexture::getNumMasks()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05586.html#l00536">NLMISC::strlwr()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>00063 {
00064         string  nameLwr= <a class="code" href="a05378.html#a273">strlwr</a>(name);
00065 
00066         <span class="comment">// checks</span>
00067         <a class="code" href="a04199.html#a6">nlassert</a>(colorTextureId&lt;<a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr0">_ColorTextures</a>.size());
00068         CHLSColorTexture        &amp;colText= <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr0">_ColorTextures</a>[colorTextureId];
00069         <a class="code" href="a04199.html#a6">nlassert</a>(cols.size()==colText.getNumMasks());
00070 
00071         <span class="comment">// new instance</span>
00072         CTextureInstance        textInst;
00073         textInst._ColorTextureId= colorTextureId;
00074         textInst._DataIndex= <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr1">_TextureInstanceData</a>.size();
00075         <span class="comment">// leave ptrs undefined</span>
00076         textInst._DataPtr= NULL;
00077         textInst._ColorTexturePtr= NULL;
00078 
00079         <span class="comment">// allocate/fill data</span>
00080         <a class="code" href="a04558.html#a11">uint32</a>  nameSize= (nameLwr.size()+1);
00081         <a class="code" href="a04558.html#a11">uint32</a>  colSize= cols.size()*<span class="keyword">sizeof</span>(CHLSColorDelta);
00082         <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr1">_TextureInstanceData</a>.resize(<a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr1">_TextureInstanceData</a>.size() + nameSize + colSize);
00083         <span class="comment">// copy name</span>
00084         memcpy(&amp;_TextureInstanceData[textInst._DataIndex], nameLwr.c_str(), nameSize);
00085         <span class="comment">// copy cols</span>
00086         memcpy(&amp;_TextureInstanceData[textInst._DataIndex+nameSize], &amp;cols[0], colSize);
00087 
00088         <span class="comment">// add the instance.</span>
00089         <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr2">_TextureInstances</a>.push_back(textInst);
00090 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankz201_2" doxytag="NL3D::CHLSTextureBank::compile" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CHLSTextureBank::compile </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
compile the bank. 
<p>

<p>
Definition at line <a class="el" href="a05792.html#l00107">107</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
References <a class="el" href="a05792.html#l00092">compilePtrs()</a>.
<p>
<div class="fragment"><pre>00108 {
00109         <span class="comment">// compile the ptrs.</span>
00110         <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankd0">compilePtrs</a>();
00111 
00112         <span class="comment">// No other ops for now.</span>
00113 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankd0" doxytag="NL3D::CHLSTextureBank::compilePtrs" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CHLSTextureBank::compilePtrs </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [private]</code></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05792.html#l00092">92</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
References <a class="el" href="a05793.html#l00060">NL3D::CHLSTextureBank::CTextureInstance::_ColorTextureId</a>, <a class="el" href="a05793.html#l00064">NL3D::CHLSTextureBank::CTextureInstance::_ColorTexturePtr</a>, <a class="el" href="a05793.html#l00147">_ColorTextures</a>, <a class="el" href="a05793.html#l00058">NL3D::CHLSTextureBank::CTextureInstance::_DataIndex</a>, <a class="el" href="a05793.html#l00062">NL3D::CHLSTextureBank::CTextureInstance::_DataPtr</a>, <a class="el" href="a05793.html#l00150">_TextureInstanceData</a>, <a class="el" href="a05793.html#l00153">_TextureInstances</a>, <a class="el" href="a05646.html#l01013">data</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
<p>
Referenced by <a class="el" href="a05792.html#l00107">compile()</a>, and <a class="el" href="a05792.html#l00117">serial()</a>.
<p>
<div class="fragment"><pre>00093 {
00094         <a class="code" href="a04558.html#a7">uint8</a>   *<a class="code" href="a04223.html#a637">data</a>= &amp;<a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr1">_TextureInstanceData</a>[0];
00095 
00096         <span class="comment">// For all texture instances, compute ptr.</span>
00097         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i&lt;<a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr2">_TextureInstances</a>.size();i++)
00098         {
00099                 CTextureInstance        &amp;text= <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr2">_TextureInstances</a>[i];
00100                 text._DataPtr= <a class="code" href="a04223.html#a637">data</a> + text._DataIndex;
00101                 text._ColorTexturePtr= &amp;<a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr0">_ColorTextures</a>[text._ColorTextureId];
00102         }
00103 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankz203_0" doxytag="NL3D::CHLSTextureBank::fillHandleArray" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CHLSTextureBank::fillHandleArray </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">std::vector&lt; <a class="el" href="a02637.html">CTextureInstanceHandle</a> &gt; &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>array</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Append handle into the array (build of the manager). 
<p>

<p>
Definition at line <a class="el" href="a05792.html#l00135">135</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
References <a class="el" href="a05793.html#l00153">_TextureInstances</a>, <a class="el" href="a05793.html#l00092">NL3D::CHLSTextureBank::CTextureInstanceHandle::Texture</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a05794.html#l00063">NL3D::CHLSTextureManager::addBank()</a>.
<p>
<div class="fragment"><pre>00136 {
00137         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0;i&lt;<a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr2">_TextureInstances</a>.size();i++)
00138         {
00139                 CTextureInstanceHandle  h;
00140                 h.Texture= &amp;<a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankr2">_TextureInstances</a>[i];
00141                 array.push_back(h);
00142         }
00143 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankz201_3" doxytag="NL3D::CHLSTextureBank::reset" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CHLSTextureBank::reset </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
clear the bank 
<p>

<p>
Definition at line <a class="el" href="a05792.html#l00049">49</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
References <a class="el" href="a05793.html#l00147">_ColorTextures</a>, <a class="el" href="a05793.html#l00150">_TextureInstanceData</a>, and <a class="el" href="a05793.html#l00153">_TextureInstances</a>.
<p>
<div class="fragment"><pre>00050 {
00051         <a class="code" href="a05378.html#a381">contReset</a>(_ColorTextures);
00052         <a class="code" href="a05378.html#a381">contReset</a>(_TextureInstanceData);
00053         <a class="code" href="a05378.html#a381">contReset</a>(_TextureInstances);
00054 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankz201_4" doxytag="NL3D::CHLSTextureBank::serial" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NL3D::CHLSTextureBank::serial </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>f</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
serial. if loading, ptrs are correclty setuped =&gt; no <a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankz201_2">compile()</a> needed 
<p>

<p>
Definition at line <a class="el" href="a05792.html#l00117">117</a> of file <a class="el" href="a05792.html">hls_texture_bank.cpp</a>.
<p>
References <a class="el" href="a05793.html#l00147">_ColorTextures</a>, <a class="el" href="a05793.html#l00150">_TextureInstanceData</a>, <a class="el" href="a05793.html#l00153">_TextureInstances</a>, <a class="el" href="a05792.html#l00092">compilePtrs()</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a06462.html#l00324">NLMISC::IStream::serialCont()</a>, <a class="el" href="a06461.html#l00266">NLMISC::IStream::serialVersion()</a>, and <a class="el" href="a05981.html#l00104">sint</a>.
<p>
<div class="fragment"><pre>00118 {
00119         <a class="code" href="a04558.html#a14">sint</a>    ver= f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2035_8">serialVersion</a>(0);
00120 
00121         f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_ColorTextures);
00122         f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_TextureInstanceData);
00123         f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_TextureInstances);
00124 
00125         <span class="comment">// Must compile ptrs.</span>
00126         <span class="keywordflow">if</span>(f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>())
00127         {
00128                 <span class="comment">// compile the ptrs only.</span>
00129                 <a class="code" href="a02635.html#NL3D_1_1CHLSTextureBankd0">compilePtrs</a>();
00130         }
00131 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CHLSTextureBankr0" doxytag="NL3D::CHLSTextureBank::_ColorTextures" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="a02632.html">CHLSColorTexture</a>&gt; <a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankr0">NL3D::CHLSTextureBank::_ColorTextures</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Array of colorisable texture. 
<p>

<p>
Definition at line <a class="el" href="a05793.html#l00147">147</a> of file <a class="el" href="a05793.html">hls_texture_bank.h</a>.
<p>
Referenced by <a class="el" href="a05792.html#l00056">addColorTexture()</a>, <a class="el" href="a05792.html#l00062">addTextureInstance()</a>, <a class="el" href="a05792.html#l00092">compilePtrs()</a>, <a class="el" href="a05792.html#l00049">reset()</a>, and <a class="el" href="a05792.html#l00117">serial()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankr1" doxytag="NL3D::CHLSTextureBank::_TextureInstanceData" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="a04558.html#a7">uint8</a>&gt; <a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankr1">NL3D::CHLSTextureBank::_TextureInstanceData</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Raw Array of Name+HLS color delta. 
<p>

<p>
Definition at line <a class="el" href="a05793.html#l00150">150</a> of file <a class="el" href="a05793.html">hls_texture_bank.h</a>.
<p>
Referenced by <a class="el" href="a05792.html#l00062">addTextureInstance()</a>, <a class="el" href="a05792.html#l00092">compilePtrs()</a>, <a class="el" href="a05792.html#l00049">reset()</a>, and <a class="el" href="a05792.html#l00117">serial()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CHLSTextureBankr2" doxytag="NL3D::CHLSTextureBank::_TextureInstances" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::vector&lt;<a class="el" href="a02636.html">CTextureInstance</a>&gt; <a class="el" href="a02635.html#NL3D_1_1CHLSTextureBankr2">NL3D::CHLSTextureBank::_TextureInstances</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Array of textureInstances. 
<p>

<p>
Definition at line <a class="el" href="a05793.html#l00153">153</a> of file <a class="el" href="a05793.html">hls_texture_bank.h</a>.
<p>
Referenced by <a class="el" href="a05792.html#l00062">addTextureInstance()</a>, <a class="el" href="a05792.html#l00092">compilePtrs()</a>, <a class="el" href="a05792.html#l00135">fillHandleArray()</a>, <a class="el" href="a05792.html#l00049">reset()</a>, and <a class="el" href="a05792.html#l00117">serial()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a05793.html">hls_texture_bank.h</a><li><a class="el" href="a05792.html">hls_texture_bank.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:47:08 2004 for NeL by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 > 
</a>1.3.6 </small></address>
</body>
</html>