aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a05096.html
blob: d0c6a5662734b3fa27dc9b0d9c2e83f959a1f659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
<!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: texture_far.cpp File 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>texture_far.cpp File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
Texture used to store far textures for several patches.<p>
<dl compact><dt><b>Id</b></dt><dd><a class="el" href="a05096.html">texture_far.cpp</a>,v 1.26 2004/02/06 14:37:44 besson Exp </dd></dl>

<p>
Definition in file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
<code>#include "<a class="el" href="a06438.html">std3d.h</a>"</code><br>
<code>#include "<a class="el" href="a06520.html">3d/texture_far.h</a>"</code><br>
<code>#include "<a class="el" href="a06543.html">3d/tile_far_bank.h</a>"</code><br>
<code>#include "<a class="el" href="a06156.html">3d/patch.h</a>"</code><br>
<code>#include "<a class="el" href="a06539.html">3d/tile_color.h</a>"</code><br>
<code>#include "<a class="el" href="a06760.html">3d/zone.h</a>"</code><br>
<code>#include "<a class="el" href="a05863.html">3d/landscape.h</a>"</code><br>
<code>#include "<a class="el" href="a06480.html">nel/misc/system_info.h</a>"</code><br>

<p>
<a href="a06519.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Namespaces</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>namespace &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05363.html">NL3D</a></td></tr>

<tr><td colspan=2><br><h2>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="a05096.html#a4">NL3D_asmAssembleShading1x1</a> (const <a class="el" href="a04558.html#a7">uint8</a> *lumels, const <a class="el" href="a03337.html">CRGBA</a> *colorMap, const <a class="el" href="a03337.html">CRGBA</a> *srcTLIs, const <a class="el" href="a03337.html">CRGBA</a> *srcUSCs, <a class="el" href="a03337.html">CRGBA</a> *dst, <a class="el" href="a04558.html#a15">uint</a> lineWidth, <a class="el" href="a04558.html#a15">uint</a> nbTexel)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a5">NL3D_asmAssembleShading2x2</a> (const <a class="el" href="a04558.html#a7">uint8</a> *lumels, const <a class="el" href="a03337.html">CRGBA</a> *colorMap, const <a class="el" href="a03337.html">CRGBA</a> *srcTLIs, const <a class="el" href="a03337.html">CRGBA</a> *srcUSCs, <a class="el" href="a03337.html">CRGBA</a> *dst, <a class="el" href="a04558.html#a15">uint</a> lineWidth, <a class="el" href="a04558.html#a15">uint</a> nbTexel)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a6">NL3D_asmAssembleShading4x4</a> (const <a class="el" href="a04558.html#a7">uint8</a> *lumels, const <a class="el" href="a03337.html">CRGBA</a> *colorMap, const <a class="el" href="a03337.html">CRGBA</a> *srcTLIs, const <a class="el" href="a03337.html">CRGBA</a> *srcUSCs, <a class="el" href="a03337.html">CRGBA</a> *dst, <a class="el" href="a04558.html#a15">uint</a> nbTexel)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a3">NL3D_asmBlendLines</a> (<a class="el" href="a03337.html">CRGBA</a> *dst, const <a class="el" href="a03337.html">CRGBA</a> *src0, const <a class="el" href="a03337.html">CRGBA</a> *src1, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a566">index</a>, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a571">len</a>)</td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a1">NL3D_asmExpandLineColor565</a> (const <a class="el" href="a04558.html#a9">uint16</a> *<a class="el" href="a04223.html#a652">src</a>, <a class="el" href="a03337.html">CRGBA</a> *dst, <a class="el" href="a04558.html#a15">uint</a> du, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a571">len</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a2">NL3D_asmExpandLineColor8888</a> (const <a class="el" href="a03337.html">CRGBA</a> *<a class="el" href="a04223.html#a652">src</a>, <a class="el" href="a03337.html">CRGBA</a> *dst, <a class="el" href="a04558.html#a15">uint</a> du, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a571">len</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a9">NL3D_asmModulateAndBlendLineColors</a> (<a class="el" href="a03337.html">CRGBA</a> *dst, const <a class="el" href="a03337.html">CRGBA</a> *src0, const <a class="el" href="a03337.html">CRGBA</a> *src1, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a571">len</a>, <a class="el" href="a04558.html#a15">uint</a> src0DeltaX, <a class="el" href="a04558.html#a15">uint</a> dstDeltaX)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a8">NL3D_asmModulateLineColors</a> (<a class="el" href="a03337.html">CRGBA</a> *dst, const <a class="el" href="a03337.html">CRGBA</a> *src0, const <a class="el" href="a03337.html">CRGBA</a> *src1, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a571">len</a>, <a class="el" href="a04558.html#a15">uint</a> src0DeltaX, <a class="el" href="a04558.html#a15">uint</a> dstDeltaX)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a10">NL3D_drawFarTileInFarTexture</a> (const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *pTileFar)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a12">NL3D_drawFarTileInFarTextureAdditive</a> (const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *pTileFar)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a13">NL3D_drawFarTileInFarTextureAdditiveAlpha</a> (const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *pTileFar)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a11">NL3D_drawFarTileInFarTextureAlpha</a> (const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *pTileFar)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a05096.html#a7">NL3D_expandLightmap</a> (const <a class="el" href="a03891.html">NL3D_CExpandLightmap</a> *pLightmap)</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a4" doxytag="texture_far.cpp::NL3D_asmAssembleShading1x1" ></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_asmAssembleShading1x1 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>lumels</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>colorMap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>srcTLIs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>srcUSCs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</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>lineWidth</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>nbTexel</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</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="a06519.html#l01342">1342</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <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="a06519.html#l01359">NL3D_expandLightmap()</a>.
<p>
<div class="fragment"><pre>01344 {
01345 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a5" doxytag="texture_far.cpp::NL3D_asmAssembleShading2x2" ></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_asmAssembleShading2x2 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>lumels</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>colorMap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>srcTLIs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>srcUSCs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</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>lineWidth</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>nbTexel</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</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="a06519.html#l01346">1346</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <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="a06519.html#l01359">NL3D_expandLightmap()</a>.
<p>
<div class="fragment"><pre>01348 {
01349 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a6" doxytag="texture_far.cpp::NL3D_asmAssembleShading4x4" ></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_asmAssembleShading4x4 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>lumels</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>colorMap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>srcTLIs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>srcUSCs</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</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>nbTexel</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</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="a06519.html#l01350">1350</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <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="a06519.html#l01359">NL3D_expandLightmap()</a>.
<p>
<div class="fragment"><pre>01352 {
01353 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a3" doxytag="texture_far.cpp::NL3D_asmBlendLines" ></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_asmBlendLines </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src0</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src1</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>index</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>len</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>

<p>
Definition at line <a class="el" href="a06519.html#l01341">1341</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00225">index</a>, <a class="el" href="a05646.html#l00235">len</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06519.html#l01359">NL3D_expandLightmap()</a>.
<p>
<div class="fragment"><pre>01341 {}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a0" doxytag="texture_far.cpp::NL3D_asmEndMMX" ></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_asmEndMMX </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>

<p>
Definition at line <a class="el" href="a06519.html#l01338">1338</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
Referenced by <a class="el" href="a06519.html#l01853">NL3D_drawFarTileInFarTexture()</a>, <a class="el" href="a06519.html#l01916">NL3D_drawFarTileInFarTextureAlpha()</a>, and <a class="el" href="a06519.html#l01359">NL3D_expandLightmap()</a>.
<p>
<div class="fragment"><pre>01338 {}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a1" doxytag="texture_far.cpp::NL3D_asmExpandLineColor565" ></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_asmExpandLineColor565 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a04558.html#a9">uint16</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</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>du</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>len</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>

<p>
Definition at line <a class="el" href="a06519.html#l01339">1339</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a05646.html#l01124">src</a>, <a class="el" href="a05981.html#l00105">uint</a>, and <a class="el" href="a05981.html#l00098">uint16</a>.
<p>
Referenced by <a class="el" href="a06519.html#l01359">NL3D_expandLightmap()</a>.
<p>
<div class="fragment"><pre>01339 {}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a2" doxytag="texture_far.cpp::NL3D_asmExpandLineColor8888" ></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_asmExpandLineColor8888 </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</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>du</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>len</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>

<p>
Definition at line <a class="el" href="a06519.html#l01340">1340</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00235">len</a>, <a class="el" href="a05646.html#l01124">src</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06519.html#l01359">NL3D_expandLightmap()</a>.
<p>
<div class="fragment"><pre>01340 {}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a9" doxytag="texture_far.cpp::NL3D_asmModulateAndBlendLineColors" ></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_asmModulateAndBlendLineColors </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src0</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src1</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>len</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>src0DeltaX</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>dstDeltaX</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>

<p>
Definition at line <a class="el" href="a06519.html#l01845">1845</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00235">len</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06519.html#l01916">NL3D_drawFarTileInFarTextureAlpha()</a>.
<p>
<div class="fragment"><pre>01847 {
01848 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a8" doxytag="texture_far.cpp::NL3D_asmModulateLineColors" ></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_asmModulateLineColors </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>dst</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src0</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>const <a class="el" href="a03337.html">CRGBA</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>src1</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>len</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>src0DeltaX</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>dstDeltaX</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>

<p>
Definition at line <a class="el" href="a06519.html#l01841">1841</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a05646.html#l00235">len</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a06519.html#l01853">NL3D_drawFarTileInFarTexture()</a>.
<p>
<div class="fragment"><pre>01843 {
01844 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a10" doxytag="texture_far.cpp::NL3D_drawFarTileInFarTexture" ></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_drawFarTileInFarTexture </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pTileFar</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>

<p>
Definition at line <a class="el" href="a06519.html#l01853">1853</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a06520.html#l00251">NL3D_CComputeTileFar::AsmMMX</a>, <a class="el" href="a06340.html#l00338">NLMISC::CRGBA::B</a>, <a class="el" href="a06520.html#l00242">NL3D_CComputeTileFar::DstDeltaX</a>, <a class="el" href="a06520.html#l00245">NL3D_CComputeTileFar::DstDeltaY</a>, <a class="el" href="a06520.html#l00239">NL3D_CComputeTileFar::DstPixels</a>, <a class="el" href="a06340.html#l00336">NLMISC::CRGBA::G</a>, <a class="el" href="a06519.html#l01338">NL3D_asmEndMMX()</a>, <a class="el" href="a06519.html#l01841">NL3D_asmModulateLineColors()</a>, <a class="el" href="a06340.html#l00334">NLMISC::CRGBA::R</a>, <a class="el" href="a06520.html#l00248">NL3D_CComputeTileFar::Size</a>, <a class="el" href="a06520.html#l00227">NL3D_CComputeTileFar::SrcDeltaX</a>, <a class="el" href="a06520.html#l00230">NL3D_CComputeTileFar::SrcDeltaY</a>, <a class="el" href="a06520.html#l00221">NL3D_CComputeTileFar::SrcDiffusePixels</a>, <a class="el" href="a06520.html#l00236">NL3D_CComputeTileFar::SrcLightingDeltaY</a>, <a class="el" href="a06520.html#l00233">NL3D_CComputeTileFar::SrcLightingPixels</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
<p>
Referenced by <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>.
<p>
<div class="fragment"><pre>01854 {
01855         <span class="comment">// Pointer of the Src diffuse pixels</span>
01856         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro8">SrcDiffusePixels</a>;
01857 
01858         <span class="comment">// Pointer of the Dst pixels</span>
01859         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro10">SrcLightingPixels</a>;
01860 
01861         <span class="comment">// Pointer of the Dst pixels</span>
01862         <a class="code" href="a03337.html">CRGBA</a>* pDstPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro3">DstPixels</a>;
01863 
01864         <span class="comment">// For each pixels</span>
01865         <span class="keywordtype">int</span> <a class="code" href="a04223.html#a572">x</a>, <a class="code" href="a04223.html#a573">y</a>;
01866         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a573">y</a>=0; <a class="code" href="a04223.html#a573">y</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a573">y</a>++)
01867         {
01868                 <span class="comment">// MMX implementation</span>
01869                 <span class="comment">//---------</span>
01870                 <span class="keywordflow">if</span>(pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro0">AsmMMX</a>)
01871                 {
01872                         <a class="code" href="a05096.html#a8">NL3D_asmModulateLineColors</a>(pDstPixels, pSrcPixels, pSrcLightPixels, 
01873                                 pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>, pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>, pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro1">DstDeltaX</a>);
01874                 }
01875                 <span class="comment">// C Implementation.</span>
01876                 <span class="comment">//---------</span>
01877                 <span class="keywordflow">else</span>
01878                 {
01879                         <span class="comment">// Pointer of the source line</span>
01880                         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLine=pSrcPixels;
01881 
01882                         <span class="comment">// Pointer of the source lighting line</span>
01883                         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightingLine=pSrcLightPixels;
01884                         
01885                         <span class="comment">// Pointer of the destination line</span>
01886                         <a class="code" href="a03337.html">CRGBA</a>* pDstLine=pDstPixels;
01887 
01888                         <span class="comment">// For each pixels on the line</span>
01889                         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a572">x</a>=0; <a class="code" href="a04223.html#a572">x</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a572">x</a>++)
01890                         {
01891                                 <span class="comment">// Read and write a pixel</span>
01892                                 pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>=(<a class="code" href="a04558.html#a7">uint8</a>)(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>)&gt;&gt;8);
01893                                 pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>=(<a class="code" href="a04558.html#a7">uint8</a>)(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>)&gt;&gt;8);
01894                                 pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>=(<a class="code" href="a04558.html#a7">uint8</a>)(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>)&gt;&gt;8);
01895 
01896                                 <span class="comment">// Next pixel</span>
01897                                 pSrcLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>;
01898                                 pSrcLightingLine++;
01899                                 pDstLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro1">DstDeltaX</a>;
01900                         }
01901                 }
01902 
01903                 <span class="comment">// Next line</span>
01904                 pSrcPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro7">SrcDeltaY</a>;
01905                 pSrcLightPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro9">SrcLightingDeltaY</a>;
01906                 pDstPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro2">DstDeltaY</a>;
01907         }
01908 
01909         <span class="comment">// stop MMX if used</span>
01910         <span class="keywordflow">if</span>(pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro0">AsmMMX</a>)
01911                 <a class="code" href="a05096.html#a0">NL3D_asmEndMMX</a>();
01912 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a12" doxytag="texture_far.cpp::NL3D_drawFarTileInFarTextureAdditive" ></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_drawFarTileInFarTextureAdditive </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pTileFar</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>

<p>
Definition at line <a class="el" href="a06519.html#l01983">1983</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a06340.html#l00338">NLMISC::CRGBA::B</a>, <a class="el" href="a06520.html#l00242">NL3D_CComputeTileFar::DstDeltaX</a>, <a class="el" href="a06520.html#l00245">NL3D_CComputeTileFar::DstDeltaY</a>, <a class="el" href="a06520.html#l00239">NL3D_CComputeTileFar::DstPixels</a>, <a class="el" href="a06340.html#l00336">NLMISC::CRGBA::G</a>, <a class="el" href="a06340.html#l00334">NLMISC::CRGBA::R</a>, <a class="el" href="a06520.html#l00248">NL3D_CComputeTileFar::Size</a>, <a class="el" href="a06520.html#l00224">NL3D_CComputeTileFar::SrcAdditivePixels</a>, <a class="el" href="a06520.html#l00227">NL3D_CComputeTileFar::SrcDeltaX</a>, <a class="el" href="a06520.html#l00230">NL3D_CComputeTileFar::SrcDeltaY</a>, <a class="el" href="a06520.html#l00221">NL3D_CComputeTileFar::SrcDiffusePixels</a>, <a class="el" href="a06520.html#l00236">NL3D_CComputeTileFar::SrcLightingDeltaY</a>, <a class="el" href="a06520.html#l00233">NL3D_CComputeTileFar::SrcLightingPixels</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
<p>
Referenced by <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>.
<p>
<div class="fragment"><pre>01984 {
01985         <span class="comment">// Pointer of the Src diffuse pixels</span>
01986         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro8">SrcDiffusePixels</a>;
01987 
01988         <span class="comment">// Pointer of the Src additive pixels</span>
01989         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcAddPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro5">SrcAdditivePixels</a>;
01990 
01991         <span class="comment">// Pointer of the Dst pixels</span>
01992         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro10">SrcLightingPixels</a>;
01993 
01994         <span class="comment">// Pointer of the Dst pixels</span>
01995         <a class="code" href="a03337.html">CRGBA</a>* pDstPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro3">DstPixels</a>;
01996 
01997         <span class="comment">// For each pixels</span>
01998         <span class="keywordtype">int</span> <a class="code" href="a04223.html#a572">x</a>, <a class="code" href="a04223.html#a573">y</a>;
01999         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a573">y</a>=0; <a class="code" href="a04223.html#a573">y</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a573">y</a>++)
02000         {
02001                 <span class="comment">// Pointer of the source line</span>
02002                 <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLine=pSrcPixels;
02003 
02004                 <span class="comment">// Pointer of the source line</span>
02005                 <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcAddLine=pSrcAddPixels;
02006 
02007                 <span class="comment">// Pointer of the source lighting line</span>
02008                 <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightingLine=pSrcLightPixels;
02009 
02010                 <span class="comment">// Pointer of the destination line</span>
02011                 <a class="code" href="a03337.html">CRGBA</a>* pDstLine=pDstPixels;
02012 
02013                 <span class="comment">// For each pixels on the line</span>
02014                 <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a572">x</a>=0; <a class="code" href="a04223.html#a572">x</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a572">x</a>++)
02015                 {
02016                         <span class="comment">// Read and write a pixel</span>
02017                         <a class="code" href="a04558.html#a15">uint</a> nTmp=(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>)&gt;&gt;8)+(<a class="code" href="a04558.html#a15">uint</a>)pSrcAddLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>;
02018                         <span class="keywordflow">if</span> (nTmp&gt;255)
02019                                 nTmp=255;
02020                         pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>=(<a class="code" href="a04558.html#a7">uint8</a>)nTmp;
02021                         nTmp=(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>)&gt;&gt;8)+(<a class="code" href="a04558.html#a15">uint</a>)pSrcAddLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>;
02022                         <span class="keywordflow">if</span> (nTmp&gt;255)
02023                                 nTmp=255;
02024                         pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>=(<a class="code" href="a04558.html#a7">uint8</a>)nTmp;
02025                         nTmp=(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>)&gt;&gt;8)+(<a class="code" href="a04558.html#a15">uint</a>)pSrcAddLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>;
02026                         <span class="keywordflow">if</span> (nTmp&gt;255)
02027                                 nTmp=255;
02028                         pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>=(<a class="code" href="a04558.html#a7">uint8</a>)nTmp;
02029 
02030                         <span class="comment">// Next pixel</span>
02031                         pSrcLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>;
02032                         pSrcAddLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>;
02033                         pSrcLightingLine++;
02034                         pDstLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro1">DstDeltaX</a>;
02035                 }
02036 
02037                 <span class="comment">// Next line</span>
02038                 pSrcPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro7">SrcDeltaY</a>;
02039                 pSrcAddPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro7">SrcDeltaY</a>;
02040                 pSrcLightPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro9">SrcLightingDeltaY</a>;
02041                 pDstPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro2">DstDeltaY</a>;
02042         }
02043 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a13" doxytag="texture_far.cpp::NL3D_drawFarTileInFarTextureAdditiveAlpha" ></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_drawFarTileInFarTextureAdditiveAlpha </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pTileFar</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>

<p>
Definition at line <a class="el" href="a06519.html#l02050">2050</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a06340.html#l00340">NLMISC::CRGBA::A</a>, <a class="el" href="a05646.html#l01173">alpha</a>, <a class="el" href="a06340.html#l00338">NLMISC::CRGBA::B</a>, <a class="el" href="a06520.html#l00242">NL3D_CComputeTileFar::DstDeltaX</a>, <a class="el" href="a06520.html#l00245">NL3D_CComputeTileFar::DstDeltaY</a>, <a class="el" href="a06520.html#l00239">NL3D_CComputeTileFar::DstPixels</a>, <a class="el" href="a06340.html#l00336">NLMISC::CRGBA::G</a>, <a class="el" href="a06340.html#l00334">NLMISC::CRGBA::R</a>, <a class="el" href="a06520.html#l00248">NL3D_CComputeTileFar::Size</a>, <a class="el" href="a06520.html#l00224">NL3D_CComputeTileFar::SrcAdditivePixels</a>, <a class="el" href="a06520.html#l00227">NL3D_CComputeTileFar::SrcDeltaX</a>, <a class="el" href="a06520.html#l00230">NL3D_CComputeTileFar::SrcDeltaY</a>, <a class="el" href="a06520.html#l00221">NL3D_CComputeTileFar::SrcDiffusePixels</a>, <a class="el" href="a06520.html#l00236">NL3D_CComputeTileFar::SrcLightingDeltaY</a>, <a class="el" href="a06520.html#l00233">NL3D_CComputeTileFar::SrcLightingPixels</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
<p>
Referenced by <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>.
<p>
<div class="fragment"><pre>02051 {
02052         <span class="comment">// Pointer of the Src pixels</span>
02053         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro8">SrcDiffusePixels</a>;
02054 
02055         <span class="comment">// Pointer of the Src pixels</span>
02056         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcAddPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro5">SrcAdditivePixels</a>;
02057 
02058         <span class="comment">// Pointer of the Dst pixels</span>
02059         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro10">SrcLightingPixels</a>;
02060 
02061         <span class="comment">// Pointer of the Dst pixels</span>
02062         <a class="code" href="a03337.html">CRGBA</a>* pDstPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro3">DstPixels</a>;
02063 
02064         <span class="comment">// Fill the buffer with layer 0</span>
02065         <span class="keywordtype">int</span> <a class="code" href="a04223.html#a572">x</a>, <a class="code" href="a04223.html#a573">y</a>;
02066         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a573">y</a>=0; <a class="code" href="a04223.html#a573">y</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a573">y</a>++)
02067         {
02068                 <span class="comment">// Pointer of the source line</span>
02069                 <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLine=pSrcPixels;
02070 
02071                 <span class="comment">// Pointer of the source line</span>
02072                 <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcAddLine=pSrcAddPixels;
02073 
02074                 <span class="comment">// Pointer of the source lighting line</span>
02075                 <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightingLine=pSrcLightPixels;
02076 
02077                 <span class="comment">// Pointer of the Dst pixels</span>
02078                 <a class="code" href="a03337.html">CRGBA</a>* pDstLine=pDstPixels;
02079 
02080                 <span class="comment">// For each pixels on the line</span>
02081                 <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a572">x</a>=0; <a class="code" href="a04223.html#a572">x</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a572">x</a>++)
02082                 {
02083                         <span class="comment">// Read and write a pixel</span>
02084                         <span class="keyword">register</span> <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a663">alpha</a>=pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a>;
02085                         <span class="keyword">register</span> <a class="code" href="a04558.html#a15">uint</a> oneLessAlpha=255-pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a>;
02086                         
02087                         <span class="comment">// Read and write a pixel</span>
02088                         <a class="code" href="a04558.html#a15">uint</a> nTmp=(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>)&gt;&gt;8)+(<a class="code" href="a04558.html#a15">uint</a>)pSrcAddLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>;
02089                         <span class="keywordflow">if</span> (nTmp&gt;255)
02090                                 nTmp=255;
02091                         pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>=(<a class="code" href="a04558.html#a7">uint8</a>)((nTmp*<a class="code" href="a04223.html#a663">alpha</a>+pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>*oneLessAlpha)&gt;&gt;8);
02092                         nTmp=(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>)&gt;&gt;8)+(<a class="code" href="a04558.html#a15">uint</a>)pSrcAddLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>;
02093                         <span class="keywordflow">if</span> (nTmp&gt;255)
02094                                 nTmp=255;
02095                         pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>=(<a class="code" href="a04558.html#a7">uint8</a>)((nTmp*<a class="code" href="a04223.html#a663">alpha</a>+pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>*oneLessAlpha)&gt;&gt;8);
02096                         nTmp=(((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>)&gt;&gt;8)+(<a class="code" href="a04558.html#a15">uint</a>)pSrcAddLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>;
02097                         <span class="keywordflow">if</span> (nTmp&gt;255)
02098                                 nTmp=255;
02099                         pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>=(<a class="code" href="a04558.html#a7">uint8</a>)((nTmp*<a class="code" href="a04223.html#a663">alpha</a>+pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>*oneLessAlpha)&gt;&gt;8);
02100 
02101                         <span class="comment">// Next pixel</span>
02102                         pSrcLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>;
02103                         pSrcAddLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>;
02104                         pSrcLightingLine++;
02105                         pDstLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro1">DstDeltaX</a>;
02106                 }
02107 
02108                 <span class="comment">// Next line</span>
02109                 pSrcPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro7">SrcDeltaY</a>;
02110                 pSrcAddPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro7">SrcDeltaY</a>;
02111                 pSrcLightPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro9">SrcLightingDeltaY</a>;
02112                 pDstPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro2">DstDeltaY</a>;
02113         }
02114 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a11" doxytag="texture_far.cpp::NL3D_drawFarTileInFarTextureAlpha" ></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_drawFarTileInFarTextureAlpha </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03890.html">NL3D_CComputeTileFar</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pTileFar</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>

<p>
Definition at line <a class="el" href="a06519.html#l01916">1916</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a06340.html#l00340">NLMISC::CRGBA::A</a>, <a class="el" href="a05646.html#l01173">alpha</a>, <a class="el" href="a06520.html#l00251">NL3D_CComputeTileFar::AsmMMX</a>, <a class="el" href="a06340.html#l00338">NLMISC::CRGBA::B</a>, <a class="el" href="a06520.html#l00242">NL3D_CComputeTileFar::DstDeltaX</a>, <a class="el" href="a06520.html#l00245">NL3D_CComputeTileFar::DstDeltaY</a>, <a class="el" href="a06520.html#l00239">NL3D_CComputeTileFar::DstPixels</a>, <a class="el" href="a06340.html#l00336">NLMISC::CRGBA::G</a>, <a class="el" href="a06519.html#l01338">NL3D_asmEndMMX()</a>, <a class="el" href="a06519.html#l01845">NL3D_asmModulateAndBlendLineColors()</a>, <a class="el" href="a06340.html#l00334">NLMISC::CRGBA::R</a>, <a class="el" href="a06520.html#l00248">NL3D_CComputeTileFar::Size</a>, <a class="el" href="a06520.html#l00227">NL3D_CComputeTileFar::SrcDeltaX</a>, <a class="el" href="a06520.html#l00230">NL3D_CComputeTileFar::SrcDeltaY</a>, <a class="el" href="a06520.html#l00221">NL3D_CComputeTileFar::SrcDiffusePixels</a>, <a class="el" href="a06520.html#l00236">NL3D_CComputeTileFar::SrcLightingDeltaY</a>, <a class="el" href="a06520.html#l00233">NL3D_CComputeTileFar::SrcLightingPixels</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
<p>
Referenced by <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>.
<p>
<div class="fragment"><pre>01917 {
01918         <span class="comment">// Pointer of the Src pixels</span>
01919         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro8">SrcDiffusePixels</a>;
01920 
01921         <span class="comment">// Pointer of the Dst pixels</span>
01922         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro10">SrcLightingPixels</a>;
01923 
01924         <span class="comment">// Pointer of the Dst pixels</span>
01925         <a class="code" href="a03337.html">CRGBA</a>* pDstPixels=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro3">DstPixels</a>;
01926 
01927         <span class="comment">// Fill the buffer with layer 0</span>
01928         <span class="keywordtype">int</span> <a class="code" href="a04223.html#a572">x</a>, <a class="code" href="a04223.html#a573">y</a>;
01929         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a573">y</a>=0; <a class="code" href="a04223.html#a573">y</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a573">y</a>++)
01930         {
01931                 <span class="comment">// MMX implementation</span>
01932                 <span class="comment">//---------</span>
01933                 <span class="keywordflow">if</span>(pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro0">AsmMMX</a>)
01934                 {
01935                         <a class="code" href="a05096.html#a9">NL3D_asmModulateAndBlendLineColors</a>(pDstPixels, pSrcPixels, pSrcLightPixels, 
01936                                 pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>, pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>, pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro1">DstDeltaX</a>);
01937                 }
01938                 <span class="comment">// C Implementation.</span>
01939                 <span class="comment">//---------</span>
01940                 <span class="keywordflow">else</span>
01941                 {
01942                         <span class="comment">// Pointer of the source line</span>
01943                         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLine=pSrcPixels;
01944 
01945                         <span class="comment">// Pointer of the source lighting line</span>
01946                         <span class="keyword">const</span> <a class="code" href="a03337.html">CRGBA</a>* pSrcLightingLine=pSrcLightPixels;
01947 
01948                         <span class="comment">// Pointer of the Dst pixels</span>
01949                         <a class="code" href="a03337.html">CRGBA</a>* pDstLine=pDstPixels;
01950 
01951                         <span class="comment">// For each pixels on the line</span>
01952                         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a572">x</a>=0; <a class="code" href="a04223.html#a572">x</a>&lt;pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro4">Size</a>; <a class="code" href="a04223.html#a572">x</a>++)
01953                         {
01954                                 <span class="comment">// Read and write a pixel</span>
01955                                 <span class="keyword">register</span> <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a663">alpha</a>=pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a>;
01956                                 <span class="keyword">register</span> <a class="code" href="a04558.html#a15">uint</a> oneLessAlpha=255-pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a>;
01957                                 pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>=(<a class="code" href="a04558.html#a7">uint8</a>)(((((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>)&gt;&gt;8)*<a class="code" href="a04223.html#a663">alpha</a>+(<a class="code" href="a04558.html#a15">uint</a>)pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a>*oneLessAlpha)&gt;&gt;8);
01958                                 pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>=(<a class="code" href="a04558.html#a7">uint8</a>)(((((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>)&gt;&gt;8)*<a class="code" href="a04223.html#a663">alpha</a>+(<a class="code" href="a04558.html#a15">uint</a>)pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a>*oneLessAlpha)&gt;&gt;8);
01959                                 pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>=(<a class="code" href="a04558.html#a7">uint8</a>)(((((<a class="code" href="a04558.html#a15">uint</a>)pSrcLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>*(<a class="code" href="a04558.html#a15">uint</a>)pSrcLightingLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>)&gt;&gt;8)*<a class="code" href="a04223.html#a663">alpha</a>+(<a class="code" href="a04558.html#a15">uint</a>)pDstLine-&gt;<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a>*oneLessAlpha)&gt;&gt;8);
01960 
01961                                 <span class="comment">// Next pixel</span>
01962                                 pSrcLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro6">SrcDeltaX</a>;
01963                                 pSrcLightingLine++;
01964                                 pDstLine+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro1">DstDeltaX</a>;
01965                         }
01966                 }
01967 
01968                 <span class="comment">// Next line</span>
01969                 pSrcPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro7">SrcDeltaY</a>;
01970                 pSrcLightPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro9">SrcLightingDeltaY</a>;
01971                 pDstPixels+=pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro2">DstDeltaY</a>;
01972         }
01973 
01974         <span class="comment">// stop MMX if used</span>
01975         <span class="keywordflow">if</span>(pTileFar-&gt;<a class="code" href="a03890.html#NL3D__CComputeTileFaro0">AsmMMX</a>)
01976                 <a class="code" href="a05096.html#a0">NL3D_asmEndMMX</a>();
01977 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="a7" doxytag="texture_far.cpp::NL3D_expandLightmap" ></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_expandLightmap </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03891.html">NL3D_CExpandLightmap</a> *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pLightmap</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>

<p>
Definition at line <a class="el" href="a06519.html#l01359">1359</a> of file <a class="el" href="a06519.html">texture_far.cpp</a>.
<p>
References <a class="el" href="a06340.html#l00264">NLMISC::CRGBA::addRGBOnly()</a>, <a class="el" href="a06340.html#l00338">NLMISC::CRGBA::B</a>, <a class="el" href="a06340.html#l00104">NLMISC::CRGBA::blendFromui()</a>, <a class="el" href="a06539.html#l00048">NL3D::CTileColor::Color565</a>, <a class="el" href="a06520.html#l00259">NL3D_CExpandLightmap::ColorTile</a>, <a class="el" href="a06520.html#l00279">NL3D_CExpandLightmap::DstPixels</a>, <a class="el" href="a06340.html#l00336">NLMISC::CRGBA::G</a>, <a class="el" href="a06520.html#l00270">NL3D_CExpandLightmap::Height</a>, <a class="el" href="a05646.html#l00225">index</a>, <a class="el" href="a06520.html#l00264">NL3D_CExpandLightmap::LumelTile</a>, <a class="el" href="a05484.html#l00038">min</a>, <a class="el" href="a06340.html#l00243">NLMISC::CRGBA::modulateFromColorRGBOnly()</a>, <a class="el" href="a06520.html#l00273">NL3D_CExpandLightmap::MulFactor</a>, <a class="el" href="a06519.html#l01342">NL3D_asmAssembleShading1x1()</a>, <a class="el" href="a06519.html#l01346">NL3D_asmAssembleShading2x2()</a>, <a class="el" href="a06519.html#l01350">NL3D_asmAssembleShading4x4()</a>, <a class="el" href="a06519.html#l01341">NL3D_asmBlendLines()</a>, <a class="el" href="a06519.html#l01338">NL3D_asmEndMMX()</a>, <a class="el" href="a06519.html#l01339">NL3D_asmExpandLineColor565()</a>, <a class="el" href="a06519.html#l01340">NL3D_asmExpandLineColor8888()</a>, <a class="el" href="a06156.html#l00060">NL_LUMEL_BY_TILE</a>, <a class="el" href="a06156.html#l00053">NL_MAX_TILES_BY_PATCH_EDGE</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06340.html#l00334">NLMISC::CRGBA::R</a>, <a class="el" href="a06340.html#l00162">NLMISC::CRGBA::set565()</a>, <a class="el" href="a06520.html#l00276">NL3D_CExpandLightmap::StaticLightColor</a>, <a class="el" href="a06520.html#l00261">NL3D_CExpandLightmap::TLIColor</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l00237">v</a>, and <a class="el" href="a06520.html#l00267">NL3D_CExpandLightmap::Width</a>.
<p>
Referenced by <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>.
<p>
<div class="fragment"><pre>01360 {
01361         <span class="keywordtype">bool</span>    asmMMX= <span class="keyword">false</span>;
01362 <span class="preprocessor">#ifdef  NL_OS_WINDOWS</span>
01363 <span class="preprocessor"></span>        asmMMX= CSystemInfo::hasMMX();
01364         <span class="comment">// A CTileColor must be a 565 only.</span>
01365         <a class="code" href="a04199.html#a6">nlassert</a>(<span class="keyword">sizeof</span>(<a class="code" href="a03520.html">CTileColor</a>)==2);
01366 <span class="preprocessor">#endif</span>
01367 <span class="preprocessor"></span>
01368         <span class="comment">// Expanded width</span>
01369         <a class="code" href="a04558.html#a15">uint</a> dstWidth=(pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo7">Width</a>-1)*pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo4">MulFactor</a>;
01370         <a class="code" href="a04558.html#a15">uint</a> dstHeight=(pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo2">Height</a>-1)*pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo4">MulFactor</a>;
01371 
01372         <span class="comment">// *** First expand user color and TLI colors</span>
01373         <span class="comment">// First pass, expand on U</span>
01374         <span class="keyword">static</span> <a class="code" href="a03337.html">CRGBA</a> expandedUserColorLine[ (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*
01375                 (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*<a class="code" href="a04733.html#a7">NL_LUMEL_BY_TILE</a> ];
01376         <span class="keyword">static</span> <a class="code" href="a03337.html">CRGBA</a> expandedTLIColorLine[ (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*
01377                 (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*<a class="code" href="a04733.html#a7">NL_LUMEL_BY_TILE</a> ];
01378         <span class="comment">// Second pass, expand on V.</span>
01379         <span class="keyword">static</span> <a class="code" href="a03337.html">CRGBA</a> expandedUserColor[ (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*<a class="code" href="a04733.html#a7">NL_LUMEL_BY_TILE</a> * 
01380                 (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*<a class="code" href="a04733.html#a7">NL_LUMEL_BY_TILE</a> ];
01381         <span class="keyword">static</span> <a class="code" href="a03337.html">CRGBA</a> expandedTLIColor[ (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*<a class="code" href="a04733.html#a7">NL_LUMEL_BY_TILE</a> * 
01382                 (<a class="code" href="a04733.html#a1">NL_MAX_TILES_BY_PATCH_EDGE</a>+1)*<a class="code" href="a04733.html#a7">NL_LUMEL_BY_TILE</a> ];
01383 
01384 
01385         <span class="comment">// ** Expand on U</span>
01386         <span class="comment">//=========</span>
01387         <a class="code" href="a04558.html#a15">uint</a> u, <a class="code" href="a04223.html#a576">v</a>;
01388 
01389         <span class="comment">// Expansion factor</span>
01390         <a class="code" href="a04558.html#a15">uint</a> expandFactor=((pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo7">Width</a>-1)&lt;&lt;8)/(dstWidth-1);
01391 
01392         <span class="comment">// Destination  pointer</span>
01393         <a class="code" href="a03337.html">CRGBA</a> *expandedUserColorLinePtr= expandedUserColorLine;
01394         <a class="code" href="a03337.html">CRGBA</a> *expandedTLIColorLinePtr= expandedTLIColorLine;
01395 
01396         <span class="comment">// Source pointer</span>
01397         <span class="keyword">const</span> <a class="code" href="a03520.html">NL3D::CTileColor</a>  *colorTilePtr=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo0">ColorTile</a>;
01398         <span class="keyword">const</span> <a class="code" href="a03337.html">NLMISC::CRGBA</a>             *colorTLIPtr= pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo6">TLIColor</a>;
01399 
01400         <span class="comment">// Go for U</span>
01401         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a576">v</a>=0; <a class="code" href="a04223.html#a576">v</a>&lt;pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo2">Height</a>; <a class="code" href="a04223.html#a576">v</a>++)
01402         {
01403                 <span class="comment">// First pixel</span>
01404                 expandedUserColorLinePtr[0].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa15">set565</a> (colorTilePtr[0].Color565);
01405                 expandedTLIColorLinePtr[0]= colorTLIPtr[0];
01406 
01407                 <span class="comment">// MMX implementation.</span>
01408                 <span class="comment">//-------------</span>
01409                 <span class="keywordflow">if</span>(asmMMX)
01410                 {
01411                         <a class="code" href="a05096.html#a1">NL3D_asmExpandLineColor565</a>(&amp;colorTilePtr-&gt;<a class="code" href="a03520.html#NL3D_1_1CTileColoro0">Color565</a>, expandedUserColorLinePtr, expandFactor, dstWidth-2);
01412                         <a class="code" href="a05096.html#a2">NL3D_asmExpandLineColor8888</a>(colorTLIPtr, expandedTLIColorLinePtr, expandFactor, dstWidth-2);
01413                 }
01414                 <span class="comment">// C implementation</span>
01415                 <span class="comment">//-------------</span>
01416                 <span class="keywordflow">else</span>
01417                 {
01418                         <span class="comment">// Index next pixel</span>
01419                         <a class="code" href="a04558.html#a15">uint</a> srcIndexPixel=expandFactor;
01420 
01421                         <span class="keywordflow">for</span> (u=1; u&lt;dstWidth-1; u++)
01422                         {
01423                                 <span class="comment">// Check</span>
01424                                 <a class="code" href="a04199.html#a6">nlassert</a> ( (u+v*dstWidth) &lt; (<span class="keyword">sizeof</span>(expandedUserColorLine)/<span class="keyword">sizeof</span>(<a class="code" href="a03337.html">CRGBA</a>)) );
01425 
01426                                 <span class="comment">// Color index</span>
01427                                 <a class="code" href="a04558.html#a15">uint</a> srcIndex=srcIndexPixel&gt;&gt;8;
01428                                 <a class="code" href="a04199.html#a6">nlassert</a> (srcIndex&gt;=0);
01429                                 <a class="code" href="a04199.html#a6">nlassert</a> (srcIndex&lt;pLightmap-&gt;Width-1);
01430 
01431                                 <span class="comment">// Compute current color</span>
01432                                 <a class="code" href="a03337.html">CRGBA</a> color0;
01433                                 <a class="code" href="a03337.html">CRGBA</a> color1;
01434                                 color0.<a class="code" href="a03337.html#NLMISC_1_1CRGBAa15">set565</a> (colorTilePtr[srcIndex].Color565);
01435                                 color1.<a class="code" href="a03337.html#NLMISC_1_1CRGBAa15">set565</a> (colorTilePtr[srcIndex+1].Color565);
01436                                 expandedUserColorLinePtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa3">blendFromui</a> (color0, color1, srcIndexPixel&amp;0xff);
01437                                 <span class="comment">// Compute current TLI color</span>
01438                                 color0= colorTLIPtr[srcIndex];
01439                                 color1= colorTLIPtr[srcIndex+1];
01440                                 expandedTLIColorLinePtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa3">blendFromui</a> (color0, color1, srcIndexPixel&amp;0xff);
01441 
01442                                 <span class="comment">// Next index</span>
01443                                 srcIndexPixel+=expandFactor;
01444                         }
01445                 }
01446 
01447                 <span class="comment">// Last pixel</span>
01448                 expandedUserColorLinePtr[dstWidth-1].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa15">set565</a> (colorTilePtr[pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo7">Width</a>-1].Color565);
01449                 expandedTLIColorLinePtr[dstWidth-1]= colorTLIPtr[pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo7">Width</a>-1];
01450 
01451                 <span class="comment">// Next line</span>
01452                 expandedUserColorLinePtr+= dstWidth;
01453                 expandedTLIColorLinePtr+= dstWidth;
01454                 colorTilePtr+=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo7">Width</a>;
01455                 colorTLIPtr+=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo7">Width</a>;
01456         }
01457 
01458         <span class="comment">// stop MMX if used</span>
01459         <span class="keywordflow">if</span>(asmMMX)
01460                 <a class="code" href="a05096.html#a0">NL3D_asmEndMMX</a>();
01461 
01462         <span class="comment">// ** Expand on V</span>
01463         <span class="comment">//=========</span>
01464 
01465         <span class="comment">// Expansion factor</span>
01466         expandFactor=((pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo2">Height</a>-1)&lt;&lt;8)/(dstHeight-1);
01467 
01468         <span class="comment">// Destination  pointer</span>
01469         <a class="code" href="a03337.html">CRGBA</a> *expandedUserColorPtr= expandedUserColor;
01470         <a class="code" href="a03337.html">CRGBA</a> *expandedTLIColorPtr= expandedTLIColor;
01471 
01472         <span class="comment">// Src pointer</span>
01473         expandedUserColorLinePtr= expandedUserColorLine;
01474         expandedTLIColorLinePtr= expandedTLIColorLine;
01475 
01476         <span class="comment">// Copy first row</span>
01477         memcpy(expandedUserColorPtr, expandedUserColorLinePtr, dstWidth*<span class="keyword">sizeof</span>(<a class="code" href="a03337.html">CRGBA</a>));
01478         memcpy(expandedTLIColorPtr, expandedTLIColorLinePtr, dstWidth*<span class="keyword">sizeof</span>(<a class="code" href="a03337.html">CRGBA</a>));
01479 
01480         <span class="comment">// Next line</span>
01481         expandedUserColorPtr+=dstWidth;
01482         expandedTLIColorPtr+=dstWidth;
01483 
01484         <span class="comment">// Index next pixel</span>
01485         <a class="code" href="a04558.html#a15">uint</a> indexPixel=expandFactor;
01486 
01487         <span class="comment">// Go for V</span>
01488         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a576">v</a>=1; <a class="code" href="a04223.html#a576">v</a>&lt;dstHeight-1; <a class="code" href="a04223.html#a576">v</a>++)
01489         {
01490                 <span class="comment">// Color index</span>
01491                 <a class="code" href="a04558.html#a15">uint</a> <a class="code" href="a04223.html#a566">index</a>=indexPixel&gt;&gt;8;
01492 
01493                 <span class="comment">// Source pointer</span>
01494                 <a class="code" href="a03337.html">CRGBA</a> *colorTilePtr0= expandedUserColorLine + <a class="code" href="a04223.html#a566">index</a>*dstWidth;
01495                 <a class="code" href="a03337.html">CRGBA</a> *colorTilePtr1= expandedUserColorLine + (<a class="code" href="a04223.html#a566">index</a>+1)*dstWidth;
01496                 <a class="code" href="a03337.html">CRGBA</a> *colorTLIPtr0= expandedTLIColorLine + <a class="code" href="a04223.html#a566">index</a>*dstWidth;
01497                 <a class="code" href="a03337.html">CRGBA</a> *colorTLIPtr1= expandedTLIColorLine + (<a class="code" href="a04223.html#a566">index</a>+1)*dstWidth;
01498 
01499                 <span class="comment">// MMX implementation.</span>
01500                 <span class="comment">//-------------</span>
01501                 <span class="keywordflow">if</span>(asmMMX)
01502                 {
01503                         <a class="code" href="a05096.html#a3">NL3D_asmBlendLines</a>(expandedUserColorPtr, colorTilePtr0, colorTilePtr1, indexPixel, dstWidth);
01504                         <a class="code" href="a05096.html#a3">NL3D_asmBlendLines</a>(expandedTLIColorPtr, colorTLIPtr0, colorTLIPtr1, indexPixel, dstWidth);
01505                 }
01506                 <span class="comment">// C implementation</span>
01507                 <span class="comment">//-------------</span>
01508                 <span class="keywordflow">else</span>
01509                 {
01510                         <span class="comment">// Copy the row</span>
01511                         <span class="keywordflow">for</span> (u=0; u&lt;dstWidth; u++)
01512                         {
01513                                 expandedUserColorPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa3">blendFromui</a> (colorTilePtr0[u], colorTilePtr1[u], indexPixel&amp;0xff);
01514                                 expandedTLIColorPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa3">blendFromui</a> (colorTLIPtr0[u], colorTLIPtr1[u],  indexPixel&amp;0xff);
01515                         }
01516                 }
01517 
01518                 <span class="comment">// Next index</span>
01519                 indexPixel+=expandFactor;
01520 
01521                 <span class="comment">// Next line</span>
01522                 expandedUserColorPtr+=dstWidth;
01523                 expandedTLIColorPtr+=dstWidth;
01524         }
01525 
01526         <span class="comment">// stop MMX if used</span>
01527         <span class="keywordflow">if</span>(asmMMX)
01528                 <a class="code" href="a05096.html#a0">NL3D_asmEndMMX</a>();
01529 
01530         <span class="comment">// Last row</span>
01531         <span class="comment">// Destination  pointer</span>
01532         expandedUserColorPtr= expandedUserColor + dstWidth*(dstHeight-1);
01533         expandedTLIColorPtr= expandedTLIColor + dstWidth*(dstHeight-1);
01534         <span class="comment">// Src pointer</span>
01535         expandedUserColorLinePtr= expandedUserColorLine + dstWidth*(pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo2">Height</a>-1);
01536         expandedTLIColorLinePtr= expandedTLIColorLine + dstWidth*(pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo2">Height</a>-1);
01537 
01538         <span class="comment">// Copy last row</span>
01539         memcpy(expandedUserColorPtr, expandedUserColorLinePtr, dstWidth*<span class="keyword">sizeof</span>(<a class="code" href="a03337.html">CRGBA</a>));
01540         memcpy(expandedTLIColorPtr, expandedTLIColorLinePtr, dstWidth*<span class="keyword">sizeof</span>(<a class="code" href="a03337.html">CRGBA</a>));
01541 
01542         <span class="comment">// *** Now combine with shading</span>
01543         <span class="comment">//=========</span>
01544 
01545         <span class="comment">// Switch to the optimal method for each expansion value</span>
01546         <span class="keywordflow">switch</span> (pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo4">MulFactor</a>)
01547         {
01548         <span class="keywordflow">case</span> 1:
01549                 {
01550                         <span class="comment">// Make 4x4 -&gt; 1x1 blend</span>
01551                         <a class="code" href="a03337.html">CRGBA</a> *lineUSCPtr= expandedUserColor;
01552                         <a class="code" href="a03337.html">CRGBA</a> *lineTLIPtr= expandedTLIColor;
01553                         <a class="code" href="a03337.html">CRGBA</a> *lineDestPtr=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo1">DstPixels</a>;
01554                         <span class="keyword">const</span> <a class="code" href="a04558.html#a7">uint8</a> *lineLumelPtr=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo3">LumelTile</a>;
01555                         <a class="code" href="a04558.html#a15">uint</a> lineWidth=dstWidth&lt;&lt;2;
01556                         <a class="code" href="a04558.html#a15">uint</a> lineWidthx2=lineWidth&lt;&lt;1;
01557                         <a class="code" href="a04558.html#a15">uint</a> lineWidthx3=lineWidthx2+lineWidth;
01558                         <a class="code" href="a04558.html#a15">uint</a> lineWidthx4=lineWidth&lt;&lt;2;
01559 
01560                         <span class="comment">// For each line</span>
01561                         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a576">v</a>=0; <a class="code" href="a04223.html#a576">v</a>&lt;dstHeight; <a class="code" href="a04223.html#a576">v</a>++)
01562                         {
01563                                 <span class="comment">// MMX implementation.</span>
01564                                 <span class="comment">//-------------</span>
01565                                 <span class="keywordflow">if</span>(asmMMX)
01566                                 {
01567                                         <a class="code" href="a05096.html#a4">NL3D_asmAssembleShading1x1</a>(lineLumelPtr, pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo5">StaticLightColor</a>, lineTLIPtr, lineUSCPtr, lineDestPtr,
01568                                                 lineWidth, dstWidth);
01569                                 }
01570                                 <span class="comment">// C implementation</span>
01571                                 <span class="comment">//-------------</span>
01572                                 <span class="keywordflow">else</span>
01573                                 {
01574                                         <span class="comment">// For each lumel block</span>
01575                                         <span class="keywordflow">for</span> (u=0; u&lt;dstWidth; u++)
01576                                         {
01577                                                 <span class="comment">// index</span>
01578                                                 <a class="code" href="a04558.html#a15">uint</a> lumelIndex=u&lt;&lt;2;
01579 
01580                                                 <span class="comment">// Shading is filtred</span>
01581                                                 <a class="code" href="a04558.html#a15">uint</a> shading=
01582                                                          ((<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+1]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+2]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+3]
01583                                                         +(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+lineWidth]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+1+lineWidth]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+2+lineWidth]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+3+lineWidth]
01584                                                         +(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+lineWidthx2]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+1+lineWidthx2]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+2+lineWidthx2]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+3+lineWidthx2]
01585                                                         +(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+lineWidthx3]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+1+lineWidthx3]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+2+lineWidthx3]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+3+lineWidthx3]
01586                                                         )&gt;&gt;4;
01587 
01588                                                 <span class="comment">// Add shading with TLI color.</span>
01589                                                 <a class="code" href="a03337.html">CRGBA</a>   col;
01590                                                 col.<a class="code" href="a03337.html#NLMISC_1_1CRGBAz2022_0">addRGBOnly</a>(pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo5">StaticLightColor</a>[shading], lineTLIPtr[u]);
01591 
01592                                                 <span class="comment">// Mul by the userColor</span>
01593                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAz2022_4">modulateFromColorRGBOnly</a>(col, lineUSCPtr[u]);
01594 
01595                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].R)*2, 255U);
01596                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].G)*2, 255U);
01597                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].B)*2, 255U);
01598                                         }
01599                                 }
01600 
01601                                 <span class="comment">// Next line</span>
01602                                 lineUSCPtr+=dstWidth;
01603                                 lineTLIPtr+=dstWidth;
01604                                 lineDestPtr+=dstWidth;
01605                                 lineLumelPtr+=lineWidthx4;
01606                         }
01607                         <span class="keywordflow">break</span>;
01608                 }
01609         <span class="keywordflow">case</span> 2:
01610                 {
01611                         <span class="comment">// Make 2x2 -&gt; 1x1 blend</span>
01612                         <a class="code" href="a03337.html">CRGBA</a> *lineUSCPtr= expandedUserColor;
01613                         <a class="code" href="a03337.html">CRGBA</a> *lineTLIPtr= expandedTLIColor;
01614                         <a class="code" href="a03337.html">CRGBA</a> *lineDestPtr=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo1">DstPixels</a>;
01615                         <span class="keyword">const</span> <a class="code" href="a04558.html#a7">uint8</a> *lineLumelPtr=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo3">LumelTile</a>;
01616                         <a class="code" href="a04558.html#a15">uint</a> lineWidth=dstWidth*2;
01617                         <a class="code" href="a04558.html#a15">uint</a> lineWidthx2=lineWidth&lt;&lt;1;
01618 
01619                         <span class="comment">// For each line</span>
01620                         <span class="keywordflow">for</span> (<a class="code" href="a04223.html#a576">v</a>=0; <a class="code" href="a04223.html#a576">v</a>&lt;dstHeight; <a class="code" href="a04223.html#a576">v</a>++)
01621                         {
01622                                 <span class="comment">// MMX implementation.</span>
01623                                 <span class="comment">//-------------</span>
01624                                 <span class="keywordflow">if</span>(asmMMX)
01625                                 {
01626                                         <a class="code" href="a05096.html#a5">NL3D_asmAssembleShading2x2</a>(lineLumelPtr, pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo5">StaticLightColor</a>, lineTLIPtr, lineUSCPtr, lineDestPtr,
01627                                                 lineWidth, dstWidth);
01628                                 }
01629                                 <span class="comment">// C implementation</span>
01630                                 <span class="comment">//-------------</span>
01631                                 <span class="keywordflow">else</span>
01632                                 {
01633                                         <span class="comment">// For each lumel block</span>
01634                                         <span class="keywordflow">for</span> (u=0; u&lt;dstWidth; u++)
01635                                         {
01636                                                 <span class="comment">// index</span>
01637                                                 <a class="code" href="a04558.html#a15">uint</a> lumelIndex=u&lt;&lt;1;
01638 
01639                                                 <span class="comment">// Shading is filtred</span>
01640                                                 <a class="code" href="a04558.html#a15">uint</a> shading=
01641                                                         ((<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+1]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+lineWidth]+(<a class="code" href="a04558.html#a15">uint</a>)lineLumelPtr[lumelIndex+1+lineWidth])&gt;&gt;2;
01642 
01643                                                 <span class="comment">// Add shading with TLI color.</span>
01644                                                 <a class="code" href="a03337.html">CRGBA</a>   col;
01645                                                 col.<a class="code" href="a03337.html#NLMISC_1_1CRGBAz2022_0">addRGBOnly</a>(pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo5">StaticLightColor</a>[shading], lineTLIPtr[u]);
01646 
01647                                                 <span class="comment">// Mul by the userColor</span>
01648                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAz2022_4">modulateFromColorRGBOnly</a>(col, lineUSCPtr[u]);
01649 
01650                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].R)*2, 255U);
01651                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].G)*2, 255U);
01652                                                 lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].B)*2, 255U);
01653                                         }
01654                                 }
01655 
01656                                 <span class="comment">// Next line</span>
01657                                 lineUSCPtr+=dstWidth;
01658                                 lineTLIPtr+=dstWidth;
01659                                 lineDestPtr+=dstWidth;
01660                                 lineLumelPtr+=lineWidthx2;
01661                         }
01662                         <span class="keywordflow">break</span>;
01663                 }
01664 
01665         <span class="keywordflow">case</span> 4:
01666                         <span class="comment">// Make copy</span>
01667                         <a class="code" href="a03337.html">CRGBA</a> *lineUSCPtr= expandedUserColor;
01668                         <a class="code" href="a03337.html">CRGBA</a> *lineTLIPtr= expandedTLIColor;
01669                         <a class="code" href="a03337.html">CRGBA</a> *lineDestPtr=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo1">DstPixels</a>;
01670                         <span class="keyword">const</span> <a class="code" href="a04558.html#a7">uint8</a> *lineLumelPtr=pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo3">LumelTile</a>;
01671                         <a class="code" href="a04558.html#a15">uint</a> nbTexel=dstWidth*dstHeight;
01672 
01673                         <span class="comment">// MMX implementation.</span>
01674                         <span class="comment">//-------------</span>
01675                         <span class="keywordflow">if</span>(asmMMX)
01676                         {
01677                                 <a class="code" href="a05096.html#a6">NL3D_asmAssembleShading4x4</a>(lineLumelPtr, pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo5">StaticLightColor</a>, lineTLIPtr, lineUSCPtr, lineDestPtr,
01678                                         nbTexel);
01679                         }
01680                         <span class="comment">// C implementation</span>
01681                         <span class="comment">//-------------</span>
01682                         <span class="keywordflow">else</span>
01683                         {
01684                                 <span class="comment">// For each pixel</span>
01685                                 <span class="keywordflow">for</span> (u=0; u&lt;nbTexel; u++)
01686                                 {
01687                                         <span class="comment">// Shading is filtred</span>
01688                                         <a class="code" href="a04558.html#a15">uint</a> shading=lineLumelPtr[u];
01689 
01690                                         <span class="comment">// Add shading with TLI color.</span>
01691                                         <a class="code" href="a03337.html">CRGBA</a>   col;
01692                                         col.<a class="code" href="a03337.html#NLMISC_1_1CRGBAz2022_0">addRGBOnly</a>(pLightmap-&gt;<a class="code" href="a03891.html#NL3D__CExpandLightmapo5">StaticLightColor</a>[shading], lineTLIPtr[u]);
01693 
01694                                         <span class="comment">// Mul by the userColor</span>
01695                                         lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAz2022_4">modulateFromColorRGBOnly</a>(col, lineUSCPtr[u]);
01696                                         
01697                                         lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].R)*2, 255U);
01698                                         lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].G)*2, 255U);
01699                                         lineDestPtr[u].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> = <a class="code" href="a04061.html#a0">min</a>(((<a class="code" href="a04558.html#a15">uint</a>)lineDestPtr[u].B)*2, 255U);
01700                                 }
01701                         }
01702                         <span class="keywordflow">break</span>;
01703         }
01704 
01705         <span class="comment">// stop MMX if used</span>
01706         <span class="keywordflow">if</span>(asmMMX)
01707                 <a class="code" href="a05096.html#a0">NL3D_asmEndMMX</a>();
01708 
01709 }
</pre></div>    </td>
  </tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:43:24 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>