aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03525.html
blob: c159b7173a182b501d7fe287aa749eda890af80e (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
<!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::CTileFarBank::CTileFar 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::CTileFarBank::CTileFar Class Reference</h1><code>#include &lt;<a class="el" href="a06543.html">tile_far_bank.h</a>&gt;</code>
<p>
<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="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFara0">CTileFar</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFara0"></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="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFara1">erasePixels</a> (<a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Erase a pixel array type.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFara1"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a03337.html">NLMISC::CRGBA</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFara2">getPixels</a> (<a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a> <a class="el" href="a04223.html#a581">type</a>, <a class="el" href="a03524.html#NL3D_1_1CTileFarBankw7">TFarOrder</a> order) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the pointer on the pixels data. Call this method only if isFill () returns true.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFara2"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFara3">getSize</a> (<a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a> <a class="el" href="a04223.html#a581">type</a>, <a class="el" href="a03524.html#NL3D_1_1CTileFarBankw7">TFarOrder</a> order) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the pixel array size. Should be 0 for empty, 64 for a 128x128 tile and 256 for a 256x256 tile.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFara3"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFara4">isFill</a> (<a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a> <a class="el" href="a04223.html#a581">type</a>) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return true if pixel value are presents, else return false.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFara4"></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="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFara5">serial</a> (class <a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f)  throw (NLMISC::EStream)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Serial this tile.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFara5"></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="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFara6">setPixels</a> (<a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a> <a class="el" href="a04223.html#a581">type</a>, <a class="el" href="a03524.html#NL3D_1_1CTileFarBankw7">TFarOrder</a> order, <a class="el" href="a03337.html">NLMISC::CRGBA</a> *pixels, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a587">size</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the pixel array of a far Tile.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFara6"></a><br><br></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="a03337.html">NLMISC::CRGBA</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a> [typeCount][orderCount]</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">RGBA Pixels vector.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFarr0"></a><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a14">sint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarv0">_Version</a> = 0x0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The version of this class.  <a href="#NL3D_1_1CTileFarBank_1_1CTileFarv0"></a><br><br></td></tr>
<tr><td colspan=2><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>class&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarn0">CTileFarBank</a></td></tr>

</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFara0" doxytag="NL3D::CTileFarBank::CTileFar::CTileFar" ></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::CTileFarBank::CTileFar::CTileFar </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> [inline]</code></td>
        </tr>

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

<p>
Default constructor. 
<p>

<p>
Definition at line <a class="el" href="a06543.html#l00072">72</a> of file <a class="el" href="a06543.html">tile_far_bank.h</a>.
<p>
<div class="fragment"><pre>00073                 {
00074                 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFara1" doxytag="NL3D::CTileFarBank::CTileFar::erasePixels" ></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::CTileFarBank::CTileFar::erasePixels </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>type</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

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

<p>
Erase a pixel array type. 
<p>

<p>
Definition at line <a class="el" href="a06543.html#l00098">98</a> of file <a class="el" href="a06543.html">tile_far_bank.h</a>.
<p>
References <a class="el" href="a06543.html#l00110">_Pixels</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, and <a class="el" href="a05646.html#l00244">type</a>.
<p>
<div class="fragment"><pre>00099                 {
00100                         <a class="code" href="a05378.html#a381">NLMISC::contReset</a> (_Pixels[type][order0]);
00101                         <a class="code" href="a05378.html#a381">NLMISC::contReset</a> (_Pixels[type][order1]);
00102                         <a class="code" href="a05378.html#a381">NLMISC::contReset</a> (_Pixels[type][order2]);
00103                 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFara2" doxytag="NL3D::CTileFarBank::CTileFar::getPixels" ></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"> const <a class="el" href="a03337.html">NLMISC::CRGBA</a>* NL3D::CTileFarBank::CTileFar::getPixels </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw7">TFarOrder</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>order</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [inline]</code></td>
        </tr>

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

<p>
Return the pointer on the pixels data. Call this method only if isFill () returns true. 
<p>

<p>
Definition at line <a class="el" href="a06543.html#l00077">77</a> of file <a class="el" href="a06543.html">tile_far_bank.h</a>.
<p>
References <a class="el" href="a06543.html#l00110">_Pixels</a>, and <a class="el" href="a05646.html#l00244">type</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00964">NL3D::CPatchDLMContext::computeTextureFar()</a>, and <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>.
<p>
<div class="fragment"><pre>00078                 {
00079                         <span class="keywordflow">return</span> &amp;<a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[<a class="code" href="a04223.html#a581">type</a>][order][0];
00080                 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFara3" doxytag="NL3D::CTileFarBank::CTileFar::getSize" ></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#a15">uint</a> NL3D::CTileFarBank::CTileFar::getSize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw7">TFarOrder</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>order</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [inline]</code></td>
        </tr>

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

<p>
Return the pixel array size. Should be 0 for empty, 64 for a 128x128 tile and 256 for a 256x256 tile. 
<p>

<p>
Definition at line <a class="el" href="a06543.html#l00089">89</a> of file <a class="el" href="a06543.html">tile_far_bank.h</a>.
<p>
References <a class="el" href="a06543.html#l00110">_Pixels</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00090                 {
00091                         <span class="keywordflow">return</span> <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[<a class="code" href="a04223.html#a581">type</a>][order].size();
00092                 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFara4" doxytag="NL3D::CTileFarBank::CTileFar::isFill" ></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"> bool NL3D::CTileFarBank::CTileFar::isFill </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>type</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

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

<p>
Return true if pixel value are presents, else return false. 
<p>

<p>
Definition at line <a class="el" href="a06543.html#l00083">83</a> of file <a class="el" href="a06543.html">tile_far_bank.h</a>.
<p>
References <a class="el" href="a06543.html#l00110">_Pixels</a>, and <a class="el" href="a05646.html#l00244">type</a>.
<p>
Referenced by <a class="el" href="a06163.html#l00964">NL3D::CPatchDLMContext::computeTextureFar()</a>, and <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>.
<p>
<div class="fragment"><pre>00084                 {
00085                         <span class="keywordflow">return</span> <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[<a class="code" href="a04223.html#a581">type</a>][0].begin()!=<a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[<a class="code" href="a04223.html#a581">type</a>][0].end();
00086                 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFara5" doxytag="NL3D::CTileFarBank::CTileFar::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::CTileFarBank::CTileFar::serial </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">class <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>  throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)</td>
        </tr>

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

<p>
Serial this tile. 
<p>

<p>
Definition at line <a class="el" href="a06542.html#l00047">47</a> of file <a class="el" href="a06542.html">tile_far_bank.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00645">size</a>.
<p>
<div class="fragment"><pre>00048 {
00049         <span class="comment">// Serial version</span>
00050         (<span class="keywordtype">void</span>)f.serialVersion(_Version);
00051 
00052         <span class="comment">// Serial pixels</span>
00053         f.serialCont (_Pixels[diffuse][order0]);
00054         f.serialCont (_Pixels[diffuse][order1]);
00055         f.serialCont (_Pixels[diffuse][order2]);
00056         f.serialCont (_Pixels[additive][order0]);
00057         f.serialCont (_Pixels[additive][order1]);
00058         f.serialCont (_Pixels[additive][order2]);
00059 
00060 <span class="preprocessor">#ifdef NEL_FORCE_WHITE_FAR_TEXTURE</span>
00061 <span class="preprocessor"></span>        <span class="keywordtype">int</span> <a class="code" href="a04223.html#a587">size</a> = <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[diffuse][order0].size ();
00062         _Pixels[diffuse][order0].resize (0);
00063         _Pixels[diffuse][order0].resize (size, CRGBA::White);
00064         <a class="code" href="a04223.html#a587">size</a> = _Pixels[diffuse][order1].size ();
00065         _Pixels[diffuse][order1].resize (0);
00066         _Pixels[diffuse][order1].resize (size, CRGBA::White);
00067         <a class="code" href="a04223.html#a587">size</a> = _Pixels[diffuse][order2].size ();
00068         _Pixels[diffuse][order2].resize (0);
00069         _Pixels[diffuse][order2].resize (size, CRGBA::White);
00070 <span class="preprocessor">#endif // NEL_FORCE_WHITE_FAR_TEXTURE</span>
00071 <span class="preprocessor"></span>}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFara6" doxytag="NL3D::CTileFarBank::CTileFar::setPixels" ></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::CTileFarBank::CTileFar::setPixels </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw8">TFarType</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>type</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03524.html#NL3D_1_1CTileFarBankw7">TFarOrder</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>order</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03337.html">NLMISC::CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>pixels</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>size</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>
Set the pixel array of a far Tile. 
<p>

<p>
Definition at line <a class="el" href="a06542.html#l00073">73</a> of file <a class="el" href="a06542.html">tile_far_bank.cpp</a>.
<p>
References <a class="el" href="a06543.html#l00110">_Pixels</a>, <a class="el" href="a06340.html#l00340">NLMISC::CRGBA::A</a>, <a class="el" href="a05646.html#l01173">alpha</a>, <a class="el" href="a05646.html#l00645">size</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
<div class="fragment"><pre>00074 {
00075         <span class="comment">// Mode alpha ?</span>
00076         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a581">type</a>==<a class="code" href="a04223.html#a663">alpha</a>)
00077         {
00078                 <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[diffuse][order].resize (size);
00079                 <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[additive][order].resize (size);
00080 
00081                 <span class="comment">// Copy only the alpha channel</span>
00082                 <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a15">uint</a> p=0; p&lt;<a class="code" href="a04223.html#a587">size</a>; p++)
00083                 {
00084                         <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[diffuse][order][p].A=pixels[p].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a>;
00085                         <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[additive][order][p].A=pixels[p].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a>;
00086                 }
00087         }
00088         <span class="keywordflow">else</span>
00089         {
00090                 <span class="comment">// Resize this array</span>
00091                 <a class="code" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">_Pixels</a>[<a class="code" href="a04223.html#a581">type</a>][order].resize (size);
00092 
00093                 <span class="comment">// Copy all the channels</span>
00094                 memcpy (&amp;_Pixels[type][order][0], pixels, size*<span class="keyword">sizeof</span>(<a class="code" href="a03337.html">NLMISC::CRGBA</a>));
00095         }
00096 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFarn0" doxytag="NL3D::CTileFarBank::CTileFar::CTileFarBank" ></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"> friend class <a class="el" href="a03524.html">CTileFarBank</a><code> [friend]</code>
      </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="a06543.html#l00069">69</a> of file <a class="el" href="a06543.html">tile_far_bank.h</a>.    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFarr0" doxytag="NL3D::CTileFarBank::CTileFar::_Pixels" ></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="a03337.html">NLMISC::CRGBA</a>&gt; <a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarr0">NL3D::CTileFarBank::CTileFar::_Pixels</a>[typeCount][orderCount]<code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
RGBA Pixels vector. 
<p>

<p>
Definition at line <a class="el" href="a06543.html#l00110">110</a> of file <a class="el" href="a06543.html">tile_far_bank.h</a>.
<p>
Referenced by <a class="el" href="a06543.html#l00098">erasePixels()</a>, <a class="el" href="a06543.html#l00077">getPixels()</a>, <a class="el" href="a06543.html#l00089">getSize()</a>, <a class="el" href="a06543.html#l00083">isFill()</a>, and <a class="el" href="a06542.html#l00073">setPixels()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileFarBank_1_1CTileFarv0" doxytag="NL3D::CTileFarBank::CTileFar::_Version" ></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"> const <a class="el" href="a04558.html#a14">sint</a> <a class="el" href="a03525.html#NL3D_1_1CTileFarBank_1_1CTileFarv0">NL3D::CTileFarBank::CTileFar::_Version</a> = 0x0<code> [static, private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The version of this class. 
<p>

<p>
Definition at line <a class="el" href="a06542.html#l00045">45</a> of file <a class="el" href="a06542.html">tile_far_bank.cpp</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06543.html">tile_far_bank.h</a><li><a class="el" href="a06542.html">tile_far_bank.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:04:44 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>