aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03528.html
blob: 958d811b3c3839dc41db61a1185c3579360e145d (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
<!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::CTileLumel 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::CTileLumel Class Reference</h1><code>#include &lt;<a class="el" href="a06547.html">tile_lumel.h</a>&gt;</code>
<p>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class describe an uncompressed lumel for tiles.<p>
<dl compact><dt><b>Author:</b></dt><dd>Cyril Corvazier <p>
Nevrax France </dd></dl>
<dl compact><dt><b>Date:</b></dt><dd>2000 </dd></dl>

<p>

<p>
Definition at line <a class="el" href="a06547.html#l00047">47</a> of file <a class="el" href="a06547.html">tile_lumel.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>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03528.html#NL3D_1_1CTileLumela0">createCompressed</a> (<a class="el" href="a04558.html#a7">uint8</a> interpolated, <a class="el" href="a04558.html#a7">uint8</a> _4bits)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03528.html#NL3D_1_1CTileLumela1">createUncompressed</a> (<a class="el" href="a04558.html#a7">uint8</a> interpolated, <a class="el" href="a04558.html#a7">uint8</a> shaded)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03528.html#NL3D_1_1CTileLumela2">isShadowed</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03528.html#NL3D_1_1CTileLumela3">pack</a> (<a class="el" href="a03529.html">CStreamBit</a> &amp;stream) const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03528.html#NL3D_1_1CTileLumela4">unpack</a> (<a class="el" href="a03529.html">CStreamBit</a> &amp;stream, <a class="el" href="a04558.html#a7">uint8</a> interpolated)</td></tr>

<tr><td colspan=2><br><h2>Static Public 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="a03528.html#NL3D_1_1CTileLumele0">skip</a> (<a class="el" href="a03529.html">CStreamBit</a> &amp;stream)</td></tr>

<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03528.html#NL3D_1_1CTileLumelo0">Shaded</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The shading value [0-255]. Always valid.  <a href="#NL3D_1_1CTileLumelo0"></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><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The shadow 4 bits value [0-15]. 0xff means no shadows.  <a href="#NL3D_1_1CTileLumelr0"></a><br><br></td></tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CTileLumela0" doxytag="NL3D::CTileLumel::createCompressed" ></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::CTileLumel::createCompressed </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>interpolated</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>_4bits</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inline]</code></td>
        </tr>

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

<p>
Create a tileLumel with precompressed data.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>interpolated</em>&nbsp;</td><td>is the bilinear interpolated value at this lumel. </td></tr>
    <tr><td valign=top><em>_4bits</em>&nbsp;</td><td>is the 4 bits compressed shadow.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06547.html#l00204">204</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
<p>
References <a class="el" href="a06547.html#l00127">_ShadowValue</a>, <a class="el" href="a06547.html#l00124">Shaded</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="a06547.html#l00218">unpack()</a>.
<p>
<div class="fragment"><pre>00205 {
00206         <span class="comment">// Shadow value</span>
00207         <a class="code" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a>=_4bits;
00208 
00209         <span class="comment">// Shading</span>
00210         <a class="code" href="a04558.html#a15">uint</a> temp=(((<a class="code" href="a04558.html#a15">uint</a>)interpolated*((<a class="code" href="a04558.html#a15">uint</a>)<a class="code" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a>))&gt;&gt;3)+4;
00211         <span class="keywordflow">if</span> (temp&gt;255)
00212                 temp=255;
00213 
00214         <a class="code" href="a03528.html#NL3D_1_1CTileLumelo0">Shaded</a>=(<a class="code" href="a04558.html#a7">uint8</a>)temp;
00215 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileLumela1" doxytag="NL3D::CTileLumel::createUncompressed" ></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::CTileLumel::createUncompressed </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>interpolated</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>shaded</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>
Create a tileLumel from uncompressed data.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>interpolated</em>&nbsp;</td><td>is the bilinear interpolated value at this lumel. </td></tr>
    <tr><td valign=top><em>shaded</em>&nbsp;</td><td>is the reel shading value at this lumel.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06546.html#l00037">37</a> of file <a class="el" href="a06546.html">tile_lumel.cpp</a>.
<p>
References <a class="el" href="a06547.html#l00127">_ShadowValue</a>, <a class="el" href="a05587.html#l00115">NLMISC::clamp()</a>, <a class="el" href="a06547.html#l00124">Shaded</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
<p>
<div class="fragment"><pre>00038 {
00039         <span class="comment">// Shading </span>
00040         <a class="code" href="a03528.html#NL3D_1_1CTileLumelo0">Shaded</a>=shaded;
00041 
00042         <span class="comment">// Same color ?</span>
00043         <span class="keywordflow">if</span> (interpolated!=shaded)
00044         {
00045                 <span class="comment">// Compute compressed value</span>
00046                 <a class="code" href="a04558.html#a14">sint</a> temp=((shaded&lt;&lt;3)/(<a class="code" href="a04558.html#a14">sint</a>)(interpolated?interpolated:1));
00047                 <a class="code" href="a05378.html#a374">clamp</a> (temp, 0, 15);
00048 
00049                 <span class="comment">// After decompression</span>
00050                 <a class="code" href="a04558.html#a15">uint</a> decompressed=(((<a class="code" href="a04558.html#a15">uint</a>)interpolated*((<a class="code" href="a04558.html#a15">uint</a>)temp))&gt;&gt;3)+4;
00051                 <span class="keywordflow">if</span> (decompressed&gt;255)
00052                         decompressed=255;
00053 
00054                 <span class="comment">// Need to compress ?</span>
00055                 <span class="keywordflow">if</span> (abs((<a class="code" href="a04558.html#a14">sint</a>)shaded-(<a class="code" href="a04558.html#a14">sint</a>)decompressed)&gt;=abs((<a class="code" href="a04558.html#a14">sint</a>)shaded-(<a class="code" href="a04558.html#a14">sint</a>)interpolated))
00056                 {
00057                         <span class="comment">// Shadow not present</span>
00058                         <a class="code" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a>=0xff;
00059                 }
00060                 <span class="keywordflow">else</span>
00061                 {
00062                         <span class="comment">// Shadow</span>
00063                         <a class="code" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a>=temp;
00064                 }
00065         }
00066         <span class="keywordflow">else</span>
00067         {
00068                 <span class="comment">// Shadow not present</span>
00069                 <a class="code" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a>=0xff;
00070         }
00071 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileLumela2" doxytag="NL3D::CTileLumel::isShadowed" ></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::CTileLumel::isShadowed </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> const<code> [inline]</code></td>
        </tr>

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

<p>
Is shadow are present? return true if this lumel is shadowed, else false.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>stream</em>&nbsp;</td><td>is the bit stream used to pack the lumel.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06547.html#l00117">117</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
<p>
References <a class="el" href="a06547.html#l00127">_ShadowValue</a>.
<p>
Referenced by <a class="el" href="a06546.html#l00074">pack()</a>.
<p>
<div class="fragment"><pre>00118         {
00119                 <span class="keywordflow">return</span> (<a class="code" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a>!=0xff);
00120         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileLumela3" doxytag="NL3D::CTileLumel::pack" ></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::CTileLumel::pack </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03529.html">CStreamBit</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>stream</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

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

<p>
Pack the lumel from a bit stream.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>stream</em>&nbsp;</td><td>is the bit stream used to pack the lumel.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06546.html#l00074">74</a> of file <a class="el" href="a06546.html">tile_lumel.cpp</a>.
<p>
References <a class="el" href="a06547.html#l00127">_ShadowValue</a>, <a class="el" href="a06547.html#l00117">isShadowed()</a>, <a class="el" href="a06547.html#l00152">NL3D::CTileLumel::CStreamBit::pushBack4bits()</a>, and <a class="el" href="a06547.html#l00139">NL3D::CTileLumel::CStreamBit::pushBackBool()</a>.
<p>
<div class="fragment"><pre>00075 {
00076         <span class="comment">// There is shadow here ?</span>
00077         <span class="keywordflow">if</span> (<a class="code" href="a03528.html#NL3D_1_1CTileLumela2">isShadowed</a> ())
00078         {
00079                 <span class="comment">// Put a true</span>
00080                 stream.pushBackBool(<span class="keyword">true</span>);
00081 
00082                 <span class="comment">// Read the shadow value</span>
00083                 stream.pushBack4bits(_ShadowValue);
00084         }
00085         <span class="keywordflow">else</span>
00086                 <span class="comment">// Put a false</span>
00087                 stream.pushBackBool(<span class="keyword">false</span>);
00088 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileLumele0" doxytag="NL3D::CTileLumel::skip" ></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::CTileLumel::skip </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03529.html">CStreamBit</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>stream</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, static]</code></td>
        </tr>

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

<p>
Skip the lumel from a bit stream.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>stream</em>&nbsp;</td><td>is the bit stream used to skip the lumel.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06547.html#l00240">240</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
<p>
References <a class="el" href="a06547.html#l00186">NL3D::CTileLumel::CStreamBit::popBack4bits()</a>, and <a class="el" href="a06547.html#l00174">NL3D::CTileLumel::CStreamBit::popBackBool()</a>.
<p>
<div class="fragment"><pre>00241 {
00242         <span class="comment">// There is shadow here ?</span>
00243         <span class="keywordflow">if</span> (stream.popBackBool())
00244         {
00245                 <span class="comment">// Read the shadow value</span>
00246                 stream.popBack4bits();
00247         }
00248 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileLumela4" doxytag="NL3D::CTileLumel::unpack" ></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::CTileLumel::unpack </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03529.html">CStreamBit</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>stream</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>interpolated</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inline]</code></td>
        </tr>

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

<p>
Unpack the lumel from a bit stream.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>interpolated</em>&nbsp;</td><td>is the bilinear interpolated value at this lumel. </td></tr>
    <tr><td valign=top><em>stream</em>&nbsp;</td><td>is the bit stream used to unpack the lumel.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06547.html#l00218">218</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
<p>
References <a class="el" href="a06547.html#l00127">_ShadowValue</a>, <a class="el" href="a06547.html#l00204">createCompressed()</a>, <a class="el" href="a06547.html#l00186">NL3D::CTileLumel::CStreamBit::popBack4bits()</a>, <a class="el" href="a06547.html#l00174">NL3D::CTileLumel::CStreamBit::popBackBool()</a>, <a class="el" href="a06547.html#l00124">Shaded</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l01132">value</a>.
<p>
<div class="fragment"><pre>00219 {
00220         <span class="comment">// There is shadow here ?</span>
00221         <span class="keywordflow">if</span> (stream.popBackBool())
00222         {
00223                 <span class="comment">// Read the shadow value</span>
00224                 <a class="code" href="a04558.html#a7">uint8</a> <a class="code" href="a04223.html#a658">value</a>=stream.popBack4bits();
00225 
00226                 <span class="comment">// Unpack it</span>
00227                 <a class="code" href="a03528.html#NL3D_1_1CTileLumela0">createCompressed</a> (interpolated, value);
00228         }
00229         <span class="keywordflow">else</span>
00230         {
00231                 <span class="comment">// Put a default shading</span>
00232                 <a class="code" href="a03528.html#NL3D_1_1CTileLumelo0">Shaded</a>=interpolated;
00233 
00234                 <span class="comment">// Shadow not present</span>
00235                 <a class="code" href="a03528.html#NL3D_1_1CTileLumelr0">_ShadowValue</a>=0xff;
00236         }
00237 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CTileLumelr0" doxytag="NL3D::CTileLumel::_ShadowValue" ></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#a7">uint8</a> <a class="el" href="a03528.html#NL3D_1_1CTileLumelr0">NL3D::CTileLumel::_ShadowValue</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The shadow 4 bits value [0-15]. 0xff means no shadows. 
<p>

<p>
Definition at line <a class="el" href="a06547.html#l00127">127</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
<p>
Referenced by <a class="el" href="a06547.html#l00204">createCompressed()</a>, <a class="el" href="a06546.html#l00037">createUncompressed()</a>, <a class="el" href="a06547.html#l00117">isShadowed()</a>, <a class="el" href="a06546.html#l00074">pack()</a>, and <a class="el" href="a06547.html#l00218">unpack()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTileLumelo0" doxytag="NL3D::CTileLumel::Shaded" ></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#a7">uint8</a> <a class="el" href="a03528.html#NL3D_1_1CTileLumelo0">NL3D::CTileLumel::Shaded</a>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The shading value [0-255]. Always valid. 
<p>

<p>
Definition at line <a class="el" href="a06547.html#l00124">124</a> of file <a class="el" href="a06547.html">tile_lumel.h</a>.
<p>
Referenced by <a class="el" href="a06547.html#l00204">createCompressed()</a>, <a class="el" href="a06546.html#l00037">createUncompressed()</a>, and <a class="el" href="a06547.html#l00218">unpack()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06547.html">tile_lumel.h</a><li><a class="el" href="a06546.html">tile_lumel.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:04:56 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>