aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03511.html
blob: 3fa25c6e9cbc881fa90bc6f6e6f17b59d3b8bf8f (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
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>NeL: NL3D::CTextureMem class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.6 -->
<div class="qindex">  <form class="search" action="search.php" method="get">
<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a>  | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
<h1>NL3D::CTextureMem Class Reference</h1><code>#include &lt;<a class="el" href="a06528.html">texture_mem.h</a>&gt;</code>
<p>
<p>Inheritance diagram for NL3D::CTextureMem:
<p><center><img src="a03511.png" usemap="#NL3D::CTextureMem_map" border="0" alt=""></center>
<map name="NL3D::CTextureMem_map">
<area href="a03487.html" alt="NL3D::ITexture" shape="rect" coords="141,112,272,136">
<area href="a02268.html" alt="NLMISC::CBitmap" shape="rect" coords="0,56,131,80">
<area href="a02209.html" alt="NLMISC::CRefCount" shape="rect" coords="141,56,272,80">
<area href="a02867.html" alt="NLMISC::IStreamable" shape="rect" coords="282,56,413,80">
<area href="a02540.html" alt="NLMISC::IClassable" shape="rect" coords="282,0,413,24">
</map>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="a03511.html">CTextureMem</a> 
<p>

<p>
Definition at line <a class="el" href="a06528.html#l00042">42</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturew29">TMagFilter</a> { <a class="el" href="a03487.html#NL3D_1_1ITexturew29NL3D_1_1ITexturew18">Nearest</a> = 0, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew29NL3D_1_1ITexturew10">Linear</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew29NL3D_1_1ITexturew15">MagFilterCount</a>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturew30">TMinFilter</a> { <br>
&nbsp;&nbsp;<a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew21">NearestMipMapOff</a> = 0, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew20">NearestMipMapNearest</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew19">NearestMipMapLinear</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew13">LinearMipMapOff</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew12">LinearMipMapNearest</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew11">LinearMipMapLinear</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew16">MinFilterCount</a>
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a> { <br>
&nbsp;&nbsp;<a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a> = 0, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw8">Luminance</a>, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw0">Alpha</a>, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw1">AlphaLuminance</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw4">DXTC1</a>, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw5">DXTC1Alpha</a>, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw6">DXTC3</a>, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw7">DXTC5</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="a02268.html#NL3D_1_1ITexturew31NLMISC_1_1CBitmapw3">DsDt</a>, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew17">ModeCount</a>, 
<a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew4">DonTKnow</a> = 0xffffffff
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturew32">TUploadFormat</a> { <br>
&nbsp;&nbsp;<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew2">Auto</a> =  0, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew28">RGBA8888</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew26">RGBA4444</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew27">RGBA5551</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew24">RGB888</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew23">RGB565</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew6">DXTC1</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew7">DXTC1Alpha</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew8">DXTC3</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew9">DXTC5</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>, 
<br>
&nbsp;&nbsp;<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew1">AlphaLuminance</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew5">DsDt</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew34">UploadFormatCount</a>
<br>
 }</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>enum &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturew33">TWrapMode</a> { <a class="el" href="a03487.html#NL3D_1_1ITexturew33NL3D_1_1ITexturew22">Repeat</a> =  0, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew33NL3D_1_1ITexturew3">Clamp</a>, 
<a class="el" href="a03487.html#NL3D_1_1ITexturew33NL3D_1_1ITexturew35">WrapModeCount</a>
 }</td></tr>

<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>virtual bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema0">allowDegradation</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">texture file may allow the driver to degrade (default is true).  <a href="#NL3D_1_1CTextureMema0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea1">blend</a> (<a class="el" href="a02268.html">CBitmap</a> &amp;Bm0, <a class="el" href="a02268.html">CBitmap</a> &amp;Bm1, <a class="el" href="a04558.html#a9">uint16</a> factor, bool inputBitmapIsMutable=false)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea2">blit</a> (const <a class="el" href="a02268.html">CBitmap</a> *<a class="el" href="a04223.html#a652">src</a>, <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a573">y</a>)</td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a03487.html">ITexture</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturea4">buildNonSelectableVersion</a> (<a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea6">convertToType</a> (<a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a> <a class="el" href="a04223.html#a581">type</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema7">CTextureMem</a> (<a class="el" href="a04558.html#a7">uint8</a> *<a class="el" href="a04223.html#a637">data</a>, <a class="el" href="a04558.html#a11">uint32</a> length, bool _delete, bool isFile=true, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a632">width</a>=0, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a633">height</a>=0, <a class="el" href="a02268.html#NL3D_1_1ITexturew31">CBitmap::TType</a> texType=CBitmap::RGBA)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema8">CTextureMem</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema9">doGenerate</a> (bool async=false)</td></tr>

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

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

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate</a> (bool async=false)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02540.html#NL3D_1_1ITrackKeyFramer_3_01CKeyVector_01_4a6">getClassName</a> ()=0</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03338.html">CRGBAF</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea11">getColor</a> (float <a class="el" href="a04223.html#a572">x</a>, float <a class="el" href="a04223.html#a573">y</a>) const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a> (<a class="el" href="a04558.html#a11">uint32</a> numMipMap=0) const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema16">getLength</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea13">getMipMapCount</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03337.html">CRGBA</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea14">getPixelColor</a> (<a class="el" href="a04558.html#a14">sint</a> <a class="el" href="a04223.html#a572">x</a>, <a class="el" href="a04558.html#a14">sint</a> <a class="el" href="a04223.html#a573">y</a>, <a class="el" href="a04558.html#a11">uint32</a> numMipMap=0) const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea15">getPixelFormat</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema20">getPointer</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a14">sint</a> &amp;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypea8">getRefCount</a> () const </td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema23">getShareName</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">inherited from <a class="el" href="a03487.html">ITexture</a>.  <a href="#NL3D_1_1CTextureMema23"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea19">getSize</a> (<a class="el" href="a04558.html#a11">uint32</a> numMipMap=0) const </td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual <a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a> (<a class="el" href="a04558.html#a11">uint32</a> numMipMap=0) const </td></tr>

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

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

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

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

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Test wether this texture is selectable.  <a href="#NL3D_1_1ITexturea24"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea25">load</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f, <a class="el" href="a04558.html#a15">uint</a> mipMapSkip=0)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea26">loadGrayscaleAsAlpha</a> (bool loadAsAlpha)</td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema34">NLMISC_DECLARE_CLASS</a> (<a class="el" href="a03511.html">CTextureMem</a>)</td></tr>

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

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Release the Driver info for this texture (if any). Call it with care.  <a href="#NL3D_1_1ITexturea29"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea31">resample</a> (<a class="el" href="a04558.html#a10">sint32</a> nNewWidth, <a class="el" href="a04558.html#a10">sint32</a> nNewHeight)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea32">reset</a> (<a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a> <a class="el" href="a04223.html#a581">type</a>=RGBA)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea33">resize</a> (<a class="el" href="a04558.html#a10">sint32</a> nNewWidth, <a class="el" href="a04558.html#a10">sint32</a> nNewHeight, <a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a> newType=DonTKnow, bool resetTo0=true)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea34">resizeMipMap</a> (<a class="el" href="a04558.html#a11">uint32</a> numMipMap, <a class="el" href="a04558.html#a10">sint32</a> nNewWidth, <a class="el" href="a04558.html#a10">sint32</a> nNewHeight, bool resetTo0=true)</td></tr>

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

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

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

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturea38">selectTexture</a> (<a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a566">index</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema46">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f)  throw (NLMISC::EStream)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Todo: serialize a mem texture.  <a href="#NL3D_1_1CTextureMema46"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema47">setAllowDegradation</a> (bool allow)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">===========================================================================  <a href="#NL3D_1_1CTextureMema47"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea40">setMipMapCount</a> (<a class="el" href="a04558.html#a11">uint32</a> mmc)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema49">setPointer</a> (<a class="el" href="a04558.html#a7">uint8</a> *<a class="el" href="a04223.html#a637">data</a>, <a class="el" href="a04558.html#a11">uint32</a> length, bool _delete, bool isFile=true, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a632">width</a>=0, <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a04223.html#a633">height</a>=0, <a class="el" href="a02268.html#NL3D_1_1ITexturew31">CBitmap::TType</a> texType=CBitmap::RGBA)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturea41">setReleasable</a> (bool <a class="el" href="a04223.html#a628">r</a>)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema51">setShareName</a> (const std::string &amp;shareName)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Make this texture sharable by assigning it a share name. An empty share name means it is not sharable, which is the default.  <a href="#NL3D_1_1CTextureMema51"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturea42">setupedIntoDriver</a> () const </td></tr>

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

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">inherited from <a class="el" href="a03487.html">ITexture</a>.  <a href="#NL3D_1_1CTextureMema53"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturea44">touch</a> ()</td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturea46">touchRect</a> (const <a class="el" href="a03319.html">NLMISC::CRect</a> &amp;rect)</td></tr>

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

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea48">writeJPG</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f, <a class="el" href="a04558.html#a7">uint8</a> quality=80)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturea49">writeTGA</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f, <a class="el" href="a04558.html#a11">uint32</a> d, bool upsideDown=false)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>virtual&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMema60">~CTextureMem</a> ()</td></tr>

<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03487.html">ITexture</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMeme0">Create1x1WhiteTex</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">===========================================================================  <a href="#NL3D_1_1CTextureMeme0"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturee0">loadSize</a> (const std::string &amp;path, <a class="el" href="a04558.html#a11">uint32</a> &amp;retWidth, <a class="el" href="a04558.html#a11">uint32</a> &amp;retHeight)</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturee1">loadSize</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &amp;f, <a class="el" href="a04558.html#a11">uint32</a> &amp;<a class="el" href="a04223.html#a632">width</a>, <a class="el" href="a04558.html#a11">uint32</a> &amp;<a class="el" href="a04223.html#a633">height</a>)</td></tr>

<tr><td colspan=2><br><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>std::list&lt; <a class="el" href="a03319.html">NLMISC::CRect</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a14">sint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypeo0">crefs</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>CPtrInfo *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypeo1">pinfo</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>enum <a class="el" href="a02268.html#NL3D_1_1ITexturew31">NLMISC::CBitmap::TType</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03321.html">NLMISC::CRefPtr</a>&lt; <a class="el" href="a03496.html">CTextureDrvShare</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITextureo4">TextureDrvShare</a></td></tr>

<tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITextures0">bitPerPixels</a> [ModeCount]</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITextures1">DXTC1HEADER</a> = NL_MAKEFOURCC('D','X', 'T', '1')</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITextures2">DXTC3HEADER</a> = NL_MAKEFOURCC('D','X', 'T', '3')</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITextures3">DXTC5HEADER</a> = NL_MAKEFOURCC('D','X', 'T', '5')</td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>CPtrInfo&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypes0">NullPtrInfo</a></td></tr>

<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturep1">_Height</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturep2">_LoadGrayscaleAsAlpha</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03487.html#NL3D_1_1ITexturep4">_Touched</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02268.html#NL3D_1_1ITexturep5">_Width</a></td></tr>

<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr0">_AllowDegradation</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr2">_Delete</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr3">_IsFile</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr4">_Length</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top>std::string&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr5">_ShareName</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr6">_TexHeight</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">keep size for textures that aren't from a file  <a href="#NL3D_1_1CTextureMemr6"></a><br><br></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02268.html#NL3D_1_1ITexturew31">NLMISC::CBitmap::TType</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr7">_TexType</a></td></tr>

<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03511.html#NL3D_1_1CTextureMemr8">_TexWidth</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">keep size for textures that aren't from a file  <a href="#NL3D_1_1CTextureMemr8"></a><br><br></td></tr>
<tr><td colspan=2><br><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>struct&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a02209.html#NLGEORGES_1_1UTypen0">CPtrInfo</a></td></tr>

</table>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="NL3D_1_1ITexturew29" doxytag="NL3D::CTextureMem::TMagFilter" ></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"> enum <a class="el" href="a03487.html#NL3D_1_1ITexturew29">NL3D::ITexture::TMagFilter</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Magnification mode. Same behavior as OpenGL.<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew29NL3D_1_1ITexturew18" doxytag="Nearest" ></a>Nearest</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew29NL3D_1_1ITexturew10" doxytag="Linear" ></a>Linear</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew29NL3D_1_1ITexturew15" doxytag="MagFilterCount" ></a>MagFilterCount</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a06506.html#l00148">148</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a06506.html#l00214">NL3D::ITexture::getMagFilter()</a>.
<p>
<div class="fragment"><pre>00149         {
00150                 <a class="code" href="a03487.html#NL3D_1_1ITexturew29NL3D_1_1ITexturew18">Nearest</a>=0,
00151                 <a class="code" href="a03487.html#NL3D_1_1ITexturew29NL3D_1_1ITexturew10">Linear</a>,
00152 
00153                 <a class="code" href="a03487.html#NL3D_1_1ITexturew29NL3D_1_1ITexturew15">MagFilterCount</a>
00154         };
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturew30" doxytag="NL3D::CTextureMem::TMinFilter" ></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"> enum <a class="el" href="a03487.html#NL3D_1_1ITexturew30">NL3D::ITexture::TMinFilter</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Minifying mode. Same behavior as OpenGL. If the bitmap has no mipmap, and mipmap is required, then mipmaps are computed.<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew30NL3D_1_1ITexturew21" doxytag="NearestMipMapOff" ></a>NearestMipMapOff</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew30NL3D_1_1ITexturew20" doxytag="NearestMipMapNearest" ></a>NearestMipMapNearest</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew30NL3D_1_1ITexturew19" doxytag="NearestMipMapLinear" ></a>NearestMipMapLinear</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew30NL3D_1_1ITexturew13" doxytag="LinearMipMapOff" ></a>LinearMipMapOff</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew30NL3D_1_1ITexturew12" doxytag="LinearMipMapNearest" ></a>LinearMipMapNearest</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew30NL3D_1_1ITexturew11" doxytag="LinearMipMapLinear" ></a>LinearMipMapLinear</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew30NL3D_1_1ITexturew16" doxytag="MinFilterCount" ></a>MinFilterCount</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a06506.html#l00159">159</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a06506.html#l00215">NL3D::ITexture::getMinFilter()</a>.
<p>
<div class="fragment"><pre>00160         {
00161                 <a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew21">NearestMipMapOff</a>=0,
00162                 <a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew20">NearestMipMapNearest</a>,
00163                 <a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew19">NearestMipMapLinear</a>,
00164                 <a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew13">LinearMipMapOff</a>,
00165                 <a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew12">LinearMipMapNearest</a>,
00166                 <a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew11">LinearMipMapLinear</a>,
00167 
00168                 <a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew16">MinFilterCount</a>
00169         };
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturew31" doxytag="NL3D::CTextureMem::TType" ></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"> enum <a class="el" href="a02268.html#NL3D_1_1ITexturew31">NLMISC::CBitmap::TType</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NL3D_1_1ITexturew25" doxytag="RGBA" ></a>RGBA</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw8" doxytag="Luminance" ></a>Luminance</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw0" doxytag="Alpha" ></a>Alpha</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw1" doxytag="AlphaLuminance" ></a>AlphaLuminance</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw4" doxytag="DXTC1" ></a>DXTC1</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw5" doxytag="DXTC1Alpha" ></a>DXTC1Alpha</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw6" doxytag="DXTC3" ></a>DXTC3</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw7" doxytag="DXTC5" ></a>DXTC5</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NLMISC_1_1CBitmapw3" doxytag="DsDt" ></a>DsDt</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NL3D_1_1ITexturew17" doxytag="ModeCount" ></a>ModeCount</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew31NL3D_1_1ITexturew4" doxytag="DonTKnow" ></a>DonTKnow</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a05487.html#l00234">234</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
<div class="fragment"><pre>00235         { 
00236                 <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>=0,
00237                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>,
00238                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>,
00239                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew1">AlphaLuminance</a>,
00240                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew6">DXTC1</a>,
00241                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew7">DXTC1Alpha</a>,
00242                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew8">DXTC3</a>,
00243                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew9">DXTC5</a>,
00244                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew5">DsDt</a>,
00245                 <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew17">ModeCount</a>,
00246                 <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew4">DonTKnow</a>=0xffffffff
00247         } <a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>;
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturew32" doxytag="NL3D::CTextureMem::TUploadFormat" ></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"> enum <a class="el" href="a03487.html#NL3D_1_1ITexturew32">NL3D::ITexture::TUploadFormat</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew2" doxytag="Auto" ></a>Auto</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew28" doxytag="RGBA8888" ></a>RGBA8888</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew26" doxytag="RGBA4444" ></a>RGBA4444</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew27" doxytag="RGBA5551" ></a>RGBA5551</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew24" doxytag="RGB888" ></a>RGB888</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew23" doxytag="RGB565" ></a>RGB565</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew6" doxytag="DXTC1" ></a>DXTC1</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew7" doxytag="DXTC1Alpha" ></a>DXTC1Alpha</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew8" doxytag="DXTC3" ></a>DXTC3</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew9" doxytag="DXTC5" ></a>DXTC5</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew14" doxytag="Luminance" ></a>Luminance</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew0" doxytag="Alpha" ></a>Alpha</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew1" doxytag="AlphaLuminance" ></a>AlphaLuminance</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew5" doxytag="DsDt" ></a>DsDt</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew32NL3D_1_1ITexturew34" doxytag="UploadFormatCount" ></a>UploadFormatCount</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a06506.html#l00125">125</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a06506.html#l00212">NL3D::ITexture::getUploadFormat()</a>.
<p>
<div class="fragment"><pre>00126         {
00127                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew2">Auto</a>= 0,
00128                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew28">RGBA8888</a>,
00129                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew26">RGBA4444</a>,
00130                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew27">RGBA5551</a>,
00131                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew24">RGB888</a>,
00132                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew23">RGB565</a>,
00133                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew6">DXTC1</a>,
00134                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew7">DXTC1Alpha</a>,
00135                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew8">DXTC3</a>,
00136                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew9">DXTC5</a>,
00137                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>,
00138                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>,
00139                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew1">AlphaLuminance</a>,
00140                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew5">DsDt</a>,
00141                 <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew34">UploadFormatCount</a>
00142         };
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturew33" doxytag="NL3D::CTextureMem::TWrapMode" ></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"> enum <a class="el" href="a03487.html#NL3D_1_1ITexturew33">NL3D::ITexture::TWrapMode</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew33NL3D_1_1ITexturew22" doxytag="Repeat" ></a>Repeat</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew33NL3D_1_1ITexturew3" doxytag="Clamp" ></a>Clamp</em>&nbsp;</td><td>
</td></tr>
<tr><td valign=top><em><a class="anchor" name="NL3D_1_1ITexturew33NL3D_1_1ITexturew35" doxytag="WrapModeCount" ></a>WrapModeCount</em>&nbsp;</td><td>
</td></tr>
</table>
</dl>

<p>
Definition at line <a class="el" href="a06506.html#l00117">117</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
<div class="fragment"><pre>00118         {
00119                 <a class="code" href="a03487.html#NL3D_1_1ITexturew33NL3D_1_1ITexturew22">Repeat</a>= 0,
00120                 <a class="code" href="a03487.html#NL3D_1_1ITexturew33NL3D_1_1ITexturew3">Clamp</a>,
00121 
00122                 <a class="code" href="a03487.html#NL3D_1_1ITexturew33NL3D_1_1ITexturew35">WrapModeCount</a>
00123         };
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="NL3D_1_1CTextureMema8" doxytag="NL3D::CTextureMem::CTextureMem" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> NL3D::CTextureMem::CTextureMem </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

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

<p>
Default constructor
<p>
Definition at line <a class="el" href="a06528.html#l00059">59</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00046">_Delete</a>, and <a class="el" href="a06528.html#l00050">_TexType</a>.
<p>
Referenced by <a class="el" href="a06527.html#l00072">Create1x1WhiteTex()</a>.
<p>
<div class="fragment"><pre>00059                       : <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>(NULL),
00060                                         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr2">_Delete</a>(<span class="keyword">false</span>),
00061                                         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr0">_AllowDegradation</a>(<span class="keyword">false</span>),
00062                                         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr7">_TexType</a>(CBitmap::RGBA)
00063         {               
00064         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema60" doxytag="NL3D::CTextureMem::~CTextureMem" ></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"> virtual NL3D::CTextureMem::~<a class="el" href="a03511.html">CTextureMem</a> </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, virtual]</code></td>
        </tr>

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

<p>
Destructor
<p>
Definition at line <a class="el" href="a06528.html#l00070">70</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00046">_Delete</a>.
<p>
<div class="fragment"><pre>00071         { 
00072                 <span class="keywordflow">if</span> (<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a> &amp;&amp; <a class="code" href="a03511.html#NL3D_1_1CTextureMemr2">_Delete</a>)
00073                         <span class="keyword">delete</span> [] <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>;
00074         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema7" doxytag="NL3D::CTextureMem::CTextureMem" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> NL3D::CTextureMem::CTextureMem </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>_delete</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>isFile</em> = true, </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>width</em> = 0, </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>height</em> = 0, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a02268.html#NL3D_1_1ITexturew31">CBitmap::TType</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>texType</em> = CBitmap::RGBA</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>
constructor <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>data</em>&nbsp;</td><td>Pointer of the file. </td></tr>
    <tr><td valign=top><em>length</em>&nbsp;</td><td>length, in bytes, of the datas. </td></tr>
    <tr><td valign=top><em>_delete</em>&nbsp;</td><td>Is true if the class must delete the pointer. </td></tr>
    <tr><td valign=top><em>isFile</em>&nbsp;</td><td>is true if the data must be interpreted as a texture file. Otherwise, it is interpreted as the raw datas of the texture, so the format and size of the texture must also have been set to match the raw datas </td></tr>
    <tr><td valign=top><em>width</em>&nbsp;</td><td>used only if isFile is set to false </td></tr>
    <tr><td valign=top><em>height</em>&nbsp;</td><td>used only if isFile is set to false </td></tr>
    <tr><td valign=top><em>texType</em>&nbsp;</td><td>relevant only when isFile is set to false. Gives the format to expand the texture to when it is generated.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06528.html#l00089">89</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00046">_Delete</a>, <a class="el" href="a05646.html#l01013">data</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a06528.html#l00108">setPointer()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l01013">width</a>.
<p>
<div class="fragment"><pre>00090         { 
00091                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr0">_AllowDegradation</a>=<span class="keyword">false</span>;
00092                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>=NULL;
00093                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr2">_Delete</a>=<span class="keyword">false</span>;          
00094                 <a class="code" href="a03511.html#NL3D_1_1CTextureMema49">setPointer</a>(data, length, _delete, isFile, width, height, texType);              
00095         }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="NL3D_1_1CTextureMema0" doxytag="NL3D::CTextureMem::allowDegradation" ></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"> virtual bool NL3D::CTextureMem::allowDegradation </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
        </tr>

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

<p>
texture file may allow the driver to degrade (default is true). 
<p>

<p>
Reimplemented from <a class="el" href="a03487.html#NL3D_1_1ITexturea0">NL3D::ITexture</a>.
<p>
Definition at line <a class="el" href="a06528.html#l00167">167</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
<div class="fragment"><pre>00167 { <span class="keywordflow">return</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMemr0">_AllowDegradation</a>; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea1" doxytag="NL3D::CTextureMem::blend" ></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 NLMISC::CBitmap::blend </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02268.html">CBitmap</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>Bm0</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a02268.html">CBitmap</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>Bm1</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a9">uint16</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>factor</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>inputBitmapIsMutable</em> = false</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inherited]</code></td>
        </tr>

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

<p>
Set this bitmap as the result of the blend bewteen 2 bitmap REQUIRE : - Bm0 and Bm1 should have the same size.<ul>
<li>Both bitmap should be convertible to RGBA pixel format. The result is a RGBA bitmap. NB: this just works with the first mipmaps <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>factor</em>&nbsp;</td><td>The blend factor. 0 means the result is equal to Bm0, 256 means the result is equal to Bm1 </td></tr>
    <tr><td valign=top><em>inputBitmapIsMutable</em>&nbsp;</td><td>when true, bitmap can be converted in place when needed (no copy done)</td></tr>
  </table>
</dl>
</li></ul>

<p>
Definition at line <a class="el" href="a05486.html#l02817">2817</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00090">NLMISC::CBitmap::_Data</a>, <a class="el" href="a05487.html#l00096">NLMISC::CBitmap::_Height</a>, <a class="el" href="a05487.html#l00095">NLMISC::CBitmap::_Width</a>, <a class="el" href="a05486.html#l00882">NLMISC::CBitmap::convertToRGBA()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05486.html#l01545">NLMISC::CBitmap::resize()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00098">uint16</a>, <a class="el" href="a05981.html#l00102">uint64</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
<p>
<div class="fragment"><pre>02818 {
02819         <a class="code" href="a04199.html#a6">nlassert</a>(factor &lt;= 256);
02820 
02821         <a class="code" href="a04199.html#a6">nlassert</a>(Bm0.<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> != 0 &amp;&amp; Bm0.<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a> != 0
02822                          &amp;&amp; Bm1.<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> != 0 &amp;&amp; Bm1.<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a> != 0);
02823 
02824         <a class="code" href="a04199.html#a6">nlassert</a>(Bm0.<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>  == Bm1.<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>);    <span class="comment">// the bitmap should have the same size</span>
02825         <a class="code" href="a04199.html#a6">nlassert</a>(Bm0.<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a> == Bm1.<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>);
02826 
02827         <span class="keyword">const</span> <a class="code" href="a02268.html">CBitmap</a> *nBm0, *nBm1; <span class="comment">// pointer to the bitmap that is used for blending, or to a copy is a conversion wa required</span>
02828 
02829         <a class="code" href="a02268.html">CBitmap</a> cp0, cp1; <span class="comment">// these bitmap are copies of Bm1 and Bm0 if a conversion was needed</span>
02830 
02831         <span class="keywordflow">if</span> (Bm0.<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)
02832         {
02833                 <span class="keywordflow">if</span> (inputBitmapIsMutable)
02834                 {
02835                         Bm0.<a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_10">convertToRGBA</a>();
02836                         nBm0 = &amp;Bm0;
02837                 }
02838                 <span class="keywordflow">else</span>
02839                 {               
02840                         cp0 = Bm0;
02841                         cp0.<a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_10">convertToRGBA</a>();
02842                         nBm0 = &amp;cp0;
02843                 }
02844         }
02845         <span class="keywordflow">else</span>
02846         {
02847                 nBm0 = &amp;Bm0;
02848         }
02849 
02850 
02851         <span class="keywordflow">if</span> (Bm1.<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)
02852         {
02853                 <span class="keywordflow">if</span> (inputBitmapIsMutable)
02854                 {
02855                         Bm1.<a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_10">convertToRGBA</a>();
02856                         nBm1 = &amp;Bm1;
02857                 }
02858                 <span class="keywordflow">else</span>
02859                 {
02860                         cp1 = Bm1;
02861                         cp1.<a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_10">convertToRGBA</a>();
02862                         nBm1 = &amp;cp1;
02863                 }
02864         }
02865         <span class="keywordflow">else</span>
02866         {
02867                 nBm1 = &amp;Bm1;
02868         }
02869 
02870         this-&gt;<a class="code" href="a02268.html#NL3D_1_1ITexturea33">resize</a>(Bm0.<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>, Bm0.<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>, RGBA);
02871 
02872         <a class="code" href="a04558.html#a15">uint</a> numPix = <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> * <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>; <span class="comment">// 4 component per pixels</span>
02873 
02874 
02875         <span class="keyword">const</span> <a class="code" href="a04558.html#a7">uint8</a> *src0               = &amp;(nBm0-&gt;<a class="code" href="a02268.html#NL3D_1_1ITexturep0">_Data</a>[0][0]);
02876         <span class="keyword">const</span> <a class="code" href="a04558.html#a7">uint8</a> *src1               = &amp;(nBm1-&gt;<a class="code" href="a02268.html#NL3D_1_1ITexturep0">_Data</a>[0][0]);
02877         <a class="code" href="a04558.html#a7">uint8</a> *dest                             = &amp;(this-&gt;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][0]);
02878         
02879 
02880 <span class="preprocessor">        #ifdef NL_OS_WINDOWS                    </span>
02881 <span class="preprocessor"></span>        <span class="keywordflow">if</span> (CSystemInfo::hasMMX())              
02882         {
02883                 <span class="comment">// On a P4 2GHz, with a 256x256 texture, I got the following results :</span>
02884                 <span class="comment">// without mmx : 5.2 ms</span>
02885         <span class="comment">// with mmx    : 1.7 ms</span>
02886                 <span class="comment">// I'm sure this can be further optimized..</span>
02887 
02888                 <a class="code" href="a04558.html#a15">uint</a> numPixLeft = numPix &amp; 1; <span class="comment">// process 2 pixels at once, so special case for odd number</span>
02889                 numPix = numPix &amp; ~1;
02890                 <span class="comment">// do fast blend with mmx</span>
02891                 <a class="code" href="a04558.html#a13">uint64</a> blendFactor0;
02892                 <a class="code" href="a04558.html#a13">uint64</a> blendFactor1;
02893                 <a class="code" href="a04558.html#a9">uint16</a> *bf0 = (<a class="code" href="a04558.html#a9">uint16</a> *) &amp;blendFactor0;
02894                 <a class="code" href="a04558.html#a9">uint16</a> *bf1 = (<a class="code" href="a04558.html#a9">uint16</a> *) &amp;blendFactor1;
02895                 bf0[0] = bf0[1] = bf0[2] = bf0[3] = factor;
02896                 bf1[0] = bf1[1] = bf1[2] = bf1[3] = 256 - factor;
02897                 __asm
02898                 {                       
02899                         mov esi, src0
02900                         mov eax, src1
02901                         mov edi, dest
02902                         mov ebx, -8
02903                         mov ecx, numPix
02904                         shr ecx, 1 <span class="comment">// process pixels 2 by 2</span>
02905                         movq mm1, blendFactor0
02906                         movq mm0, blendFactor1 
02907                                 
02908                 myLoop:
02909                         pxor mm6, mm6
02910                         lea  ebx, [ebx + 8] <span class="comment">// points next location</span>
02911                         pxor mm7, mm7                   
02912                         movq mm2, [esi + ebx]
02913                         movq mm3, [eax + ebx]                   
02914                         <span class="comment">// do blend </span>
02915                         punpckhbw mm7, mm2  <span class="comment">// mm7 contains src0 color 0 in high bytes</span>
02916                         punpckhbw mm6, mm3  <span class="comment">// mm6 contains src1 color 0 in high bytes</span>
02917                         psrl      mm7, 1
02918                         pxor mm4, mm4       <span class="comment">// mm4 = 0                  </span>
02919                         psrl      mm6, 1
02920                         pmulhw mm7, mm0     <span class="comment">// src0 = src0 * blendFactor</span>
02921                         pxor mm5, mm5       <span class="comment">// mm5 = 0</span>
02922                         pmulhw mm6, mm1     <span class="comment">// src1 = src1 * (1 - blendfactor)</span>
02923                         punpcklbw mm4, mm2  <span class="comment">// mm4 contains src0 color 1 in high bytes</span>
02924                         paddusw mm6, mm7    <span class="comment">// mm6 = src0[0] blended with src1[0]</span>
02925                         psrl      mm4, 1
02926                         punpcklbw mm5, mm3  <span class="comment">// mm4 contains src1 color 1 in high bytes</span>
02927                         psll      mm6, 1
02928                         psrl      mm5, 1
02929                         pmulhw    mm4, mm0     <span class="comment">// src0 = src0 * blendFactor</span>
02930                         pmulhw    mm5, mm1     <span class="comment">// src1 = src1 * (1 - blendfactor)</span>
02931                         paddusw   mm4, mm5    <span class="comment">// mm6 = src0[1] blended with src1[1]</span>
02932                         psll      mm4, 1
02933                         <span class="comment">// pack result</span>
02934                         packuswb  mm4, mm6
02935                         dec               ecx
02936                         movq      [edi + ebx], mm4  <span class="comment">// store result</span>
02937                         jne myLoop
02938                         emms
02939                 }
02940                 <span class="keywordflow">if</span> (numPixLeft)
02941                 {
02942                         <span class="comment">// case of odd number of pixels</span>
02943                         src0 += 4 * numPix;
02944                         src1 += 4 * numPix;
02945                         dest += 4 * numPix;
02946                         <a class="code" href="a04558.html#a15">uint</a> blendFact    = (<a class="code" href="a04558.html#a15">uint</a>) factor;
02947                         <a class="code" href="a04558.html#a15">uint</a> invblendFact = 256 - blendFact;                    
02948                         *dest = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *src1)           + (invblendFact * *src0)) &gt;&gt; 8);
02949                         *(dest + 1) = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *(src1 + 1)) + (invblendFact * *(src0 + 1))) &gt;&gt; 8);
02950                         *(dest + 2) = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *(src1 + 2)) + (invblendFact * *(src0 + 2))) &gt;&gt; 8);
02951                         *(dest + 3)  = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *(src1 + 3)) + (invblendFact * *(src0 + 3))) &gt;&gt; 8);
02952                 }
02953         }       
02954         <span class="keywordflow">else</span>    
02955 <span class="preprocessor">        #endif //#ifdef NL_OS_WINDOWS   </span>
02956 <span class="preprocessor"></span>        {       
02957                 <a class="code" href="a04558.html#a7">uint8</a> *endPix                   = dest + (numPix &lt;&lt; 2);
02958                 <span class="comment">// no mmx version</span>
02959                 <a class="code" href="a04558.html#a15">uint</a> blendFact    = (<a class="code" href="a04558.html#a15">uint</a>) factor;
02960                 <a class="code" href="a04558.html#a15">uint</a> invblendFact = 256 - blendFact;
02961                 <span class="keywordflow">do</span>
02962                 {
02964                         *dest = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *src1)           + (invblendFact * *src0)) &gt;&gt; 8);
02965                         *(dest + 1) = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *(src1 + 1)) + (invblendFact * *(src0 + 1))) &gt;&gt; 8);
02966                         *(dest + 2) = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *(src1 + 2)) + (invblendFact * *(src0 + 2))) &gt;&gt; 8);
02967                         *(dest + 3)  = (<a class="code" href="a04558.html#a7">uint8</a>) (((blendFact * *(src1 + 3)) + (invblendFact * *(src0 + 3))) &gt;&gt; 8);
02968 
02969                         src0 = src0 + 4;
02970                         src1 = src1 + 4;
02971                         dest = dest + 4;        
02972                 }
02973                 <span class="keywordflow">while</span> (dest != endPix);
02974         }
02975 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea2" doxytag="NL3D::CTextureMem::blit" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NLMISC::CBitmap::blit </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a02268.html">CBitmap</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="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inherited]</code></td>
        </tr>

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

<p>
Perform a simple blit from the source to this bitmap at the (x, y) pos The dimension of the original bitmap are preserved For now, this texture and the source must have the same format With DXTC format, the dest coordinates must be a multiple of 4 mipmap are not rebuild when present <dl compact><dt><b>Returns:</b></dt><dd>true if the params were corrects and if the blit occures. In debug build there's an assertion</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l02332">2332</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05486.html#l00070">NLMISC::CBitmap::bitPerPixels</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew4">NLMISC::CBitmap::DonTKnow</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05646.html#l01124">src</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#l01013">width</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="a06525.html#l00178">NL3D::CTextureGrouped::doGenerate()</a>, and <a class="el" href="a05567.html#l00367">NL3D::CCoarseMeshBuild::expand()</a>.
<p>
<div class="fragment"><pre>02333 {
02334         
02335         <a class="code" href="a04199.html#a6">nlassert</a>(this-&gt;PixelFormat == <a class="code" href="a04223.html#a652">src</a>-&gt;PixelFormat);
02336         <span class="keywordflow">if</span> (this-&gt;<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a04223.html#a652">src</a>-&gt;PixelFormat)
02337         {
02338                 <span class="keywordflow">return</span> <span class="keyword">false</span>;
02339         }
02340 
02341 
02342         <span class="comment">// check for dxtc use</span>
02343 
02344         <span class="keyword">const</span> <span class="keywordtype">bool</span> useDXTC   =  <a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew6">DXTC1</a> || PixelFormat == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew7">DXTC1Alpha</a> || PixelFormat == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew8">DXTC3</a> || PixelFormat ==     <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew9">DXTC5</a>;
02345 
02346         <span class="comment">// number of bits for a 4x4 pix block</span>
02347         <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> dxtcNumBits  =  PixelFormat == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew6">DXTC1</a> || PixelFormat == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew7">DXTC1Alpha</a> ? 64 : 128;
02348         
02349 
02350         <span class="keywordflow">if</span> (useDXTC)
02351         {
02352                 <span class="comment">// blit pos must be multiple of 4</span>
02353 
02354                 <a class="code" href="a04199.html#a6">nlassert</a>(! (x &amp; 3 || y &amp; 3) );
02355                 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a572">x</a> &amp; 3 || <a class="code" href="a04223.html#a573">y</a> &amp; 3) <span class="keywordflow">return</span> <span class="keyword">false</span>;
02356 
02357         }
02358 
02359         <a class="code" href="a04199.html#a6">nlassert</a>(PixelFormat != DonTKnow);
02360 
02361         <span class="comment">// the width to copy</span>
02362         <a class="code" href="a04558.html#a14">sint</a> <a class="code" href="a04223.html#a632">width</a> = <a class="code" href="a04223.html#a652">src</a>-&gt;_Width;
02363         <span class="comment">// the height to copy</span>
02364         <a class="code" href="a04558.html#a14">sint</a> <a class="code" href="a04223.html#a633">height</a> = <a class="code" href="a04223.html#a652">src</a>-&gt;_Height;
02365 
02366         <a class="code" href="a04558.html#a15">uint</a> destStartX, destStartY;
02367         <a class="code" href="a04558.html#a15">uint</a> srcStartX, srcStartY;
02368 
02369 
02370         <span class="comment">// clip against left</span>
02371         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a572">x</a> &lt; 0)
02372         {
02373                 <a class="code" href="a04223.html#a632">width</a> += <a class="code" href="a04223.html#a572">x</a>;
02374                 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a632">width</a> &lt;= 0) <span class="keywordflow">return</span> <span class="keyword">true</span>;
02375                 destStartX = 0;
02376                 srcStartX = -<a class="code" href="a04223.html#a572">x</a>;
02377         }
02378         <span class="keywordflow">else</span>
02379         {
02380                 destStartX = <a class="code" href="a04223.html#a572">x</a>;
02381                 srcStartX = 0;
02382         }
02383 
02384         <span class="comment">// clip against top</span>
02385         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a573">y</a> &lt; 0)
02386         {
02387                 <a class="code" href="a04223.html#a633">height</a> += <a class="code" href="a04223.html#a573">y</a>;
02388                 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a633">height</a> &lt;= 0) <span class="keywordflow">return</span> <span class="keyword">true</span>;
02389                 srcStartY = -<a class="code" href="a04223.html#a573">y</a>;
02390                 destStartY = 0;
02391         }
02392         <span class="keywordflow">else</span>
02393         {
02394                 destStartY = <a class="code" href="a04223.html#a573">y</a>;
02395                 srcStartY = 0;
02396         }
02397 
02398         <span class="comment">// clip against right</span>
02399         <span class="keywordflow">if</span> ((destStartX + <a class="code" href="a04223.html#a632">width</a> - 1) &gt;= <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>)
02400         {
02401                 <a class="code" href="a04223.html#a632">width</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> - destStartX;
02402                 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a632">width</a> &lt;= 0) <span class="keywordflow">return</span> <span class="keyword">true</span>;
02403         }
02404 
02405         <span class="comment">// clip against bottom</span>
02406         <span class="keywordflow">if</span> ((destStartY + <a class="code" href="a04223.html#a633">height</a> - 1) &gt;= <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>)
02407         {
02408                 <a class="code" href="a04223.html#a633">height</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a> - destStartY;
02409                 <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a632">width</a> &lt;= 0) <span class="keywordflow">return</span> <span class="keyword">true</span>;
02410         }
02411 
02412 
02413         <span class="comment">// divide all distance by 4 when using DXTC</span>
02414         <span class="keywordflow">if</span> (useDXTC)
02415         {
02416                 destStartX &gt;&gt;= 2;
02417                 destStartY &gt;&gt;= 2;
02418                 srcStartX &gt;&gt;= 2;
02419                 srcStartY &gt;&gt;= 2;
02420                 <a class="code" href="a04223.html#a632">width</a> &gt;&gt;= 2;
02421                 <a class="code" href="a04223.html#a633">height</a> &gt;&gt;= 2;
02422         }
02423         
02424 
02425         <span class="comment">// bytes per pixs is for either one pixel or 16 (a 4x4 block in DXTC)</span>
02426         <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> bytePerPixs = ( useDXTC ? dxtcNumBits : <a class="code" href="a02268.html#NL3D_1_1ITextures0">bitPerPixels</a>[PixelFormat] ) &gt;&gt; 3 <span class="comment">/* divide by 8 to get the number of bytes */</span>;
02427 
02428 
02429         <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> destRealWidth = useDXTC ? (<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> &gt;&gt; 2) : <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
02430         <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> srcRealWidth = useDXTC ? (<a class="code" href="a04223.html#a652">src</a>-&gt;_Width &gt;&gt; 2) : <a class="code" href="a04223.html#a652">src</a>-&gt;_Width;
02431         
02432 
02433         <span class="comment">// size to go to the next line in the destination</span>
02434         <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> destStride = destRealWidth * bytePerPixs;
02435 
02436         <span class="comment">// size to go to the next line in the source</span>
02437         <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> srcStride = srcRealWidth * bytePerPixs;
02438         
02439         <span class="comment">// length in bytes of a line to copy</span>
02440         <span class="keyword">const</span> <a class="code" href="a04558.html#a15">uint</a> lineLength = <a class="code" href="a04223.html#a632">width</a> * bytePerPixs;
02441 
02442 
02443         <a class="code" href="a04558.html#a7">uint8</a>  *destPos = &amp;(<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][0]) + destStride * destStartY + bytePerPixs * destStartX;
02444         <span class="keyword">const</span> <a class="code" href="a04558.html#a7">uint8</a> *srcPos = &amp;(<a class="code" href="a04223.html#a652">src</a>-&gt;_Data[0][0]) + srcStride * srcStartY + bytePerPixs * srcStartX;
02445 
02446         <span class="comment">// copy each hline</span>
02447         <span class="keywordflow">for</span> (<a class="code" href="a04558.html#a14">sint</a> k = 0; k &lt; <a class="code" href="a04223.html#a633">height</a>; ++k)
02448         {
02449                 ::memcpy(destPos, srcPos, lineLength);
02450                 destPos += destStride;
02451                 srcPos += srcStride;
02452         }
02453 
02454         
02455         <span class="keywordflow">return</span> <span class="keyword">true</span>;
02456 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea3" doxytag="NL3D::CTextureMem::buildMipMaps" ></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 NLMISC::CBitmap::buildMipMaps </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> [inherited]</code></td>
        </tr>

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

<p>
Build the mipmaps of the bitmap if they don't exist. Work only in RGBA mode... <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps()</a>.</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l01422">1422</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a06340.html#l00340">NLMISC::CRGBA::A</a>, <a class="el" href="a06340.html#l00338">NLMISC::CRGBA::B</a>, <a class="el" href="a06340.html#l00336">NLMISC::CRGBA::G</a>, <a class="el" href="a05586.html#l00371">NLMISC::isPowerOf2()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a06340.html#l00334">NLMISC::CRGBA::R</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; uint8 &gt;::resize()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05646.html#l00236">w</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00152">NL3D::CHLSColorTexture::addMask()</a>, <a class="el" href="a06527.html#l00045">doGenerate()</a>, <a class="el" href="a05486.html#l02682">NLMISC::CBitmap::flipH()</a>, <a class="el" href="a05486.html#l02714">NLMISC::CBitmap::flipV()</a>, <a class="el" href="a05486.html#l01508">NLMISC::CBitmap::resample()</a>, <a class="el" href="a05486.html#l02781">NLMISC::CBitmap::rot90CCW()</a>, <a class="el" href="a05486.html#l02746">NLMISC::CBitmap::rot90CW()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>01423 {
01424         <a class="code" href="a04558.html#a11">uint32</a> i,j;
01425 
01426         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>!=<a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>) <span class="keywordflow">return</span>;
01427         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>!=1) <span class="keywordflow">return</span>;
01428         <span class="keywordflow">if</span>(!<a class="code" href="a05378.html#a264">NLMISC::isPowerOf2</a>(_Width)) <span class="keywordflow">return</span>;
01429         <span class="keywordflow">if</span>(!<a class="code" href="a05378.html#a264">NLMISC::isPowerOf2</a>(_Height)) <span class="keywordflow">return</span>;
01430         
01431         <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a575">w</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
01432         <a class="code" href="a04558.html#a11">uint32</a> h = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
01433 
01434         <span class="keywordflow">while</span>(<a class="code" href="a04223.html#a575">w</a>&gt;1 || h&gt;1)
01435         {
01436                 <a class="code" href="a04558.html#a11">uint32</a> precw = <a class="code" href="a04223.html#a575">w</a>;
01437                 <a class="code" href="a04558.html#a11">uint32</a> prech = h;
01438                 <a class="code" href="a04223.html#a575">w</a> = (<a class="code" href="a04223.html#a575">w</a>+1)/2;
01439                 h = (h+1)/2;
01440                 <a class="code" href="a04558.html#a11">uint32</a>  mulw= precw/<a class="code" href="a04223.html#a575">w</a>;
01441                 <a class="code" href="a04558.html#a11">uint32</a>  mulh= prech/h;
01442 
01443                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>].resize(w*h*4);
01444                 
01445         
01446                 <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pRgba = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>][0];
01447                 <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pRgbaPrev = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>-1][0];
01448                 <span class="keywordflow">for</span>(i=0; i&lt;h; i++)
01449                 {
01450                         <a class="code" href="a04558.html#a14">sint</a>    i0= mulh*i;
01451                         <a class="code" href="a04558.html#a14">sint</a>    i1= mulh*i+1;
01452                         <span class="keywordflow">if</span>(mulh==1)
01453                                 i1=i0;
01454                         i0*=precw;
01455                         i1*=precw;
01456                         <span class="keywordflow">for</span>(j=0; j&lt;<a class="code" href="a04223.html#a575">w</a>; j++)
01457                         {
01458                                 <a class="code" href="a04558.html#a14">sint</a>    j0= mulw*j;
01459                                 <a class="code" href="a04558.html#a14">sint</a>    j1= mulw*j+1;
01460                                 <span class="keywordflow">if</span>(mulh==1)
01461                                         j1=j0;
01462                                 <a class="code" href="a03337.html">CRGBA</a>   &amp;c0= pRgbaPrev[i0+j0];
01463                                 <a class="code" href="a03337.html">CRGBA</a>   &amp;c1= pRgbaPrev[i0+j1];
01464                                 <a class="code" href="a03337.html">CRGBA</a>   &amp;c2= pRgbaPrev[i1+j0];
01465                                 <a class="code" href="a03337.html">CRGBA</a>   &amp;c3= pRgbaPrev[i1+j1];
01466                                 pRgba[i*<a class="code" href="a04223.html#a575">w</a> + j].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> = (c0.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> +
01467                                                                         c1.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> +
01468                                                                         c2.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> +
01469                                                                         c3.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo3">R</a> + 2 ) /4;
01470                                 pRgba[i*<a class="code" href="a04223.html#a575">w</a> + j].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> = (c0.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> +
01471                                                                         c1.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> +
01472                                                                         c2.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> +
01473                                                                         c3.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo2">G</a> + 2 ) /4;
01474                                 pRgba[i*<a class="code" href="a04223.html#a575">w</a> + j].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> = (c0.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> +
01475                                                                         c1.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> +
01476                                                                         c2.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> +
01477                                                                         c3.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo1">B</a> + 2 ) /4;
01478                                 pRgba[i*<a class="code" href="a04223.html#a575">w</a> + j].<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a> = (c0.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a> +
01479                                                                         c1.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a> +
01480                                                                         c2.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a> +
01481                                                                         c3.<a class="code" href="a03337.html#NLMISC_1_1CRGBAo0">A</a> + 2 ) /4;
01482                         }
01483                 }
01484 
01485                 <a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>++;
01486         }
01487 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea4" doxytag="NL3D::CTextureMem::buildNonSelectableVersion" ></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"> virtual <a class="el" href="a03487.html">ITexture</a>* NL3D::ITexture::buildNonSelectableVersion </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>index</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, virtual, inherited]</code></td>
        </tr>

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

<p>
If this texture is selectable, build a non selectable version of this texture that is setupped with the given slot. NB : If this texture is selectable, you are ensured that the return pointer is not 'this'
<p>
Reimplemented in <a class="el" href="a03492.html#NL3D_1_1CTextureCubea4">NL3D::CTextureCube</a>, and <a class="el" href="a03512.html#NL3D_1_1CTextureMultiFilea4">NL3D::CTextureMultiFile</a>.
<p>
Definition at line <a class="el" href="a06506.html#l00368">368</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a05646.html#l00225">index</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a05993.html#l00268">NL3D::CMeshBaseInstance::selectTextureSet()</a>.
<p>
<div class="fragment"><pre>00368 { <span class="keywordflow">return</span> <span class="keyword">this</span>; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea5" doxytag="NL3D::CTextureMem::clearTouched" ></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::ITexture::clearTouched </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</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="a06506.html#l00448">448</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00422">NL3D::ITexture::_ListInvalidRect</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00449         { 
00450                 <a class="code" href="a03487.html#NL3D_1_1ITexturep4">_Touched</a>=<span class="keyword">false</span>; 
00451                 <a class="code" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a>.clear();
00452         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea6" doxytag="NL3D::CTextureMem::convertToType" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NLMISC::CBitmap::convertToType </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>type</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inherited]</code></td>
        </tr>

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

<p>
Convert bitmap to another type conversion to rgba always work. No-op if already rgba. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>type</em>&nbsp;</td><td>new type for the bitmap </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if conversion succeeded, false else</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l00926">926</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05486.html#l00821">NLMISC::CBitmap::convertToAlpha()</a>, <a class="el" href="a05486.html#l00852">NLMISC::CBitmap::convertToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00415">NLMISC::CBitmap::convertToDXTC5()</a>, <a class="el" href="a05486.html#l00790">NLMISC::CBitmap::convertToLuminance()</a>, <a class="el" href="a05486.html#l00882">NLMISC::CBitmap::convertToRGBA()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, and <a class="el" href="a05646.html#l00244">type</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00152">NL3D::CHLSColorTexture::addMask()</a>, <a class="el" href="a05935.html#l00809">NL3D::CLodCharacterTmpBitmap::build()</a>, <a class="el" href="a05567.html#l00070">NL3D::CCoarseMeshBuild::buildBitmap()</a>, <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a05785.html#l00049">NL3D::CHeightMap::buildFromBitmap()</a>, <a class="el" href="a05463.html#l00059">NL3D::CAsyncTextureManager::CTextureEntry::createCoarseBitmap()</a>, <a class="el" href="a06768.html#l01820">NL3D::CZoneLighter::getTexture()</a>, <a class="el" href="a06536.html#l00442">NL3D::CTileBank::getTileNoiseMap()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00927 {
00928         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>==<a class="code" href="a04223.html#a581">type</a>) <span class="keywordflow">return</span> <span class="keyword">true</span>;
00929 
00930         <span class="keywordflow">switch</span>(<a class="code" href="a04223.html#a581">type</a>)
00931         {
00932                 <span class="keywordflow">case</span> <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a> :
00933                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_10">convertToRGBA</a>();
00934                         <span class="keywordflow">break</span>;
00935 
00936                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew9">DXTC5</a> :
00937                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_8">convertToDXTC5</a>();                
00938                         <span class="keywordflow">break</span>;
00939 
00940                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a> :
00941                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_9">convertToLuminance</a>();
00942                         <span class="keywordflow">break</span>;
00943 
00944                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a> :
00945                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_6">convertToAlpha</a>();
00946                         <span class="keywordflow">break</span>;
00947 
00948                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew1">AlphaLuminance</a> :
00949                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1925_7">convertToAlphaLuminance</a>();
00950                         <span class="keywordflow">break</span>;
00951 
00952                 <span class="keywordflow">default</span>:
00953                         <span class="keywordflow">break</span>;
00954         }
00955         
00956         <span class="keywordflow">return</span> <span class="keyword">false</span>;
00957 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMeme0" doxytag="NL3D::CTextureMem::Create1x1WhiteTex" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03487.html">ITexture</a> * NL3D::CTextureMem::Create1x1WhiteTex </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> [static]</code></td>
        </tr>

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

<p>
=========================================================================== 
<p>
This create a white square texture of 1x1 It can be used to force the activation of a texture stage with no texture.
<p>
Definition at line <a class="el" href="a06527.html#l00072">72</a> of file <a class="el" href="a06527.html">texture_mem.cpp</a>.
<p>
References <a class="el" href="a06528.html#l00059">CTextureMem()</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05363.html#a303">NL3D::WhitePix</a>.
<p>
<div class="fragment"><pre>00073 {
00074         <span class="keyword">static</span> <a class="code" href="a03408.html">NLMISC::CSmartPtr&lt;ITexture&gt;</a> tex  = NULL;
00075         <span class="keywordflow">if</span> (!tex)
00076         {
00077                 tex = <span class="keyword">new</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMema8">CTextureMem</a>((<a class="code" href="a04558.html#a7">uint8</a> *) &amp;WhitePix,
00078                                                            <span class="keyword">sizeof</span>(WhitePix),
00079                                                            <span class="keyword">false</span>, <span class="comment">/* dont delete */</span>
00080                                                            <span class="keyword">false</span>, <span class="comment">/* not a file */</span>
00081                                                            1, 1);
00082                 static_cast&lt;CTextureMem *&gt;((<a class="code" href="a03487.html#NL3D_1_1ITexturez979_1">ITexture</a> *)tex)-&gt;setShareName(<span class="stringliteral">"#WhitePix1x1"</span>);
00083         }
00084         <span class="keywordflow">return</span> (<a class="code" href="a03487.html#NL3D_1_1ITexturez979_1">ITexture</a> *) tex;
00085 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema9" doxytag="NL3D::CTextureMem::doGenerate" ></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::CTextureMem::doGenerate </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>async</em> = false          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

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

<p>
Generate the texture
<p>
Implements <a class="el" href="a03487.html#NL3D_1_1ITextureb0">NL3D::ITexture</a>.
<p>
Definition at line <a class="el" href="a06527.html#l00045">45</a> of file <a class="el" href="a06527.html">texture_mem.cpp</a>.
<p>
References <a class="el" href="a06528.html#l00047">_IsFile</a>, <a class="el" href="a06528.html#l00045">_Length</a>, <a class="el" href="a06528.html#l00053">_TexHeight</a>, <a class="el" href="a06528.html#l00050">_TexType</a>, <a class="el" href="a06528.html#l00053">_TexWidth</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05979.html#l00277">NLMISC::CMemStream::fill()</a>, <a class="el" href="a05487.html#l00308">NLMISC::CBitmap::getPixels()</a>, <a class="el" href="a05486.html#l00109">NLMISC::CBitmap::load()</a>, <a class="el" href="a05486.html#l00184">NLMISC::CBitmap::makeDummy()</a>, and <a class="el" href="a05486.html#l01545">NLMISC::CBitmap::resize()</a>.
<p>
<div class="fragment"><pre>00046 {       
00047         <span class="keywordflow">if</span> (<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>)
00048         {
00049                 <span class="keywordflow">if</span> (<a class="code" href="a03511.html#NL3D_1_1CTextureMemr3">_IsFile</a>)
00050                 {
00051                         <a class="code" href="a02271.html">NLMISC::CMemStream</a> m (<span class="keyword">true</span>);
00052                         m.<a class="code" href="a02271.html#NLMISC_1_1CStringStreama8">fill</a> (_Data, _Length);
00053                         <a class="code" href="a02268.html#NL3D_1_1ITexturea25">load</a> (m);
00054                 }
00055                 <span class="keywordflow">else</span>
00056                 {
00057                         <a class="code" href="a02268.html#NL3D_1_1ITexturea33">resize</a>(_TexWidth, _TexHeight, _TexType);                        
00058                         ::memcpy(&amp;<a class="code" href="a02268.html#NL3D_1_1ITexturez1927_1">getPixels</a>(0)[0], <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>, <a class="code" href="a03511.html#NL3D_1_1CTextureMemr4">_Length</a>);
00059                         <a class="code" href="a02268.html#NL3D_1_1ITexturea3">buildMipMaps</a>();
00060                 }
00061         }
00062         <span class="keywordflow">else</span>
00063         {
00064                 <a class="code" href="a02268.html#NL3D_1_1ITexturea27">makeDummy</a>();
00065         }
00066 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea7" doxytag="NL3D::CTextureMem::flipH" ></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 NLMISC::CBitmap::flipH </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> [inherited]</code></td>
        </tr>

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

<p>
Horizontal flip (all the columns are flipped)
<p>
Definition at line <a class="el" href="a05486.html#l02682">2682</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05486.html#l01388">NLMISC::CBitmap::getHeight()</a>, <a class="el" href="a05486.html#l01363">NLMISC::CBitmap::getWidth()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05486.html#l01493">NLMISC::CBitmap::releaseMipMaps()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>02683 {
02684         <span class="keywordflow">if</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)
02685                 <span class="keywordflow">return</span>;
02686 
02687         <a class="code" href="a04558.html#a10">sint32</a> nWidth = <a class="code" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a>(0);
02688         <a class="code" href="a04558.html#a10">sint32</a> nHeight = <a class="code" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a>(0);
02689         <a class="code" href="a04558.html#a10">sint32</a> i, j;
02690         <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pBitmap = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][0];
02691         <span class="keywordtype">bool</span> needRebuild = <span class="keyword">false</span>;
02692         <a class="code" href="a03337.html">CRGBA</a> temp;
02693 
02694         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>&gt;1)
02695                 needRebuild = <span class="keyword">true</span>;
02696         <a class="code" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps</a>();
02697 
02698         <span class="keywordflow">for</span>( i = 0; i &lt; nHeight; ++i )
02699                 <span class="keywordflow">for</span>( j = 0; j &lt; nWidth/2; ++j )
02700                 {
02701                         temp = pBitmap[i*nWidth+j];
02702                         pBitmap[i*nWidth+j] = pBitmap[i*nWidth+nWidth-j-1];
02703                         pBitmap[i*nWidth+nWidth-j-1] = temp;
02704                 }
02705 
02706         <span class="comment">// Rebuilding mipmaps</span>
02707         <span class="keywordflow">if</span>(needRebuild)
02708         {
02709                 <a class="code" href="a02268.html#NL3D_1_1ITexturea3">buildMipMaps</a>();
02710         }
02711 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea8" doxytag="NL3D::CTextureMem::flipV" ></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 NLMISC::CBitmap::flipV </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> [inherited]</code></td>
        </tr>

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

<p>
Vertical flip (all the rows are flipped)
<p>
Definition at line <a class="el" href="a05486.html#l02714">2714</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05486.html#l01388">NLMISC::CBitmap::getHeight()</a>, <a class="el" href="a05486.html#l01363">NLMISC::CBitmap::getWidth()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05486.html#l01493">NLMISC::CBitmap::releaseMipMaps()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
<div class="fragment"><pre>02715 {
02716         <span class="keywordflow">if</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)
02717                 <span class="keywordflow">return</span>;
02718 
02719         <a class="code" href="a04558.html#a10">sint32</a> nWidth = <a class="code" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a>(0);
02720         <a class="code" href="a04558.html#a10">sint32</a> nHeight = <a class="code" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a>(0);
02721         <a class="code" href="a04558.html#a10">sint32</a> i, j;
02722         <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pBitmap = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][0];
02723         <span class="keywordtype">bool</span> needRebuild = <span class="keyword">false</span>;
02724         <a class="code" href="a03337.html">CRGBA</a> temp;
02725 
02726         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>&gt;1)
02727                 needRebuild = <span class="keyword">true</span>;
02728         <a class="code" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps</a>();
02729 
02730         <span class="keywordflow">for</span>( j = 0; j &lt; nHeight/2; ++j )
02731                 <span class="keywordflow">for</span>( i = 0; i &lt; nWidth; ++i )
02732                 {
02733                         temp = pBitmap[j*nWidth+i];
02734                         pBitmap[j*nWidth+i] = pBitmap[(nHeight-j-1)*nWidth+i];
02735                         pBitmap[(nHeight-j-1)*nWidth+i] = temp;
02736                 }
02737 
02738         <span class="comment">// Rebuilding mipmaps</span>
02739         <span class="keywordflow">if</span>(needRebuild)
02740         {
02741                 <a class="code" href="a02268.html#NL3D_1_1ITexturea3">buildMipMaps</a>();
02742         }
02743 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea9" doxytag="NL3D::CTextureMem::generate" ></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::ITexture::generate </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>async</em> = false          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</code></td>
        </tr>

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

<p>
Generate the texture pixels.<p>
This method is called by the driver when it needs to generate pixels of the texture. If the texture is used for the first time or if it is touched, the driver will call this method. For exemple, a texture file will load the bitmap in this method.<p>
If the invalidate rect list is empty, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a> rebuild all the texture. If the invalidate rect list is not empty, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a> rebuilds only the invalidate rectangles in the list.<p>
Don't clear the touch flag or the invalid rectangle list until updating the texture in <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>. It's the <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>'s caller jobs.<p>
After generation, if the texture is releasable, the driver will release the texture by calling <a class="el" href="a03487.html#NL3D_1_1ITexturea28">release()</a>.<p>
NB: a flag is maintained to see if the generated bitmap is coherent with texture description (see touch*()). So if you do {<a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>; <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>;}, you only get 1 real bitmap generation...<p>
If, after the doGenerate, the bitmap format is compressed (DXTC) and no mipmaps have been generated, the mipmap are disabled beacause the user probably don't want the driver to unpacks the texture, generates the mipmaps and repacks the dxtc texture (that takes a lot of CPU time).<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>async</em>&nbsp;</td><td>tells the texture if the call is made asynchronously or not.</td></tr>
  </table>
</dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03487.html#NL3D_1_1ITexturea21">isAllInvalidated()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea44">touch()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea45">touched()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea46">touchRect()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea5">clearTouched()</a>, <a class="el" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a> <p>
<a class="el" href="a03487.html#NL3D_1_1ITexturea17">getReleasable()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea41">setReleasable()</a></dd></dl>

<p>
Definition at line <a class="el" href="a06506.html#l00309">309</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00404">NL3D::ITexture::_GoodGenerate</a>, and <a class="el" href="a03487.html#NL3D_1_1ITextureb0">NL3D::ITexture::doGenerate()</a>.
<p>
Referenced by <a class="el" href="a06372.html#l00957">NL3D::CShadowMapManager::allocateTexture()</a>, <a class="el" href="a05567.html#l00070">NL3D::CCoarseMeshBuild::buildBitmap()</a>, <a class="el" href="a06513.html#l00066">NL3D::CTextureCube::doGenerate()</a>, <a class="el" href="a06768.html#l01820">NL3D::CZoneLighter::getTexture()</a>, <a class="el" href="a06525.html#l00039">NL3D::GetTextureSize()</a>, <a class="el" href="a06536.html#l00442">NL3D::CTileBank::getTileNoiseMap()</a>, <a class="el" href="a06768.html#l02927">NL3D::CZoneLighter::lightWater()</a>, <a class="el" href="a05457.html#l00461">NL3D::CAsyncFileManager3D::CTextureLoad::run()</a>, <a class="el" href="a05457.html#l00231">NL3D::CAsyncFileManager3D::CMeshLoad::run()</a>, <a class="el" href="a06257.html#l00733">NL3D::CPSMultiTexturedParticle::setupMaterial()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00310         {
00311                 <span class="keywordflow">if</span>(!_GoodGenerate)
00312                 {
00313                         <a class="code" href="a03511.html#NL3D_1_1CTextureMema9">doGenerate</a>(async);
00314                         _GoodGenerate=<span class="keyword">true</span>;
00315                 }
00316         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITrackKeyFramer_3_01CKeyVector_01_4a6" doxytag="NL3D::CTextureMem::getClassName" ></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"> virtual std::string NLMISC::IClassable::getClassName </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> [pure virtual, inherited]</code></td>
        </tr>

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

<p>

<p>
Implemented in <a class="el" href="a02995.html#NLAIAGENT_1_1CNumericIndexz1699_0">NLAIAGENT::CNumericIndex</a>, <a class="el" href="a02145.html#NLAIAGENT_1_1VectorTypez1764_0">NLAIC::IPointerGestion</a>, <a class="el" href="a02650.html#NLAIC_1_1CIdentTypez1766_0">NLAIC::CIdentType</a>, and <a class="el" href="a02241.html#CAutomataDescz1896_0">CAutomataDesc</a>.
<p>
Referenced by <a class="el" href="a05549.html#l00091">NLMISC::CClassRegistry::checkObject()</a>, and <a class="el" href="a06525.html#l00039">NL3D::GetTextureSize()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea11" doxytag="NL3D::CTextureMem::getColor" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03338.html">CRGBAF</a> NLMISC::CBitmap::getColor </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">float&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>float&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [inherited]</code></td>
        </tr>

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

<p>
Get the color in the bitmap given a pixel size The mipmaps must be built. If not just return the bilinear at the given point. The input x and y must be clamped between 0 and 1
<p>
Definition at line <a class="el" href="a05486.html#l02470">2470</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a06340.html#l00661">NLMISC::CRGBAF::A</a>, <a class="el" href="a06340.html#l00659">NLMISC::CRGBAF::B</a>, <a class="el" href="a06340.html#l00657">NLMISC::CRGBAF::G</a>, <a class="el" href="a05486.html#l02459">NLMISC::CBitmap::getColorInterp()</a>, <a class="el" href="a05486.html#l01388">NLMISC::CBitmap::getHeight()</a>, <a class="el" href="a05486.html#l03134">NLMISC::CBitmap::getPixelColor()</a>, <a class="el" href="a05487.html#l00308">NLMISC::CBitmap::getPixels()</a>, <a class="el" href="a05486.html#l01363">NLMISC::CBitmap::getWidth()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a06340.html#l00655">NLMISC::CRGBAF::R</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05646.html#l00236">x</a>, and <a class="el" href="a05646.html#l00236">y</a>.
<p>
<div class="fragment"><pre>02471 {
02472         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a572">x</a> &lt; 0.0f) <a class="code" href="a04223.html#a572">x</a> = 0.0f;
02473         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a572">x</a> &gt; 1.0f) <a class="code" href="a04223.html#a572">x</a> = 1.0f;
02474         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a573">y</a> &lt; 0.0f) <a class="code" href="a04223.html#a573">y</a> = 0.0f;
02475         <span class="keywordflow">if</span> (<a class="code" href="a04223.html#a573">y</a> &gt; 1.0f) <a class="code" href="a04223.html#a573">y</a> = 1.0f;
02476 
02477         <a class="code" href="a04558.html#a10">sint32</a> nWidth = <a class="code" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a>(0);
02478         <a class="code" href="a04558.html#a10">sint32</a> nHeight = <a class="code" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a>(0);
02479 
02480         <span class="keywordflow">if</span> (nWidth == 0 || nHeight == 0) <span class="keywordflow">return</span> CRGBAF(0, 0, 0, 0);
02481 
02482         <span class="keyword">const</span> CObjectVector&lt;uint8&gt; &amp;rBitmap = <a class="code" href="a02268.html#NL3D_1_1ITexturez1927_1">getPixels</a>(0);
02483         <a class="code" href="a04558.html#a10">sint32</a> nX[4], nY[4];
02484 
02485         <a class="code" href="a04223.html#a572">x</a> *= nWidth-1;
02486         <a class="code" href="a04223.html#a573">y</a> *= nHeight-1;
02487 
02488         <span class="comment">// Integer part of (x,y)</span>
02489         <span class="comment">//nX[0] = ((sint32)floor(x-0.5f));</span>
02490         <span class="comment">//nY[0] = ((sint32)floor(y-0.5f));</span>
02491         nX[0] = ((<a class="code" href="a04558.html#a10">sint32</a>)floor(x));
02492         nY[0] = ((<a class="code" href="a04558.html#a10">sint32</a>)floor(y));
02493 
02494         nX[1] = (nX[0] &lt; (nWidth-1) ? nX[0]+1 : nX[0]);
02495         nY[1] = nY[0];
02496 
02497         nX[2] = nX[0];
02498         nY[2] = (nY[0] &lt; (nHeight-1) ? nY[0]+1 : nY[0]);
02499 
02500         nX[3] = nX[1];
02501         nY[3] = nY[2];
02502 
02503         <a class="code" href="a04558.html#a11">uint32</a> i;
02504 
02505         <span class="keywordflow">for</span> (i = 0; i &lt; 4; ++i)
02506         {
02507                 <a class="code" href="a04199.html#a6">nlassert</a> (nX[i] &gt;= 0);
02508                 <a class="code" href="a04199.html#a6">nlassert</a> (nY[i] &gt;= 0 );
02509                 <a class="code" href="a04199.html#a6">nlassert</a> (nX[i] &lt; nWidth);
02510                 <a class="code" href="a04199.html#a6">nlassert</a> (nY[i] &lt; nHeight);
02511         }
02512 
02513         <span class="comment">// Decimal part of (x,y)</span>
02514         <a class="code" href="a04223.html#a572">x</a> = <a class="code" href="a04223.html#a572">x</a> - (<span class="keywordtype">float</span>)nX[0]; 
02515         <a class="code" href="a04223.html#a573">y</a> = <a class="code" href="a04223.html#a573">y</a> - (<span class="keywordtype">float</span>)nY[0];
02516 
02517         <span class="keywordflow">switch</span> (this-&gt;<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>)
02518         {
02519                 <span class="keywordflow">case</span> <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>:
02520                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew6">DXTC1</a>:
02521                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew7">DXTC1Alpha</a>:
02522                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew8">DXTC3</a>:
02523                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew9">DXTC5</a>:
02524                 {                                                                       
02525                         CRGBAF finalVal;
02526                         <a class="code" href="a03337.html">CRGBA</a> val[4];
02527 
02528                         <span class="keywordflow">if</span> (this-&gt;<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)
02529                         {
02530                                 <span class="keywordflow">for</span> (i = 0; i &lt; 4; ++i)
02531                                 {
02532                                         val[i] = <a class="code" href="a03337.html">CRGBA</a> (rBitmap[(nX[i]+nY[i]*nWidth)*4+0],
02533                                                                         rBitmap[(nX[i]+nY[i]*nWidth)*4+1],
02534                                                                         rBitmap[(nX[i]+nY[i]*nWidth)*4+2],
02535                                                                         rBitmap[(nX[i]+nY[i]*nWidth)*4+3]);
02536                                 }
02537                         }
02538                         <span class="keywordflow">else</span>
02539                         {
02540                                 <span class="comment">// slower version : get from DXT</span>
02541                                 <span class="keywordflow">for</span> (i = 0; i &lt; 4; ++i)
02542                                 {
02543                                         val[i] = <a class="code" href="a02268.html#NL3D_1_1ITexturea14">getPixelColor</a>(nX[i], nY[i]);
02544                                 }
02545                         }
02546 
02547                         finalVal.R = <a class="code" href="a02268.html#NLMISC_1_1CBitmapd4">getColorInterp</a> (x, y, val[0].R, val[1].R, val[2].R, val[3].R);
02548                         finalVal.G = <a class="code" href="a02268.html#NLMISC_1_1CBitmapd4">getColorInterp</a> (x, y, val[0].G, val[1].G, val[2].G, val[3].G);
02549                         finalVal.B = <a class="code" href="a02268.html#NLMISC_1_1CBitmapd4">getColorInterp</a> (x, y, val[0].B, val[1].B, val[2].B, val[3].B);
02550                         finalVal.A = <a class="code" href="a02268.html#NLMISC_1_1CBitmapd4">getColorInterp</a> (x, y, val[0].A, val[1].A, val[2].A, val[3].A);
02551                         finalVal /= 255.f;
02552 
02553                         <span class="keywordflow">return</span> finalVal;                        
02554                 }
02555                 <span class="keywordflow">break</span>;
02556                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>:
02557                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>:
02558                 {
02559                         
02560                         <span class="keywordtype">float</span> finalVal;
02561                         <span class="keywordtype">float</span> val[4];
02562 
02563                         <span class="keywordflow">for</span> (i = 0; i &lt; 4; ++i)
02564                                 val[i] = rBitmap[(nX[i]+nY[i]*nWidth)];
02565 
02566                         finalVal = <a class="code" href="a02268.html#NLMISC_1_1CBitmapd4">getColorInterp</a> (x, y, val[0], val[1], val[2], val[3]);
02567                         finalVal /= 255.f;
02568 
02569                         <span class="keywordflow">if</span> (this-&gt;<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>)
02570                                 <span class="keywordflow">return</span> CRGBAF (1.f, 1.f, 1.f, finalVal);
02571                         <span class="keywordflow">else</span> <span class="comment">// Luminance</span>
02572                                 <span class="keywordflow">return</span> CRGBAF (finalVal, finalVal, finalVal, 1.f);
02573                 }
02574                 <span class="keywordflow">break</span>;
02575                 <span class="keywordflow">default</span>: <span class="keywordflow">break</span>;
02576         }
02577 
02578         <span class="keywordflow">return</span> CRGBAF (0.0f, 0.0f, 0.0f, 0.0f);
02579 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea12" doxytag="NL3D::CTextureMem::getHeight" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLMISC::CBitmap::getHeight </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>numMipMap</em> = 0          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [virtual, inherited]</code></td>
        </tr>

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

<p>
Return the image height, or a mipmap height. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>mipMap</em>&nbsp;</td><td>mipmap level </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>image height (0 if mipmap not found)</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l01388">1388</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05646.html#l00236">w</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00152">NL3D::CHLSColorTexture::addMask()</a>, <a class="el" href="a05935.html#l00809">NL3D::CLodCharacterTmpBitmap::build()</a>, <a class="el" href="a05567.html#l00070">NL3D::CCoarseMeshBuild::buildBitmap()</a>, <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a05722.html#l00088">NL3D::CFontManager::computeString()</a>, <a class="el" href="a05706.html#l00393">NL3D::CFastHLSModifier::convertDDSBitmap()</a>, <a class="el" href="a06768.html#l00712">draw2dLine()</a>, <a class="el" href="a05567.html#l00367">NL3D::CCoarseMeshBuild::expand()</a>, <a class="el" href="a05642.html#l02171">NL3D::CDriverGL::fillBuffer()</a>, <a class="el" href="a05486.html#l02682">NLMISC::CBitmap::flipH()</a>, <a class="el" href="a05486.html#l02714">NLMISC::CBitmap::flipV()</a>, <a class="el" href="a06163.html#l00214">NL3D::CPatchDLMContext::generate()</a>, <a class="el" href="a05486.html#l02470">NLMISC::CBitmap::getColor()</a>, <a class="el" href="a05486.html#l03048">NLMISC::CBitmap::getDXTC1Texel()</a>, <a class="el" href="a05486.html#l03061">NLMISC::CBitmap::getDXTC3Texel()</a>, <a class="el" href="a05486.html#l03077">NLMISC::CBitmap::getDXTC5Texel()</a>, <a class="el" href="a05486.html#l02980">NLMISC::CBitmap::getRGBAPixel()</a>, <a class="el" href="a05486.html#l01412">NLMISC::CBitmap::getSize()</a>, <a class="el" href="a06525.html#l00039">NL3D::GetTextureSize()</a>, <a class="el" href="a06536.html#l00442">NL3D::CTileBank::getTileNoiseMap()</a>, <a class="el" href="a06768.html#l02927">NL3D::CZoneLighter::lightWater()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a06768.html#l00444">RenderTriangle()</a>, <a class="el" href="a05486.html#l02781">NLMISC::CBitmap::rot90CCW()</a>, <a class="el" href="a05486.html#l02746">NLMISC::CBitmap::rot90CW()</a>, <a class="el" href="a05790.html#l00092">NL3D::CHLSColorTexture::setBitmap()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>, and <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>.
<p>
<div class="fragment"><pre>01389 {
01390         <span class="keywordflow">if</span>(mipMap==0) <span class="keywordflow">return</span> <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
01391         
01392         <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a575">w</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
01393         <a class="code" href="a04558.html#a11">uint32</a> h = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
01394         <a class="code" href="a04558.html#a11">uint32</a> m = 0;
01395 
01396         <span class="keywordflow">do</span>
01397         {
01398                 m++;
01399                 <a class="code" href="a04223.html#a575">w</a> = (<a class="code" href="a04223.html#a575">w</a>+1)/2;
01400                 h = (h+1)/2;
01401                 <span class="keywordflow">if</span>(m==mipMap) <span class="keywordflow">return</span> h;
01402         }
01403         <span class="keywordflow">while</span>(<a class="code" href="a04223.html#a575">w</a>!=1 || h!=1);
01404 
01405         <span class="keywordflow">return</span> 0;
01406 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema16" doxytag="NL3D::CTextureMem::getLength" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NL3D::CTextureMem::getLength </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

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

<p>
Get length of the memory file containing the texture
<p>
Definition at line <a class="el" href="a06528.html#l00133">133</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00045">_Length</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>00133 { <span class="keywordflow">return</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMemr4">_Length</a>; } 
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_0" doxytag="NL3D::CTextureMem::getMagFilter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03487.html#NL3D_1_1ITexturew29">TMagFilter</a> NL3D::ITexture::getMagFilter </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06506.html#l00214">214</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00410">NL3D::ITexture::_MagFilter</a>, and <a class="el" href="a06506.html#l00148">NL3D::ITexture::TMagFilter</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00941">NL3D::CDriverGL::activateTexture()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00214 {<span class="keywordflow">return</span> _MagFilter;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_1" doxytag="NL3D::CTextureMem::getMinFilter" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03487.html#NL3D_1_1ITexturew30">TMinFilter</a> NL3D::ITexture::getMinFilter </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06506.html#l00215">215</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00409">NL3D::ITexture::_MinFilter</a>, and <a class="el" href="a06506.html#l00159">NL3D::ITexture::TMinFilter</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00941">NL3D::CDriverGL::activateTexture()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00215 {<span class="keywordflow">return</span> _MinFilter;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea13" doxytag="NL3D::CTextureMem::getMipMapCount" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLMISC::CBitmap::getMipMapCount </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</code></td>
        </tr>

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

<p>
Return the number of mipmaps. Level0 is a mipmap... <dl compact><dt><b>Returns:</b></dt><dd>number of mipmaps. 0 if no image at all. 1 if no mipmaping (for the base level).</dd></dl>

<p>
Definition at line <a class="el" href="a05487.html#l00369">369</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00152">NL3D::CHLSColorTexture::addMask()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a05790.html#l00092">NL3D::CHLSColorTexture::setBitmap()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>, <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>, and <a class="el" href="a05463.html#l00619">NL3D::CAsyncTextureManager::validDXTCMipMap()</a>.
<p>
<div class="fragment"><pre>00370         {
00371                 <span class="keywordflow">return</span> <a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>; 
00372         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea14" doxytag="NL3D::CTextureMem::getPixelColor" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03337.html">CRGBA</a> NLMISC::CBitmap::getPixelColor </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a14">sint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a14">sint</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>numMipMap</em> = 0</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"> const<code> [inherited]</code></td>
        </tr>

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

<p>
Get the pixel at the given coorrdinate. Works in RGBA and DXTC modes. Outside of the bitmap it returns Black (or if mipmap is not found)
<p>
Definition at line <a class="el" href="a05486.html#l03134">3134</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05486.html#l03048">NLMISC::CBitmap::getDXTC1Texel()</a>, <a class="el" href="a05486.html#l03061">NLMISC::CBitmap::getDXTC3Texel()</a>, <a class="el" href="a05486.html#l03077">NLMISC::CBitmap::getDXTC5Texel()</a>, <a class="el" href="a05486.html#l02980">NLMISC::CBitmap::getRGBAPixel()</a>, <a class="el" href="a05622.html#l00416">nlstop</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a05981.html#l00104">sint</a>, <a class="el" href="a05981.html#l00100">uint32</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="a05486.html#l02470">NLMISC::CBitmap::getColor()</a>.
<p>
<div class="fragment"><pre>03135 {
03136         
03137         <span class="keywordflow">switch</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>)
03138         {
03139                 <span class="keywordflow">case</span> <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>:      
03140                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapd5">getRGBAPixel</a>(x, y, numMipMap);           
03141                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew6">DXTC1</a>:
03142                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew7">DXTC1Alpha</a>: 
03143                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1926_0">getDXTC1Texel</a>(x, y, numMipMap);
03144                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew8">DXTC3</a>:
03145                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1926_1">getDXTC3Texel</a>(x, y, numMipMap);
03146                 <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew9">DXTC5</a>:
03147                         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapz1926_2">getDXTC5Texel</a>(x, y, numMipMap);
03148                 <span class="keywordflow">default</span>:
03149                         <a class="code" href="a04199.html#a12">nlstop</a>;
03150                 <span class="keywordflow">break</span>;
03151         }
03152         <span class="keywordflow">return</span> CRGBA::Black;
03153 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea15" doxytag="NL3D::CTextureMem::getPixelFormat" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a> NLMISC::CBitmap::getPixelFormat </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</code></td>
        </tr>

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

<p>
Return the format of pixels stored at the present time in the object buffer. <dl compact><dt><b>Returns:</b></dt><dd>Pixel format (rgba luminance alpha alphaLuminance dxtc1 dxtc1Alpha dxtc3 dxtc5)</dd></dl>

<p>
Definition at line <a class="el" href="a05487.html#l00335">335</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
References <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>.
<p>
Referenced by <a class="el" href="a05706.html#l00393">NL3D::CFastHLSModifier::convertDDSBitmap()</a>, <a class="el" href="a05706.html#l00414">NL3D::CFastHLSModifier::convertRGBABitmap()</a>, <a class="el" href="a06525.html#l00178">NL3D::CTextureGrouped::doGenerate()</a>, <a class="el" href="a05642.html#l02171">NL3D::CDriverGL::fillBuffer()</a>, <a class="el" href="a05652.html#l00170">NL3D::getGlSrcTextureFormat()</a>, <a class="el" href="a05652.html#l00099">NL3D::CDriverGL::getGlTextureFormat()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>, <a class="el" href="a05790.html#l00092">NL3D::CHLSColorTexture::setBitmap()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a05463.html#l00361">NL3D::CAsyncTextureManager::update()</a>, <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>, <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>, and <a class="el" href="a05463.html#l00619">NL3D::CAsyncTextureManager::validDXTCMipMap()</a>.
<p>
<div class="fragment"><pre>00336         {
00337                 <span class="keywordflow">return</span> <a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>; 
00338         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez1927_0" doxytag="NL3D::CTextureMem::getPixels" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="a03000.html">CObjectVector</a>&lt;<a class="el" href="a04558.html#a7">uint8</a>&gt;&amp; NLMISC::CBitmap::getPixels </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>numMipMap</em> = 0          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a05487.html#l00313">313</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
References <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>00314         {
00315                 <span class="comment">//nlassert (numMipMap&lt;=_MipMapCount);</span>
00316                 <span class="keywordflow">return</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[numMipMap]; 
00317         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez1927_1" doxytag="NL3D::CTextureMem::getPixels" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03000.html">CObjectVector</a>&lt;<a class="el" href="a04558.html#a7">uint8</a>&gt;&amp; NLMISC::CBitmap::getPixels </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>numMipMap</em> = 0          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</code></td>
        </tr>

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

<p>
Return the pixels buffer of the image, or of one of its mipmap. Return a reference of an array in pixel format get with <a class="el" href="a02268.html#NL3D_1_1ITexturea15">getPixelFormat()</a>. <dl compact><dt><b>Returns:</b></dt><dd><a class="el" href="a03000.html">CObjectVector&lt;uint8&gt;</a>&amp; RGBA pixels</dd></dl>

<p>
Definition at line <a class="el" href="a05487.html#l00308">308</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
References <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00152">NL3D::CHLSColorTexture::addMask()</a>, <a class="el" href="a05935.html#l00809">NL3D::CLodCharacterTmpBitmap::build()</a>, <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a05790.html#l00337">NL3D::CHLSColorTexture::buildColorVersion()</a>, <a class="el" href="a05706.html#l00252">NL3D::CFastHLSModifier::convertDDSBitmapDXTC1Or1A()</a>, <a class="el" href="a05706.html#l00354">NL3D::CFastHLSModifier::convertDDSBitmapDXTC3Or5()</a>, <a class="el" href="a05706.html#l00414">NL3D::CFastHLSModifier::convertRGBABitmap()</a>, <a class="el" href="a06515.html#l00241">NL3D::CTextureDLM::copyRect()</a>, <a class="el" href="a06523.html#l00067">NL3D::CTextureFont::CTextureFont()</a>, <a class="el" href="a06527.html#l00045">doGenerate()</a>, <a class="el" href="a06517.html#l00101">NL3D::CTextureEmboss::doGenerate()</a>, <a class="el" href="a06511.html#l00277">NL3D::CTextureBump::doGenerate()</a>, <a class="el" href="a06768.html#l00712">draw2dLine()</a>, <a class="el" href="a06523.html#l00133">NL3D::CTextureFont::dumpTextureFont()</a>, <a class="el" href="a05567.html#l00367">NL3D::CCoarseMeshBuild::expand()</a>, <a class="el" href="a05642.html#l02171">NL3D::CDriverGL::fillBuffer()</a>, <a class="el" href="a06515.html#l00257">NL3D::CTextureDLM::fillRect()</a>, <a class="el" href="a05642.html#l02131">NL3D::CDriverGL::getBufferPart()</a>, <a class="el" href="a05486.html#l02470">NLMISC::CBitmap::getColor()</a>, <a class="el" href="a05486.html#l03048">NLMISC::CBitmap::getDXTC1Texel()</a>, <a class="el" href="a05486.html#l03061">NLMISC::CBitmap::getDXTC3Texel()</a>, <a class="el" href="a05486.html#l03077">NLMISC::CBitmap::getDXTC5Texel()</a>, <a class="el" href="a05486.html#l02980">NLMISC::CBitmap::getRGBAPixel()</a>, <a class="el" href="a06536.html#l00442">NL3D::CTileBank::getTileNoiseMap()</a>, <a class="el" href="a06768.html#l02927">NL3D::CZoneLighter::lightWater()</a>, <a class="el" href="a06515.html#l00273">NL3D::CTextureDLM::modulateAndfillRect565()</a>, <a class="el" href="a06515.html#l00305">NL3D::CTextureDLM::modulateAndfillRect8888()</a>, <a class="el" href="a06515.html#l00335">NL3D::CTextureDLM::modulateConstantAndfillRect()</a>, <a class="el" href="a06519.html#l00465">NL3D::CTextureFar::rebuildPatch()</a>, <a class="el" href="a06768.html#l00444">RenderTriangle()</a>, <a class="el" href="a05790.html#l00092">NL3D::CHLSColorTexture::setBitmap()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>.
<p>
<div class="fragment"><pre>00309         { 
00310                 <span class="comment">//nlassert (numMipMap&lt;=_MipMapCount);</span>
00311                 <span class="keywordflow">return</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[numMipMap];
00312         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema20" doxytag="NL3D::CTextureMem::getPointer" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a>* NL3D::CTextureMem::getPointer </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

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

<p>
Get the Pointer of the memory file containing the texture.
<p>
Definition at line <a class="el" href="a06528.html#l00127">127</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a05981.html#l00096">uint8</a>.
<p>
<div class="fragment"><pre>00127 { <span class="keywordflow">return</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>; } 
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NLGEORGES_1_1UTypea8" doxytag="NL3D::CTextureMem::getRefCount" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a14">sint</a>&amp; NLMISC::CRefCount::getRefCount </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06402.html#l00070">70</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>.
<p>
References <a class="el" href="a06402.html#l00079">NLMISC::CRefCount::crefs</a>, and <a class="el" href="a05981.html#l00104">sint</a>.
<p>
<div class="fragment"><pre>00071         {
00072                 <span class="keywordflow">return</span>  <a class="code" href="a02209.html#NLGEORGES_1_1UTypeo0">crefs</a>;
00073         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea17" doxytag="NL3D::CTextureMem::getReleasable" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NL3D::ITexture::getReleasable </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</code></td>
        </tr>

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

<p>
Return whether texture can be released. If it returns true, the driver will release the texture after generate it and upload it into the videomemory by calling <a class="el" href="a03487.html#NL3D_1_1ITexturea28">release()</a>. If it returns false, the driver won't release the texture.<p>
<dl compact><dt><b>Returns:</b></dt><dd>true if texture can be released, false else </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03487.html#NL3D_1_1ITexturea41">setReleasable()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a></dd></dl>

<p>
Definition at line <a class="el" href="a06506.html#l00267">267</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00405">NL3D::ITexture::_Releasable</a>.
<p>
Referenced by <a class="el" href="a06511.html#l00382">NL3D::CTextureBump::getNormalizationFactor()</a>, <a class="el" href="a06525.html#l00039">NL3D::GetTextureSize()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>.
<p>
<div class="fragment"><pre>00267 { <span class="keywordflow">return</span> _Releasable; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema23" doxytag="NL3D::CTextureMem::getShareName" ></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"> virtual std::string NL3D::CTextureMem::getShareName </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
        </tr>

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

<p>
inherited from <a class="el" href="a03487.html">ITexture</a>. 
<p>

<p>
Reimplemented from <a class="el" href="a03487.html#NL3D_1_1ITexturea18">NL3D::ITexture</a>.
<p>
Definition at line <a class="el" href="a06528.html#l00154">154</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00049">_ShareName</a>, and <a class="el" href="a05622.html#l00290">nlassert</a>.
<p>
<div class="fragment"><pre>00155         {
00156                 <a class="code" href="a04199.html#a6">nlassert</a>(!<a class="code" href="a03511.html#NL3D_1_1CTextureMemr5">_ShareName</a>.empty());
00157                 <span class="keywordflow">return</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMemr5">_ShareName</a>;
00158         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea19" doxytag="NL3D::CTextureMem::getSize" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLMISC::CBitmap::getSize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>numMipMap</em> = 0          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inherited]</code></td>
        </tr>

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

<p>
Return the size (in pixels) of the image: &lt;=&gt; <a class="el" href="a02268.html#NL3D_1_1ITexturea12">getHeight()</a>*getWidth(). <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>mipMap</em>&nbsp;</td><td>mipmap level </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>image size (0 if mipmap not found)</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l01412">1412</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05486.html#l01388">NLMISC::CBitmap::getHeight()</a>, <a class="el" href="a05486.html#l01363">NLMISC::CBitmap::getWidth()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
Referenced by <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a05463.html#l00361">NL3D::CAsyncTextureManager::update()</a>, and <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>.
<p>
<div class="fragment"><pre>01413 {
01414         <span class="keywordflow">return</span> <a class="code" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a>(numMipMap)*<a class="code" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a>(numMipMap);
01415 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_2" doxytag="NL3D::CTextureMem::getUploadFormat" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03487.html#NL3D_1_1ITexturew32">TUploadFormat</a> NL3D::ITexture::getUploadFormat </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06506.html#l00212">212</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00406">NL3D::ITexture::_UploadFormat</a>, and <a class="el" href="a06506.html#l00125">NL3D::ITexture::TUploadFormat</a>.
<p>
Referenced by <a class="el" href="a06511.html#l00277">NL3D::CTextureBump::doGenerate()</a>, <a class="el" href="a05652.html#l00099">NL3D::CDriverGL::getGlTextureFormat()</a>, and <a class="el" href="a05639.html#l00277">NL3D::IDriver::getTextureShareName()</a>.
<p>
<div class="fragment"><pre>00212 {<span class="keywordflow">return</span> _UploadFormat;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea20" doxytag="NL3D::CTextureMem::getWidth" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLMISC::CBitmap::getWidth </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>numMipMap</em> = 0          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [virtual, inherited]</code></td>
        </tr>

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

<p>
Return the image width, or a mipmap width. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>mipMap</em>&nbsp;</td><td>mipmap level </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>image width (0 if mipmap not found)</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l01363">1363</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a05646.html#l00236">w</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00152">NL3D::CHLSColorTexture::addMask()</a>, <a class="el" href="a06372.html#l00957">NL3D::CShadowMapManager::allocateTexture()</a>, <a class="el" href="a05935.html#l00809">NL3D::CLodCharacterTmpBitmap::build()</a>, <a class="el" href="a05567.html#l00070">NL3D::CCoarseMeshBuild::buildBitmap()</a>, <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a05722.html#l00088">NL3D::CFontManager::computeString()</a>, <a class="el" href="a05706.html#l00393">NL3D::CFastHLSModifier::convertDDSBitmap()</a>, <a class="el" href="a06515.html#l00241">NL3D::CTextureDLM::copyRect()</a>, <a class="el" href="a06768.html#l00712">draw2dLine()</a>, <a class="el" href="a05567.html#l00367">NL3D::CCoarseMeshBuild::expand()</a>, <a class="el" href="a05642.html#l02171">NL3D::CDriverGL::fillBuffer()</a>, <a class="el" href="a06515.html#l00257">NL3D::CTextureDLM::fillRect()</a>, <a class="el" href="a05486.html#l02682">NLMISC::CBitmap::flipH()</a>, <a class="el" href="a05486.html#l02714">NLMISC::CBitmap::flipV()</a>, <a class="el" href="a06163.html#l00214">NL3D::CPatchDLMContext::generate()</a>, <a class="el" href="a05486.html#l02470">NLMISC::CBitmap::getColor()</a>, <a class="el" href="a05486.html#l03048">NLMISC::CBitmap::getDXTC1Texel()</a>, <a class="el" href="a05486.html#l03061">NLMISC::CBitmap::getDXTC3Texel()</a>, <a class="el" href="a05486.html#l03077">NLMISC::CBitmap::getDXTC5Texel()</a>, <a class="el" href="a05486.html#l02980">NLMISC::CBitmap::getRGBAPixel()</a>, <a class="el" href="a05486.html#l01412">NLMISC::CBitmap::getSize()</a>, <a class="el" href="a06525.html#l00039">NL3D::GetTextureSize()</a>, <a class="el" href="a06536.html#l00442">NL3D::CTileBank::getTileNoiseMap()</a>, <a class="el" href="a06768.html#l02927">NL3D::CZoneLighter::lightWater()</a>, <a class="el" href="a06515.html#l00273">NL3D::CTextureDLM::modulateAndfillRect565()</a>, <a class="el" href="a06515.html#l00305">NL3D::CTextureDLM::modulateAndfillRect8888()</a>, <a class="el" href="a06515.html#l00335">NL3D::CTextureDLM::modulateConstantAndfillRect()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a06768.html#l00444">RenderTriangle()</a>, <a class="el" href="a05486.html#l02781">NLMISC::CBitmap::rot90CCW()</a>, <a class="el" href="a05486.html#l02746">NLMISC::CBitmap::rot90CW()</a>, <a class="el" href="a05790.html#l00092">NL3D::CHLSColorTexture::setBitmap()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>, and <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>.
<p>
<div class="fragment"><pre>01364 {
01365         <span class="keywordflow">if</span>(mipMap==0) <span class="keywordflow">return</span> <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
01366         
01367         <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a575">w</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
01368         <a class="code" href="a04558.html#a11">uint32</a> h = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
01369         <a class="code" href="a04558.html#a11">uint32</a> m = 0;
01370         
01371         <span class="keywordflow">do</span>
01372         {
01373                 m++;
01374                 <a class="code" href="a04223.html#a575">w</a> = (<a class="code" href="a04223.html#a575">w</a>+1)/2;
01375                 h = (h+1)/2;
01376                 <span class="keywordflow">if</span>(m==mipMap) <span class="keywordflow">return</span> <a class="code" href="a04223.html#a575">w</a>;
01377         }
01378         <span class="keywordflow">while</span>(<a class="code" href="a04223.html#a575">w</a>!=1 || h!=1);
01379 
01380         <span class="keywordflow">return</span> 0;
01381 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_3" doxytag="NL3D::CTextureMem::getWrapS" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03487.html#NL3D_1_1ITexturew33">TWrapMode</a> NL3D::ITexture::getWrapS </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06506.html#l00204">204</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00407">NL3D::ITexture::_WrapS</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00941">NL3D::CDriverGL::activateTexture()</a>, <a class="el" href="a06768.html#l01820">NL3D::CZoneLighter::getTexture()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00204 {<span class="keywordflow">return</span> _WrapS;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_4" doxytag="NL3D::CTextureMem::getWrapT" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03487.html#NL3D_1_1ITexturew33">TWrapMode</a> NL3D::ITexture::getWrapT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06506.html#l00205">205</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00408">NL3D::ITexture::_WrapT</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00941">NL3D::CDriverGL::activateTexture()</a>, <a class="el" href="a06768.html#l01820">NL3D::CZoneLighter::getTexture()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00205 {<span class="keywordflow">return</span> _WrapT;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea21" doxytag="NL3D::CTextureMem::isAllInvalidated" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NL3D::ITexture::isAllInvalidated </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</code></td>
        </tr>

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

<p>
Return true if ALL the texture is invalidate, else return false.
<p>
Definition at line <a class="el" href="a06506.html#l00428">428</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00422">NL3D::ITexture::_ListInvalidRect</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a06506.html#l00242">NL3D::ITexture::touchRect()</a>.
<p>
<div class="fragment"><pre>00429         {
00430                 <span class="keywordflow">return</span>  <a class="code" href="a03487.html#NL3D_1_1ITexturep4">_Touched</a>&amp;&amp;(<a class="code" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a>.begin()==<a class="code" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a>.end());
00431         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea22" doxytag="NL3D::CTextureMem::isBumpMap" ></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"> virtual bool NL3D::ITexture::isBumpMap </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
        </tr>

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

<p>

<p>
Reimplemented in <a class="el" href="a03489.html#NL3D_1_1CTextureBumpa30">NL3D::CTextureBump</a>.
<p>
Definition at line <a class="el" href="a06506.html#l00380">380</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a05648.html#l01956">NL3D::CDriverGL::setupWaterPassARB()</a>, <a class="el" href="a05648.html#l02064">NL3D::CDriverGL::setupWaterPassNV20()</a>, and <a class="el" href="a05648.html#l01876">NL3D::CDriverGL::setupWaterPassR200()</a>.
<p>
<div class="fragment"><pre>00380 { <span class="keywordflow">return</span> <span class="keyword">false</span>; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema28" doxytag="NL3D::CTextureMem::isDeletable" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NL3D::CTextureMem::isDeletable </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline]</code></td>
        </tr>

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

<p>
Return true if the class handle the delete of the pointer.
<p>
Definition at line <a class="el" href="a06528.html#l00139">139</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00046">_Delete</a>.
<p>
<div class="fragment"><pre>00139 { <span class="keywordflow">return</span> <a class="code" href="a03511.html#NL3D_1_1CTextureMemr2">_Delete</a>; } 
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea23" doxytag="NL3D::CTextureMem::isGrayscaleAsAlpha" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NLMISC::CBitmap::isGrayscaleAsAlpha </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</code></td>
        </tr>

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

<p>
Tell if the bitmap loads grayscale bitmap as alpha or luminance format.<p>
<dl compact><dt><b>Returns:</b></dt><dd>true if the bitmap loads grayscale bitmaps as alpha, false if it loads grayscale bitmaps as luminance.</dd></dl>

<p>
Definition at line <a class="el" href="a05487.html#l00483">483</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
References <a class="el" href="a05487.html#l00094">NLMISC::CBitmap::_LoadGrayscaleAsAlpha</a>.
<p>
<div class="fragment"><pre>00484         {
00485                 <span class="keywordflow">return</span> <a class="code" href="a02268.html#NL3D_1_1ITexturep2">_LoadGrayscaleAsAlpha</a>;
00486         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea24" doxytag="NL3D::CTextureMem::isSelectable" ></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"> virtual bool NL3D::ITexture::isSelectable </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
        </tr>

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

<p>
Test wether this texture is selectable. 
<p>

<p>
Reimplemented in <a class="el" href="a03492.html#NL3D_1_1CTextureCubea28">NL3D::CTextureCube</a>, and <a class="el" href="a03512.html#NL3D_1_1CTextureMultiFilea28">NL3D::CTextureMultiFile</a>.
<p>
Definition at line <a class="el" href="a06506.html#l00363">363</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a05993.html#l00268">NL3D::CMeshBaseInstance::selectTextureSet()</a>.
<p>
<div class="fragment"><pre>00363 { <span class="keywordflow">return</span> <span class="keyword">false</span>; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez982_0" doxytag="NL3D::CTextureMem::isTextureCube" ></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"> virtual bool NL3D::ITexture::isTextureCube </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual, inherited]</code></td>
        </tr>

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

<p>
Does this texture is a cube texture. 
<p>

<p>
Reimplemented in <a class="el" href="a03492.html#NL3D_1_1CTextureCubea29">NL3D::CTextureCube</a>.
<p>
Definition at line <a class="el" href="a06506.html#l00376">376</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00941">NL3D::CDriverGL::activateTexture()</a>, <a class="el" href="a05648.html#l00080">NL3D::convTexAddr()</a>, <a class="el" href="a05642.html#l02185">NL3D::CDriverGL::copyFrameBufferToTexture()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a05648.html#l00117">NL3D::CDriverGL::setTextureEnvFunction()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>, and <a class="el" href="a05652.html#l00930">NL3D::CDriverGL::uploadTextureCube()</a>.
<p>
<div class="fragment"><pre>00376 { <span class="keywordflow">return</span> <span class="keyword">false</span>; }       
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea25" doxytag="NL3D::CTextureMem::load" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> NLMISC::CBitmap::load </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>f</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>mipMapSkip</em> = 0</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inherited]</code></td>
        </tr>

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

<p>
Read a bitmap(TGA or DDS) from an <a class="el" href="a02270.html">IStream</a>. Bitmap supported are DDS (DXTC1, DXTC1 with Alpha, DXTC3, DXTC5, and uncompressed TGA (24 and 32 bits). <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>IStream</em>&nbsp;</td><td>The stream must be in reading mode. </td></tr>
    <tr><td valign=top><em>mipMapSkip</em>&nbsp;</td><td>if the file is a DDS with mipMap. N=mipMapSkip mipmaps are skipped. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>image depth (24 or 32), or 0 if load failed </dd></dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>ESeekFailed</em>&nbsp;</td><td>: seek has failed</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05486.html#l00109">109</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw0">NLMISC::IStream::begin</a>, <a class="el" href="a05487.html#l00059">NLMISC::DDS</a>, <a class="el" href="a05646.html#l01013">depth</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>, <a class="el" href="a05486.html#l01800">NLMISC::CBitmap::readTGA()</a>, <a class="el" href="a06461.html#l00401">NLMISC::IStream::seek()</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00098">uint16</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l01013">width</a>.
<p>
Referenced by <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, and <a class="el" href="a06527.html#l00045">doGenerate()</a>.
<p>
<div class="fragment"><pre>00110 {
00111         <a class="code" href="a04199.html#a6">nlassert</a>(f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()); 
00112         
00113         <span class="comment">// testing if DDS</span>
00114         <a class="code" href="a04558.html#a11">uint32</a> fileType = 0;;
00115         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(fileType);
00116         <span class="keywordflow">if</span>(fileType == <a class="code" href="a05378.html#a41">DDS</a>)
00117         {
00118 <span class="preprocessor">#ifdef NEL_ALL_BITMAP_WHITE</span>
00119 <span class="preprocessor"></span>                <a class="code" href="a04558.html#a7">uint8</a> result = <a class="code" href="a02268.html#NLMISC_1_1CBitmapd6">readDDS</a>(f, mipMapSkip);
00120                 MakeWhite (*<span class="keyword">this</span>);
00121                 <span class="keywordflow">return</span> result;
00122 <span class="preprocessor">#else // NEL_ALL_BITMAP_WHITE</span>
00123 <span class="preprocessor"></span>                <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapd6">readDDS</a>(f, mipMapSkip);
00124 <span class="preprocessor">#endif // NEL_ALL_BITMAP_WHITE</span>
00125 <span class="preprocessor"></span>        }
00126         <span class="comment">// assuming it's TGA</span>
00127         <span class="keywordflow">else</span> 
00128         {
00129                 <a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_0">NLMISC::IStream::TSeekOrigin</a> origin= f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_0NLMISC_1_1IStreamw0">begin</a>;
00130                 <span class="keywordflow">if</span>(!f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_3">seek</a> (0, origin))
00131                 {
00132                         <span class="keywordflow">throw</span> ESeekFailed();
00133                 }
00134 
00135                 <span class="comment">// Reading header, </span>
00136                 <span class="comment">// To make sure that the bitmap is TGA, we check imageType and imageDepth.</span>
00137                 <a class="code" href="a04558.html#a7">uint8</a>   lengthID;
00138                 <a class="code" href="a04558.html#a7">uint8</a>   cMapType;
00139                 <a class="code" href="a04558.html#a7">uint8</a>   imageType;
00140                 <a class="code" href="a04558.html#a9">uint16</a>  tgaOrigin;
00141                 <a class="code" href="a04558.html#a9">uint16</a>  length;
00142                 <a class="code" href="a04558.html#a7">uint8</a>   <a class="code" href="a04223.html#a634">depth</a>;
00143                 <a class="code" href="a04558.html#a9">uint16</a>  xOrg;
00144                 <a class="code" href="a04558.html#a9">uint16</a>  yOrg;
00145                 <a class="code" href="a04558.html#a9">uint16</a>  <a class="code" href="a04223.html#a632">width</a>;
00146                 <a class="code" href="a04558.html#a9">uint16</a>  <a class="code" href="a04223.html#a633">height</a>;
00147                 <a class="code" href="a04558.html#a7">uint8</a>   imageDepth;
00148                 <a class="code" href="a04558.html#a7">uint8</a>   desc;
00149                 
00150                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(lengthID);
00151                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(cMapType);
00152                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(imageType);
00153                 <span class="keywordflow">if</span>(imageType!=2 &amp;&amp; imageType!=3 &amp;&amp; imageType!=10 &amp;&amp; imageType!=11) <span class="keywordflow">return</span> 0;
00154                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(tgaOrigin);
00155                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(length);
00156                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(depth);
00157                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(xOrg);
00158                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(yOrg);
00159                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(width);
00160                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(height);
00161                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(imageDepth);
00162                 <span class="keywordflow">if</span>(imageDepth!=8 &amp;&amp; imageDepth!=16 &amp;&amp; imageDepth!=24 &amp;&amp; imageDepth!=32) <span class="keywordflow">return</span> 0;
00163                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(desc);
00164 
00165                 <span class="keywordflow">if</span>(!f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_3">seek</a> (0, origin))
00166                 {
00167                         <span class="keywordflow">throw</span> ESeekFailed();
00168                 }
00169 <span class="preprocessor">#ifdef NEL_ALL_BITMAP_WHITE</span>
00170 <span class="preprocessor"></span>                <a class="code" href="a04558.html#a7">uint8</a> result = <a class="code" href="a02268.html#NLMISC_1_1CBitmapd7">readTGA</a>(f);
00171                 MakeWhite (*<span class="keyword">this</span>);
00172                 <span class="keywordflow">return</span> result;
00173 <span class="preprocessor">#else // NEL_ALL_BITMAP_WHITE</span>
00174 <span class="preprocessor"></span>                <span class="keywordflow">return</span> <a class="code" href="a02268.html#NLMISC_1_1CBitmapd7">readTGA</a>(f);
00175 <span class="preprocessor">#endif // NEL_ALL_BITMAP_WHITE</span>
00176 <span class="preprocessor"></span>                
00177         }       
00178 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea26" doxytag="NL3D::CTextureMem::loadGrayscaleAsAlpha" ></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 NLMISC::CBitmap::loadGrayscaleAsAlpha </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>loadAsAlpha</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</code></td>
        </tr>

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

<p>
Tell the bitmap to load grayscale bitmap as alpha or luminance format.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>loadAsAlpha</em>&nbsp;</td><td>is true to load grayscale bitmaps as alpha. false to load grayscale bitmaps as luminance. default value is true.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05487.html#l00472">472</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
References <a class="el" href="a05487.html#l00094">NLMISC::CBitmap::_LoadGrayscaleAsAlpha</a>.
<p>
Referenced by <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, and <a class="el" href="a06536.html#l00442">NL3D::CTileBank::getTileNoiseMap()</a>.
<p>
<div class="fragment"><pre>00473         {
00474                 <a class="code" href="a02268.html#NL3D_1_1ITexturep2">_LoadGrayscaleAsAlpha</a>=loadAsAlpha;
00475         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturee0" doxytag="NL3D::CTextureMem::loadSize" ></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 NLMISC::CBitmap::loadSize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>path</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>retWidth</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>retHeight</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static, inherited]</code></td>
        </tr>

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

<p>
same than other <a class="el" href="a02268.html#NL3D_1_1ITexturee1">loadSize()</a>, but with a pathName. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02268.html#NL3D_1_1ITexturee1">loadSize()</a></dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l02671">2671</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05486.html#l02582">NLMISC::CBitmap::loadSize()</a>, <a class="el" href="a05708.html#l00135">NLMISC::CIFile::open()</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>02672 {
02673         retWidth= 0;
02674         retHeight= 0;
02675 
02676         <a class="code" href="a02653.html">CIFile</a>          f(path);
02677         <span class="keywordflow">if</span>(f.<a class="code" href="a02653.html#NLMISC_1_1CIFilea12">open</a>(path))
02678                 <a class="code" href="a02268.html#NL3D_1_1ITexturee1">loadSize</a>(f, retWidth, retHeight);
02679 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturee1" doxytag="NL3D::CTextureMem::loadSize" ></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 NLMISC::CBitmap::loadSize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>f</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>height</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static, inherited]</code></td>
        </tr>

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

<p>
Determinate the bitmap size from a bitmap(TGA or DDS) from an <a class="el" href="a02270.html">IStream</a>. load just header of the file. Bitmap supported are DDS (DXTC1, DXTC1 with Alpha, DXTC3, DXTC5, and uncompressed TGA (24 and 32 bits). NB: at the end, f is seeked to begin. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>IStream</em>&nbsp;</td><td>The stream must be in reading mode. </td></tr>
    <tr><td valign=top><em>width</em>&nbsp;</td><td>the width of the image. 0 if fails. </td></tr>
    <tr><td valign=top><em>height</em>&nbsp;</td><td>the height of the image. 0 if fails. </td></tr>
  </table>
</dl>
<dl compact><dt><b>Exceptions:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>ESeekFailed</em>&nbsp;</td><td>: seek has failed</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05486.html#l02582">2582</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00059">NLMISC::DDS</a>, <a class="el" href="a05487.html#l00064">DDSD_LINEARSIZE</a>, <a class="el" href="a05646.html#l01013">depth</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a06461.html#l00401">NLMISC::IStream::seek()</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05646.html#l00645">size</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00098">uint16</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l01013">width</a>.
<p>
Referenced by <a class="el" href="a05486.html#l02671">NLMISC::CBitmap::loadSize()</a>.
<p>
<div class="fragment"><pre>02583 {
02584         retWidth= 0;
02585         retHeight= 0;
02586 
02587 
02588         <a class="code" href="a04199.html#a6">nlassert</a>(f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()); 
02589         
02590         <span class="comment">// testing if DDS</span>
02591         <a class="code" href="a04558.html#a11">uint32</a> fileType = 0;
02592         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(fileType);
02593         <span class="keywordflow">if</span>(fileType == <a class="code" href="a05378.html#a41">DDS</a>)
02594         {
02595                 <span class="comment">// read entire DDS header.</span>
02596                 <a class="code" href="a04558.html#a11">uint32</a> <a class="code" href="a04223.html#a587">size</a> = 0;
02597                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(size); <span class="comment">// size in Bytes of header(without "DDS")</span>
02598                 <a class="code" href="a04558.html#a11">uint32</a> * _DDSSurfaceDesc = <span class="keyword">new</span> <a class="code" href="a04558.html#a11">uint32</a>[<a class="code" href="a04223.html#a587">size</a>]; 
02599                 std::auto_ptr&lt;uint32&gt; _DDSSurfaceDescAuto(_DDSSurfaceDesc);
02600                 _DDSSurfaceDesc[0]= <a class="code" href="a04223.html#a587">size</a>;
02601 
02602                 <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i= 0; i&lt;<a class="code" href="a04223.html#a587">size</a>/4 - 1; i++)
02603                 {
02604                         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(_DDSSurfaceDesc[i+1]);
02605                 }
02606                 
02607                 <span class="comment">// flags determines which members of the header structure contain valid data</span>
02608                 <a class="code" href="a04558.html#a11">uint32</a> flags = _DDSSurfaceDesc[1];
02609 
02610                 <span class="comment">//verify if file have linearsize set</span>
02611                 <span class="keywordflow">if</span>(!(flags &amp; <a class="code" href="a04064.html#a1">DDSD_LINEARSIZE</a>)) 
02612                 {
02613                         <span class="keywordflow">throw</span> EDDSBadHeader();
02614                 }
02615                 
02616                 <span class="comment">//-------------- extracting and testing useful info</span>
02617                 retHeight  = _DDSSurfaceDesc[2];
02618                 retWidth = _DDSSurfaceDesc[3];
02619         }
02620         <span class="comment">// assuming it's TGA</span>
02621         <span class="keywordflow">else</span> 
02622         {
02623                 <span class="keywordflow">if</span>(!f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_3">seek</a> (0, NLMISC::IStream::begin))
02624                 {
02625                         <span class="keywordflow">throw</span> ESeekFailed();
02626                 }
02627 
02628                 <span class="comment">// Reading header, </span>
02629                 <span class="comment">// To make sure that the bitmap is TGA, we check imageType and imageDepth.</span>
02630                 <a class="code" href="a04558.html#a7">uint8</a>   lengthID;
02631                 <a class="code" href="a04558.html#a7">uint8</a>   cMapType;
02632                 <a class="code" href="a04558.html#a7">uint8</a>   imageType;
02633                 <a class="code" href="a04558.html#a9">uint16</a>  tgaOrigin;
02634                 <a class="code" href="a04558.html#a9">uint16</a>  length;
02635                 <a class="code" href="a04558.html#a7">uint8</a>   <a class="code" href="a04223.html#a634">depth</a>;
02636                 <a class="code" href="a04558.html#a9">uint16</a>  xOrg;
02637                 <a class="code" href="a04558.html#a9">uint16</a>  yOrg;
02638                 <a class="code" href="a04558.html#a9">uint16</a>  <a class="code" href="a04223.html#a632">width</a>;
02639                 <a class="code" href="a04558.html#a9">uint16</a>  <a class="code" href="a04223.html#a633">height</a>;
02640                 <a class="code" href="a04558.html#a7">uint8</a>   imageDepth;
02641                 <a class="code" href="a04558.html#a7">uint8</a>   desc;
02642                 
02643                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(lengthID);
02644                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(cMapType);
02645                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(imageType);
02646                 <span class="keywordflow">if</span>(imageType!=2 &amp;&amp; imageType!=3 &amp;&amp; imageType!=10 &amp;&amp; imageType!=11) <span class="keywordflow">return</span>;
02647                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(tgaOrigin);
02648                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(length);
02649                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(depth);
02650                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(xOrg);
02651                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(yOrg);
02652                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(width);
02653                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(height);
02654                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(imageDepth);
02655                 <span class="keywordflow">if</span>(imageDepth!=8 &amp;&amp; imageDepth!=24 &amp;&amp; imageDepth!=32) <span class="keywordflow">return</span>;
02656                 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(desc);
02657 
02658                 <span class="comment">// Ok, we have width and height.</span>
02659                 retWidth= <a class="code" href="a04223.html#a632">width</a>;
02660                 retHeight= <a class="code" href="a04223.html#a633">height</a>;
02661         }
02662 
02663         <span class="comment">// reset stream.</span>
02664         <span class="keywordflow">if</span>(!f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2036_3">seek</a> (0, NLMISC::IStream::begin))
02665         {
02666                 <span class="keywordflow">throw</span> ESeekFailed();
02667         }
02668 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea27" doxytag="NL3D::CTextureMem::makeDummy" ></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 NLMISC::CBitmap::makeDummy </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> [inherited]</code></td>
        </tr>

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

<p>
Make a dummy "?" texture. Usefull for file not found. Mode is rgba.
<p>
Definition at line <a class="el" href="a05486.html#l00184">184</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a06116.html#l00195">NLMISC::CObjectVector&lt; uint8 &gt;::getPtr()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; uint8 &gt;::resize()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a06339.html#l00066">NLMISC::CRGBA::set()</a>, <a class="el" href="a05981.html#l00104">sint</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
<p>
Referenced by <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a06250.html#l00092">NL3D::CreateDummyMesh()</a>, <a class="el" href="a06529.html#l00077">NL3D::CTextureMultiFile::doGenerate()</a>, <a class="el" href="a06527.html#l00045">doGenerate()</a>, <a class="el" href="a06525.html#l00178">NL3D::CTextureGrouped::doGenerate()</a>, <a class="el" href="a06517.html#l00101">NL3D::CTextureEmboss::doGenerate()</a>, <a class="el" href="a06511.html#l00277">NL3D::CTextureBump::doGenerate()</a>, and <a class="el" href="a06509.html#l00102">NL3D::CTextureBlend::doGenerate()</a>.
<p>
<div class="fragment"><pre>00185 {
00186         <span class="keyword">static</span>  <span class="keyword">const</span> <a class="code" href="a04558.html#a7">uint8</a>     bitmap[1024]= {  
00187                 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
00188                 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,
00189                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00190                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00191                 0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,
00192                 0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,
00193                 0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,
00194                 0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,
00195                 0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,
00196                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00197                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00198                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00199                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00200                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00201                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00202                 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
00203                 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
00204                 0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,
00205                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00206                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00207                 0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,
00208                 0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,
00209                 0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,
00210                 0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,
00211                 0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,
00212                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00213                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00214                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00215                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00216                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00217                 0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,
00218                 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
00219         }; 
00220 
00221         <a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>;
00222         <a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a> = 1;
00223         <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>= 32;
00224         <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>= 32;
00225         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0].resize(_Width*_Height*<span class="keyword">sizeof</span>(<a class="code" href="a03337.html">NLMISC::CRGBA</a>));
00226         <a class="code" href="a03337.html">NLMISC::CRGBA</a>   *pix= (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)(<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0].getPtr());
00227 
00228         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=0;i&lt;(<a class="code" href="a04558.html#a14">sint</a>)(<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>*<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>);i++)
00229         {
00230                 <span class="keywordflow">if</span>(bitmap[i])
00231                         pix[i].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa14">set</a>(255,255,255,255);
00232                 <span class="keywordflow">else</span>
00233                         pix[i].<a class="code" href="a03337.html#NLMISC_1_1CRGBAa14">set</a>(0x80,0x80,0x80,0x40);
00234         }
00235 
00236 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_5" doxytag="NL3D::CTextureMem::mipMapOff" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NL3D::ITexture::mipMapOff </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06506.html#l00216">216</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00409">NL3D::ITexture::_MinFilter</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew13">NL3D::ITexture::LinearMipMapOff</a>, and <a class="el" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew21">NL3D::ITexture::NearestMipMapOff</a>.
<p>
Referenced by <a class="el" href="a06506.html#l00217">NL3D::ITexture::mipMapOn()</a>, and <a class="el" href="a06505.html#l00100">NL3D::ITexture::setFilterMode()</a>.
<p>
<div class="fragment"><pre>00216 {<span class="keywordflow">return</span> _MinFilter==<a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew21">NearestMipMapOff</a> || _MinFilter==<a class="code" href="a03487.html#NL3D_1_1ITexturew30NL3D_1_1ITexturew13">LinearMipMapOff</a>;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_6" doxytag="NL3D::CTextureMem::mipMapOn" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NL3D::ITexture::mipMapOn </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</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="a06506.html#l00217">217</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00216">NL3D::ITexture::mipMapOff()</a>.
<p>
Referenced by <a class="el" href="a05639.html#l00277">NL3D::IDriver::getTextureShareName()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>.
<p>
<div class="fragment"><pre>00217 {<span class="keywordflow">return</span> !<a class="code" href="a03487.html#NL3D_1_1ITexturez981_5">mipMapOff</a>();}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema34" doxytag="NL3D::CTextureMem::NLMISC_DECLARE_CLASS" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> NL3D::CTextureMem::NLMISC_DECLARE_CLASS </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03511.html">CTextureMem</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

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

<p>
    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea28" doxytag="NL3D::CTextureMem::release" ></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"> virtual void NL3D::ITexture::release </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, virtual, inherited]</code></td>
        </tr>

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

<p>
Release the texure (free memory)
<p>
Reimplemented in <a class="el" href="a03488.html#NL3D_1_1CTextureBlenda33">NL3D::CTextureBlend</a>, <a class="el" href="a03489.html#NL3D_1_1CTextureBumpa39">NL3D::CTextureBump</a>, <a class="el" href="a03492.html#NL3D_1_1CTextureCubea34">NL3D::CTextureCube</a>, <a class="el" href="a03497.html#NL3D_1_1CTextureEmbossa38">NL3D::CTextureEmboss</a>, and <a class="el" href="a03509.html#NL3D_1_1CTextureGroupeda40">NL3D::CTextureGrouped</a>.
<p>
Definition at line <a class="el" href="a06506.html#l00327">327</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00404">NL3D::ITexture::_GoodGenerate</a>, and <a class="el" href="a05486.html#l01599">NLMISC::CBitmap::reset()</a>.
<p>
Referenced by <a class="el" href="a06768.html#l01820">NL3D::CZoneLighter::getTexture()</a>, <a class="el" href="a06525.html#l00039">NL3D::GetTextureSize()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, and <a class="el" href="a05463.html#l00361">NL3D::CAsyncTextureManager::update()</a>.
<p>
<div class="fragment"><pre>00327 { <a class="code" href="a02268.html#NL3D_1_1ITexturea32">reset</a>(); _GoodGenerate= <span class="keyword">false</span>; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea29" doxytag="NL3D::CTextureMem::releaseDriverSetup" ></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::ITexture::releaseDriverSetup </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> [inherited]</code></td>
        </tr>

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

<p>
Release the Driver info for this texture (if any). Call it with care. 
<p>

<p>
Definition at line <a class="el" href="a06505.html#l00064">64</a> of file <a class="el" href="a06505.html">texture.cpp</a>.
<p>
References <a class="el" href="a03321.html#NLMISC_1_1CRefPtra3">NLMISC::CRefPtr&lt; CTextureDrvShare &gt;::kill()</a>, and <a class="el" href="a06506.html#l00416">NL3D::ITexture::TextureDrvShare</a>.
<p>
Referenced by <a class="el" href="a05993.html#l00507">NL3D::CMeshBaseInstance::isAsyncTextureReady()</a>, and <a class="el" href="a06505.html#l00056">NL3D::ITexture::~ITexture()</a>.
<p>
<div class="fragment"><pre>00065 {
00066         <span class="comment">// Must kill the drv mirror of this texture.</span>
00067         <a class="code" href="a03487.html#NL3D_1_1ITextureo4">TextureDrvShare</a>.<a class="code" href="a03321.html#NLMISC_1_1CRefPtra3">kill</a>();
00068 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea30" doxytag="NL3D::CTextureMem::releaseMipMaps" ></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 NLMISC::CBitmap::releaseMipMaps </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> [inherited]</code></td>
        </tr>

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

<p>
Release the mipmaps of the bitmap if they exist. Work for any mode. <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02268.html#NL3D_1_1ITexturea3">buildMipMaps()</a>.</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l01493">1493</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a05487.html#l00070">NLMISC::MAX_MIPMAP</a>, and <a class="el" href="a05981.html#l00104">sint</a>.
<p>
Referenced by <a class="el" href="a05463.html#l00059">NL3D::CAsyncTextureManager::CTextureEntry::createCoarseBitmap()</a>, <a class="el" href="a06517.html#l00101">NL3D::CTextureEmboss::doGenerate()</a>, <a class="el" href="a06511.html#l00277">NL3D::CTextureBump::doGenerate()</a>, <a class="el" href="a05486.html#l02682">NLMISC::CBitmap::flipH()</a>, <a class="el" href="a05486.html#l02714">NLMISC::CBitmap::flipV()</a>, <a class="el" href="a05486.html#l01508">NLMISC::CBitmap::resample()</a>, <a class="el" href="a05486.html#l01545">NLMISC::CBitmap::resize()</a>, <a class="el" href="a05486.html#l02781">NLMISC::CBitmap::rot90CCW()</a>, <a class="el" href="a05486.html#l02746">NLMISC::CBitmap::rot90CW()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>01494 {
01495         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>&lt;=1) <span class="keywordflow">return</span>;
01496 
01497         <a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>=1;
01498         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a14">sint</a> i=1;i&lt;<a class="code" href="a05378.html#a43">MAX_MIPMAP</a>;i++)
01499         {
01500                 <a class="code" href="a05378.html#a381">NLMISC::contReset</a>(_Data[i]); 
01501         }
01502 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea31" doxytag="NL3D::CTextureMem::resample" ></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 NLMISC::CBitmap::resample </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>nNewWidth</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>nNewHeight</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inherited]</code></td>
        </tr>

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

<p>
Resample the bitmap. If mipmaps exist they are deleted, then rebuilt after resampling. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>nNewWidth</em>&nbsp;</td><td>width after resample </td></tr>
    <tr><td valign=top><em>nNewHeight</em>&nbsp;</td><td>height after resample</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05486.html#l01508">1508</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05486.html#l01493">NLMISC::CBitmap::releaseMipMaps()</a>, <a class="el" href="a05486.html#l01618">NLMISC::CBitmap::resamplePicture32()</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; T, EnableObjectBehavior &gt;::resize()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
Referenced by <a class="el" href="a05567.html#l00070">NL3D::CCoarseMeshBuild::buildBitmap()</a>, and <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>01509 {
01510         <a class="code" href="a04199.html#a6">nlassert</a>(PixelFormat == RGBA);
01511         <span class="keywordtype">bool</span> needRebuild = <span class="keyword">false</span>;
01512 
01513         <span class="comment">// Deleting mipmaps</span>
01514         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>&gt;1)
01515                 needRebuild = <span class="keyword">true</span>;
01516         <a class="code" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps</a>();
01517 
01518         <span class="keywordflow">if</span>(nNewWidth==0 || nNewHeight==0)
01519         {
01520                 <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a> = 0;
01521                 <span class="keywordflow">return</span>;
01522         }
01523         
01524         CObjectVector&lt;uint8&gt; pDestui;
01525         pDestui.resize(nNewWidth*nNewHeight*4);
01526         <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pDestRgba = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;pDestui[0];
01527 
01528         <a class="code" href="a02268.html#NLMISC_1_1CBitmapd8">resamplePicture32</a> ((<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;_Data[0][0], pDestRgba, _Width, _Height, nNewWidth, nNewHeight);
01529         <a class="code" href="a05378.html#a381">NLMISC::contReset</a>(_Data[0]); <span class="comment">// free memory</span>
01530         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0] =  pDestui;
01531         <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>= nNewWidth;
01532         <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>= nNewHeight;
01533 
01534         <span class="comment">// Rebuilding mipmaps</span>
01535         <span class="keywordflow">if</span>(needRebuild)
01536         {
01537                 <a class="code" href="a02268.html#NL3D_1_1ITexturea3">buildMipMaps</a>();
01538         }
01539 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea32" doxytag="NL3D::CTextureMem::reset" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void NLMISC::CBitmap::reset </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>type</em> = RGBA          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inherited]</code></td>
        </tr>

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

<p>
Reset the buffer. Mipmaps are deleted and bitmap is not valid anymore.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>type</em>&nbsp;</td><td>is the new type used for this texture</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05486.html#l01599">1599</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; uint8 &gt;::resize()</a>, <a class="el" href="a05646.html#l00244">type</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00337">NL3D::CHLSColorTexture::buildColorVersion()</a>, <a class="el" href="a05642.html#l02131">NL3D::CDriverGL::getBufferPart()</a>, and <a class="el" href="a06506.html#l00327">NL3D::ITexture::release()</a>.
<p>
<div class="fragment"><pre>01600 {
01601         <span class="keywordflow">for</span>(<a class="code" href="a04558.html#a15">uint</a> i=0; i&lt;<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>; i++)
01602         {
01603                 <a class="code" href="a05378.html#a381">NLMISC::contReset</a>(_Data[i]);
01604                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[i].resize(0);
01605         }
01606         <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a> = 0;
01607         _MipMapCount= 1;
01608         
01609         <span class="comment">// Change pixel format</span>
01610         <a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>=<a class="code" href="a04223.html#a581">type</a>;
01611 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea33" doxytag="NL3D::CTextureMem::resize" ></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 NLMISC::CBitmap::resize </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>nNewWidth</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>nNewHeight</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a02268.html#NL3D_1_1ITexturew31">TType</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>newType</em> = DonTKnow, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>resetTo0</em> = true</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inherited]</code></td>
        </tr>

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

<p>
Resize the bitmap. If mipmaps exist they are deleted and not rebuilt. This is not a crop. Pixels are lost after resize.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>nNewWidth</em>&nbsp;</td><td>width after resize </td></tr>
    <tr><td valign=top><em>nNewHeight</em>&nbsp;</td><td>height after resize </td></tr>
    <tr><td valign=top><em>newType</em>&nbsp;</td><td>is the new type of the bitmap. If don_t_know, keep the same pixel format that before. </td></tr>
    <tr><td valign=top><em>resetTo0</em>&nbsp;</td><td>by default the vector are filled by 0. set false to gain performances.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05486.html#l01545">1545</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew4">NLMISC::CBitmap::DonTKnow</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05486.html#l01493">NLMISC::CBitmap::releaseMipMaps()</a>, <a class="el" href="a05486.html#l01565">NLMISC::CBitmap::resizeMipMap()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>.
<p>
Referenced by <a class="el" href="a05486.html#l02817">NLMISC::CBitmap::blend()</a>, <a class="el" href="a05790.html#l00337">NL3D::CHLSColorTexture::buildColorVersion()</a>, <a class="el" href="a06523.html#l00067">NL3D::CTextureFont::CTextureFont()</a>, <a class="el" href="a06527.html#l00045">doGenerate()</a>, <a class="el" href="a06525.html#l00178">NL3D::CTextureGrouped::doGenerate()</a>, <a class="el" href="a05862.html#l00116">NL3D::CTextureCross::doGenerate()</a>, <a class="el" href="a06523.html#l00133">NL3D::CTextureFont::dumpTextureFont()</a>, <a class="el" href="a05567.html#l00367">NL3D::CCoarseMeshBuild::expand()</a>, and <a class="el" href="a05642.html#l02131">NL3D::CDriverGL::getBufferPart()</a>.
<p>
<div class="fragment"><pre>01546 {
01547         <span class="comment">// Deleting mipmaps</span>
01548         <a class="code" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps</a>();
01549 
01550         <span class="comment">// Change type of bitmap ?</span>
01551         <span class="keywordflow">if</span> (newType!=<a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew4">DonTKnow</a>)
01552                 <a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>=newType;
01553 
01554         <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a> = nNewWidth;
01555         <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a> = nNewHeight;
01556 
01557         <span class="comment">// resize the level 0 only.</span>
01558         <a class="code" href="a02268.html#NL3D_1_1ITexturea34">resizeMipMap</a>(0, nNewWidth, nNewHeight, resetTo0);
01559 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea34" doxytag="NL3D::CTextureMem::resizeMipMap" ></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 NLMISC::CBitmap::resizeMipMap </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>numMipMap</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>nNewWidth</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>nNewHeight</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>resetTo0</em> = true</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inherited]</code></td>
        </tr>

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

<p>
ADVANCED USE Resize a single mipmap level. <a class="el" href="a02268.html#NL3D_1_1ITexturea33">resize()</a> should have been called before. This is not a crop. Pixels are lost after resize. No validity check is made. It is the user responsabitility fo setup correct mipmap size.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>numMipMap</em>&nbsp;</td><td>id of the mipmap </td></tr>
    <tr><td valign=top><em>nNewWidth</em>&nbsp;</td><td>width after resize </td></tr>
    <tr><td valign=top><em>nNewHeight</em>&nbsp;</td><td>height after resize </td></tr>
    <tr><td valign=top><em>resetTo0</em>&nbsp;</td><td>by default the vector are filled by 0. set false to gain performances.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a05486.html#l01565">1565</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05486.html#l00070">NLMISC::CBitmap::bitPerPixels</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a06116.html#l00231">NLMISC::CObjectVector&lt; uint8 &gt;::fill()</a>, <a class="el" href="a05487.html#l00070">NLMISC::MAX_MIPMAP</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; uint8 &gt;::resize()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00337">NL3D::CHLSColorTexture::buildColorVersion()</a>, and <a class="el" href="a05486.html#l01545">NLMISC::CBitmap::resize()</a>.
<p>
<div class="fragment"><pre>01566 {
01567         <a class="code" href="a04199.html#a6">nlassert</a>(numMipMap&lt;MAX_MIPMAP);
01568 
01569         <span class="comment">// free memory</span>
01570         <a class="code" href="a05378.html#a381">NLMISC::contReset</a>(_Data[numMipMap]);
01571 
01572         <span class="comment">// DXTC compressed??</span>
01573         <span class="comment">//bool  isDXTC= PixelFormat==DXTC1 || PixelFormat==DXTC1Alpha || PixelFormat==DXTC3 || PixelFormat==DXTC5;</span>
01574         <span class="comment">// if yes, must round up width and height to 4, for allocation</span>
01575         nNewWidth= 4*((nNewWidth+3)/4);
01576         nNewHeight= 4*((nNewHeight+3)/4);
01577 
01578         <span class="comment">// resize the buffer</span>
01579         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[numMipMap].resize (((<a class="code" href="a04558.html#a11">uint32</a>)(nNewWidth*nNewHeight)*bitPerPixels[PixelFormat])/8);
01580 
01581         <span class="comment">// Fill 0?</span>
01582         <span class="keywordflow">if</span>( resetTo0 )
01583                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[numMipMap].fill(0);
01584 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea35" doxytag="NL3D::CTextureMem::rot90CCW" ></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 NLMISC::CBitmap::rot90CCW </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> [inherited]</code></td>
        </tr>

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

<p>
Rotation of the bitmap of 90 degree in counter clockwise
<p>
Definition at line <a class="el" href="a05486.html#l02781">2781</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a05486.html#l01388">NLMISC::CBitmap::getHeight()</a>, <a class="el" href="a05486.html#l01363">NLMISC::CBitmap::getWidth()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05486.html#l01493">NLMISC::CBitmap::releaseMipMaps()</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; T, EnableObjectBehavior &gt;::resize()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>02782 {
02783         <span class="keywordflow">if</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)
02784                 <span class="keywordflow">return</span>;
02785         <a class="code" href="a04558.html#a10">sint32</a> nWidth = <a class="code" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a>(0);
02786         <a class="code" href="a04558.html#a10">sint32</a> nHeight = <a class="code" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a>(0);
02787         <a class="code" href="a04558.html#a10">sint32</a> i, j;
02788         <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pSrcRgba = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][0];
02789         <span class="keywordtype">bool</span> needRebuild = <span class="keyword">false</span>;
02790 
02791         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>&gt;1)
02792                 needRebuild = <span class="keyword">true</span>;
02793         <a class="code" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps</a>();
02794 
02795         CObjectVector&lt;uint8&gt; pDestui;
02796         pDestui.resize(nWidth*nHeight*4);
02797         <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pDestRgba = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;pDestui[0];
02798 
02799         <span class="keywordflow">for</span>( j = 0; j &lt; nHeight; ++j )
02800         <span class="keywordflow">for</span>( i = 0; i &lt; nWidth;  ++i )
02801                 pDestRgba[j+i*nHeight] = pSrcRgba[nWidth-1-i+j*nWidth];
02802 
02803         <a class="code" href="a04558.html#a11">uint32</a> nTemp = <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
02804         _Width = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
02805         _Height = nTemp;
02806 
02807         <a class="code" href="a05378.html#a381">NLMISC::contReset</a>(_Data[0]); <span class="comment">// free memory</span>
02808         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0] =  pDestui;
02809         <span class="comment">// Rebuilding mipmaps</span>
02810         <span class="keywordflow">if</span>(needRebuild)
02811         {
02812                 <a class="code" href="a02268.html#NL3D_1_1ITexturea3">buildMipMaps</a>();
02813         }
02814 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea36" doxytag="NL3D::CTextureMem::rot90CW" ></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 NLMISC::CBitmap::rot90CW </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> [inherited]</code></td>
        </tr>

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

<p>
Rotation of the bitmap of 90 degree in clockwise
<p>
Definition at line <a class="el" href="a05486.html#l02746">2746</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05587.html#l00141">NLMISC::contReset()</a>, <a class="el" href="a05486.html#l01388">NLMISC::CBitmap::getHeight()</a>, <a class="el" href="a05486.html#l01363">NLMISC::CBitmap::getWidth()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05486.html#l01493">NLMISC::CBitmap::releaseMipMaps()</a>, <a class="el" href="a06116.html#l00142">NLMISC::CObjectVector&lt; T, EnableObjectBehavior &gt;::resize()</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>02747 {
02748         <span class="keywordflow">if</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)
02749                 <span class="keywordflow">return</span>;
02750         <a class="code" href="a04558.html#a10">sint32</a> nWidth = <a class="code" href="a02268.html#NL3D_1_1ITexturea20">getWidth</a>(0);
02751         <a class="code" href="a04558.html#a10">sint32</a> nHeight = <a class="code" href="a02268.html#NL3D_1_1ITexturea12">getHeight</a>(0);
02752         <a class="code" href="a04558.html#a10">sint32</a> i, j;
02753         <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pSrcRgba = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][0];
02754         <span class="keywordtype">bool</span> needRebuild = <span class="keyword">false</span>;
02755 
02756         <span class="keywordflow">if</span>(<a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>&gt;1)
02757                 needRebuild = <span class="keyword">true</span>;
02758         <a class="code" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps</a>();
02759 
02760         CObjectVector&lt;uint8&gt; pDestui;
02761         pDestui.resize(nWidth*nHeight*4);
02762         <a class="code" href="a03337.html">NLMISC::CRGBA</a> *pDestRgba = (<a class="code" href="a03337.html">NLMISC::CRGBA</a>*)&amp;pDestui[0];
02763 
02764         <span class="keywordflow">for</span>( j = 0; j &lt; nHeight; ++j )
02765         <span class="keywordflow">for</span>( i = 0; i &lt; nWidth;  ++i )
02766                 pDestRgba[j+i*nHeight] = pSrcRgba[i+(nHeight-1-j)*nWidth];
02767 
02768         <a class="code" href="a04558.html#a11">uint32</a> nTemp = <a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
02769         _Width = <a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
02770         _Height = nTemp;
02771 
02772         <a class="code" href="a05378.html#a381">NLMISC::contReset</a>(_Data[0]); <span class="comment">// free memory</span>
02773         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0] =  pDestui;
02774         <span class="comment">// Rebuilding mipmaps</span>
02775         <span class="keywordflow">if</span>(needRebuild)
02776         {
02777                 <a class="code" href="a02268.html#NL3D_1_1ITexturea3">buildMipMaps</a>();
02778         }
02779 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea37" doxytag="NL3D::CTextureMem::rotateCCW" ></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 NLMISC::CBitmap::rotateCCW </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> [inherited]</code></td>
        </tr>

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

<p>
Rotate a bitmap in CCW mode.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a02268.html#NL3D_1_1ITexturea30">releaseMipMaps()</a>.</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l02306">2306</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a05486.html#l02283">NLMISC::rotateCCW()</a>, <a class="el" href="a05981.html#l00098">uint16</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
<p>
<div class="fragment"><pre>02307 {
02308         <span class="comment">// Copy the array</span>
02309         CObjectVector&lt;uint8&gt; copy=<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0];
02310 
02311         <span class="keywordflow">switch</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a>)
02312         {
02313         <span class="keywordflow">case</span> <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>:
02314                 <a class="code" href="a05378.html#a254">NLMISC::rotateCCW</a> ((<a class="code" href="a04558.html#a11">uint32</a>*)&amp;(_Data[0][0]), (<a class="code" href="a04558.html#a11">uint32</a>*)&amp;(copy[0]), _Width, _Height);
02315                 <span class="keywordflow">break</span>;
02316         <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>:
02317         <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>:
02318                 <a class="code" href="a05378.html#a254">NLMISC::rotateCCW</a> (&amp;_Data[0][0], &amp;copy[0], _Width, _Height);
02319                 <span class="keywordflow">break</span>;
02320         <span class="keywordflow">case</span> <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew1">AlphaLuminance</a>:
02321                 <a class="code" href="a05378.html#a254">NLMISC::rotateCCW</a> ((<a class="code" href="a04558.html#a9">uint16</a>*)&amp;(_Data[0][0]), (<a class="code" href="a04558.html#a9">uint16</a>*)&amp;(copy[0]), _Width, _Height);;
02322                 <span class="keywordflow">break</span>;
02323         <span class="keywordflow">default</span>: <span class="keywordflow">break</span>;
02324         }
02325 
02326         <a class="code" href="a04558.html#a11">uint32</a> tmp=<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
02327         _Width=<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
02328         _Height=tmp;
02329         _Data[0]=copy;
02330 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea38" doxytag="NL3D::CTextureMem::selectTexture" ></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"> virtual void NL3D::ITexture::selectTexture </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>index</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, virtual, inherited]</code></td>
        </tr>

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

<p>
Select a texture among several other (if this texture is a set of texture such as <a class="el" href="a03512.html">CTextureMultiFile</a>) The default does nothing
<p>
Reimplemented in <a class="el" href="a03492.html#NL3D_1_1CTextureCubea44">NL3D::CTextureCube</a>, and <a class="el" href="a03512.html#NL3D_1_1CTextureMultiFilea43">NL3D::CTextureMultiFile</a>.
<p>
Definition at line <a class="el" href="a06506.html#l00360">360</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a05646.html#l00225">index</a>, and <a class="el" href="a05981.html#l00105">uint</a>.
<p>
Referenced by <a class="el" href="a05567.html#l00070">NL3D::CCoarseMeshBuild::buildBitmap()</a>, <a class="el" href="a05567.html#l00430">NL3D::CCoarseMeshBuild::remapCoordinates()</a>, and <a class="el" href="a05457.html#l00231">NL3D::CAsyncFileManager3D::CMeshLoad::run()</a>.
<p>
<div class="fragment"><pre>00360 {}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema46" doxytag="NL3D::CTextureMem::serial" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> virtual void NL3D::CTextureMem::serial </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>f</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap>  throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)<code> [inline, virtual]</code></td>
        </tr>

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

<p>
Todo: serialize a mem texture. 
<p>

<p>
Reimplemented from <a class="el" href="a03487.html#NL3D_1_1ITexturea39">NL3D::ITexture</a>.
<p>
Definition at line <a class="el" href="a06528.html#l00172">172</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a05622.html#l00416">nlstop</a>.
<p>
<div class="fragment"><pre>00172 {<a class="code" href="a04199.html#a12">nlstop</a>;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema47" doxytag="NL3D::CTextureMem::setAllowDegradation" ></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::CTextureMem::setAllowDegradation </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>allow</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>

<p>
Definition at line <a class="el" href="a06527.html#l00088">88</a> of file <a class="el" href="a06527.html">texture_mem.cpp</a>.
<p>
<div class="fragment"><pre>00089 {
00090         <a class="code" href="a03511.html#NL3D_1_1CTextureMemr0">_AllowDegradation</a>= allow;
00091 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_7" doxytag="NL3D::CTextureMem::setFilterMode" ></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::ITexture::setFilterMode </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03487.html#NL3D_1_1ITexturew29">TMagFilter</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>magf</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a03487.html#NL3D_1_1ITexturew30">TMinFilter</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>minf</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [virtual, inherited]</code></td>
        </tr>

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

<p>

<p>
Reimplemented in <a class="el" href="a03489.html#NL3D_1_1CTextureBumpd0">NL3D::CTextureBump</a>.
<p>
Definition at line <a class="el" href="a06505.html#l00100">100</a> of file <a class="el" href="a06505.html">texture.cpp</a>.
<p>
References <a class="el" href="a06506.html#l00410">NL3D::ITexture::_MagFilter</a>, <a class="el" href="a06506.html#l00409">NL3D::ITexture::_MinFilter</a>, <a class="el" href="a06506.html#l00216">NL3D::ITexture::mipMapOff()</a>, and <a class="el" href="a06506.html#l00227">NL3D::ITexture::touch()</a>.
<p>
Referenced by <a class="el" href="a06372.html#l00957">NL3D::CShadowMapManager::allocateTexture()</a>, <a class="el" href="a06515.html#l00042">NL3D::CTextureDLM::CTextureDLM()</a>, <a class="el" href="a06519.html#l00048">NL3D::CTextureFar::CTextureFar()</a>, <a class="el" href="a06523.html#l00067">NL3D::CTextureFont::CTextureFont()</a>, <a class="el" href="a06525.html#l00089">NL3D::CTextureGrouped::CTextureGrouped()</a>, <a class="el" href="a06531.html#l00037">NL3D::CTextureNear::CTextureNear()</a>, and <a class="el" href="a06698.html#l01592">NL3D::CVegetableManager::loadTexture()</a>.
<p>
<div class="fragment"><pre>00101 {
00102         _MagFilter= magf;
00103         <span class="comment">// If the MipMap mode has siwtched Off/On, then must recompute...</span>
00104         <span class="keywordtype">bool</span>    precOff= <a class="code" href="a03487.html#NL3D_1_1ITexturez981_5">mipMapOff</a>();
00105         _MinFilter= minf;
00106         <span class="keywordtype">bool</span>    nowOff= <a class="code" href="a03487.html#NL3D_1_1ITexturez981_5">mipMapOff</a>();
00107 
00108         <span class="keywordflow">if</span>(precOff!=nowOff)
00109         {
00110                 <span class="comment">// Must recompute mipmaps!!</span>
00111                 <a class="code" href="a03487.html#NL3D_1_1ITexturea44">touch</a>();
00112         }
00113 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea40" doxytag="NL3D::CTextureMem::setMipMapCount" ></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 NLMISC::CBitmap::setMipMapCount </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>mmc</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inherited]</code></td>
        </tr>

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

<p>
ADVANCED USE To use in conjunction with resizeMipMap. Setup the correct total number of mipmap No validity check is made. It is the user responsabitility fo setup correct mipmap count.
<p>
Definition at line <a class="el" href="a05486.html#l01590">1590</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05487.html#l00093">NLMISC::CBitmap::_MipMapCount</a>, <a class="el" href="a05981.html#l00100">uint32</a>, and <a class="el" href="a06590.html#l00215">uint8</a>.
<p>
Referenced by <a class="el" href="a05790.html#l00337">NL3D::CHLSColorTexture::buildColorVersion()</a>.
<p>
<div class="fragment"><pre>01591 {
01592         <a class="code" href="a02268.html#NL3D_1_1ITexturep3">_MipMapCount</a>= <a class="code" href="a05167.html#a9">uint8</a>(mmc);
01593 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema49" doxytag="NL3D::CTextureMem::setPointer" ></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::CTextureMem::setPointer </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a7">uint8</a> *&nbsp;</td>
          <td class="mdname" nowrap> <em>data</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>_delete</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>isFile</em> = true, </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>width</em> = 0, </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>height</em> = 0, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a02268.html#NL3D_1_1ITexturew31">CBitmap::TType</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>texType</em> = CBitmap::RGBA</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>
Set the pointer of the mem file containing the texture. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>data</em>&nbsp;</td><td>Pointer of the file. </td></tr>
    <tr><td valign=top><em>length</em>&nbsp;</td><td>length, in bytes, of the datas. </td></tr>
    <tr><td valign=top><em>isFile</em>&nbsp;</td><td>is true if the data must be interpreted as a texture file. Otherwise, it is interpreted as the raw datas of the texture, so the format and size of the texture must also have been set to match the raw datas </td></tr>
    <tr><td valign=top><em>_delete</em>&nbsp;</td><td>Is true if the class must delete the pointer. </td></tr>
    <tr><td valign=top><em>texType</em>&nbsp;</td><td>relevant only when isFile is set to false. Gives the format to expand the texture to when it is generated.</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06528.html#l00108">108</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00046">_Delete</a>, <a class="el" href="a06528.html#l00047">_IsFile</a>, <a class="el" href="a06528.html#l00045">_Length</a>, <a class="el" href="a06528.html#l00053">_TexHeight</a>, <a class="el" href="a06528.html#l00050">_TexType</a>, <a class="el" href="a06528.html#l00053">_TexWidth</a>, <a class="el" href="a05646.html#l01013">data</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a05981.html#l00105">uint</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, and <a class="el" href="a05646.html#l01013">width</a>.
<p>
Referenced by <a class="el" href="a06528.html#l00089">CTextureMem()</a>.
<p>
<div class="fragment"><pre>00109         { 
00110                 <span class="keywordflow">if</span> (<a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>&amp;&amp;<a class="code" href="a03511.html#NL3D_1_1CTextureMemr2">_Delete</a>)
00111                         <span class="keyword">delete</span> [] <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>;
00112                 <a class="code" href="a03487.html#NL3D_1_1ITexturep4">_Touched</a>=<span class="keyword">true</span>;
00113                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>=<a class="code" href="a04223.html#a637">data</a>;
00114                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr4">_Length</a>=length;
00115                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr2">_Delete</a>=_delete;
00116                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr3">_IsFile</a> = isFile;
00117                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr8">_TexWidth</a> = <a class="code" href="a04223.html#a632">width</a>;
00118                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr6">_TexHeight</a> = <a class="code" href="a04223.html#a633">height</a>;
00119                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr7">_TexType</a> = texType;
00120         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea41" doxytag="NL3D::CTextureMem::setReleasable" ></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::ITexture::setReleasable </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">bool&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>r</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</code></td>
        </tr>

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

<p>
Set if texture can be released If it is true, the driver will release the texture after generating it and upload it into the videomemory by calling <a class="el" href="a03487.html#NL3D_1_1ITexturea28">release()</a>. If it is false, the driver won't release the texture.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03487.html#NL3D_1_1ITexturea17">getReleasable()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a> </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>true</em>&nbsp;</td><td>if texture can be released, false else</td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="a06506.html#l00278">278</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00405">NL3D::ITexture::_Releasable</a>, and <a class="el" href="a05646.html#l00993">r</a>.
<p>
Referenced by <a class="el" href="a06372.html#l00957">NL3D::CShadowMapManager::allocateTexture()</a>, <a class="el" href="a06515.html#l00042">NL3D::CTextureDLM::CTextureDLM()</a>, <a class="el" href="a06519.html#l00048">NL3D::CTextureFar::CTextureFar()</a>, <a class="el" href="a06523.html#l00067">NL3D::CTextureFont::CTextureFont()</a>, <a class="el" href="a06531.html#l00037">NL3D::CTextureNear::CTextureNear()</a>, <a class="el" href="a06378.html#l00308">NL3D::CShapeBank::processWSUploadTexture()</a>, <a class="el" href="a06739.html#l00171">NL3D::CWaterPoolManager::releaseBlendTextures()</a>, <a class="el" href="a06739.html#l00152">NL3D::CWaterPoolManager::setBlendFactor()</a>, and <a class="el" href="a05463.html#l00451">NL3D::CAsyncTextureManager::uploadTexturePart()</a>.
<p>
<div class="fragment"><pre>00278 { _Releasable = <a class="code" href="a04223.html#a628">r</a>; }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema51" doxytag="NL3D::CTextureMem::setShareName" ></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::CTextureMem::setShareName </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>shareName</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline]</code></td>
        </tr>

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

<p>
Make this texture sharable by assigning it a share name. An empty share name means it is not sharable, which is the default. 
<p>

<p>
Definition at line <a class="el" href="a06528.html#l00161">161</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00049">_ShareName</a>.
<p>
<div class="fragment"><pre>00162         { 
00163                 <a class="code" href="a03511.html#NL3D_1_1CTextureMemr5">_ShareName</a> = shareName;
00164         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea42" doxytag="NL3D::CTextureMem::setupedIntoDriver" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NL3D::ITexture::setupedIntoDriver </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, inherited]</code></td>
        </tr>

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

<p>
Tells if the texture has been setuped by the driver.
<p>
Definition at line <a class="el" href="a06506.html#l00343">343</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00416">NL3D::ITexture::TextureDrvShare</a>.
<p>
<div class="fragment"><pre>00344         {
00345                 <span class="keywordflow">return</span> <a class="code" href="a03487.html#NL3D_1_1ITextureo4">TextureDrvShare</a>!=NULL;
00346         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_8" doxytag="NL3D::CTextureMem::setUploadFormat" ></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::ITexture::setUploadFormat </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03487.html#NL3D_1_1ITexturew32">TUploadFormat</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>pf</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inherited]</code></td>
        </tr>

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

<p>
Replace the uploaded format of the texture. If "Auto", the driver use <a class="el" href="a02268.html#NL3D_1_1ITexturea15">CBitmap::getPixelFormat()</a> to find the best associated pixelFormat. When no alpha is wanted (RGB, Luminance....), texture default output is 1.0. For "Alpha" mode, RGB output is (0,0,0).
<p>
Definition at line <a class="el" href="a06505.html#l00088">88</a> of file <a class="el" href="a06505.html">texture.cpp</a>.
<p>
References <a class="el" href="a06506.html#l00406">NL3D::ITexture::_UploadFormat</a>, and <a class="el" href="a06506.html#l00227">NL3D::ITexture::touch()</a>.
<p>
Referenced by <a class="el" href="a06515.html#l00042">NL3D::CTextureDLM::CTextureDLM()</a>, <a class="el" href="a06519.html#l00048">NL3D::CTextureFar::CTextureFar()</a>, <a class="el" href="a06523.html#l00067">NL3D::CTextureFont::CTextureFont()</a>, <a class="el" href="a06531.html#l00037">NL3D::CTextureNear::CTextureNear()</a>, <a class="el" href="a05648.html#l01266">NL3D::CDriverGL::getSpecularCubeMap()</a>, and <a class="el" href="a05648.html#l01956">NL3D::CDriverGL::setupWaterPassARB()</a>.
<p>
<div class="fragment"><pre>00089 {
00090         <span class="keywordflow">if</span>(pf!=_UploadFormat)
00091         {
00092                 _UploadFormat= pf;
00093                 <span class="comment">// All the texture may be reloaded...</span>
00094                 <a class="code" href="a03487.html#NL3D_1_1ITexturea44">touch</a>();
00095         }
00096 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_9" doxytag="NL3D::CTextureMem::setWrapS" ></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::ITexture::setWrapS </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03487.html#NL3D_1_1ITexturew33">TWrapMode</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>mode</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</code></td>
        </tr>

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

<p>
By default, parameters are:<ul>
<li>WrapS==Repeat</li><li>WrapT==Repeat</li><li>UploadFormat== Auto</li><li>MagFilter== Linear.</li><li>MinFilter= LinearMipMapLinear.</li></ul>
<p>
NB: if multiple <a class="el" href="a03487.html">ITexture</a> acces the same data via the sharing system (such as a <a class="el" href="a03502.html">CTextureFile</a>), then:<ul>
<li>WrapS/WrapT is LOCAL for each <a class="el" href="a03487.html">ITexture</a> (ie each <a class="el" href="a03487.html">ITexture</a> will have his own Wrap mode) =&gt; no duplication is made.</li><li>UploadFormat may duplicate the texture in video memory. There is one texture per different UploadFormat.</li><li>MinFilter may duplicate the texture in video memory in the same way, wether the texture has mipmap or not.</li></ul>

<p>
Definition at line <a class="el" href="a06506.html#l00202">202</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00407">NL3D::ITexture::_WrapS</a>.
<p>
Referenced by <a class="el" href="a06372.html#l00957">NL3D::CShadowMapManager::allocateTexture()</a>, <a class="el" href="a06519.html#l00048">NL3D::CTextureFar::CTextureFar()</a>, <a class="el" href="a06523.html#l00067">NL3D::CTextureFont::CTextureFont()</a>, <a class="el" href="a06698.html#l01592">NL3D::CVegetableManager::loadTexture()</a>, and <a class="el" href="a06360.html#l00243">NL3D::CSegRemanenceShape::setupMaterial()</a>.
<p>
<div class="fragment"><pre>00202 {_WrapS= mode;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturez981_10" doxytag="NL3D::CTextureMem::setWrapT" ></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::ITexture::setWrapT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a03487.html#NL3D_1_1ITexturew33">TWrapMode</a>&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>mode</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</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="a06506.html#l00203">203</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00408">NL3D::ITexture::_WrapT</a>.
<p>
Referenced by <a class="el" href="a06372.html#l00957">NL3D::CShadowMapManager::allocateTexture()</a>, <a class="el" href="a06519.html#l00048">NL3D::CTextureFar::CTextureFar()</a>, <a class="el" href="a06523.html#l00067">NL3D::CTextureFont::CTextureFont()</a>, and <a class="el" href="a06698.html#l01592">NL3D::CVegetableManager::loadTexture()</a>.
<p>
<div class="fragment"><pre>00203 {_WrapT= mode;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMema53" doxytag="NL3D::CTextureMem::supportSharing" ></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"> virtual bool NL3D::CTextureMem::supportSharing </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap> const<code> [inline, virtual]</code></td>
        </tr>

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

<p>
inherited from <a class="el" href="a03487.html">ITexture</a>. 
<p>

<p>
Reimplemented from <a class="el" href="a03487.html#NL3D_1_1ITexturea43">NL3D::ITexture</a>.
<p>
Definition at line <a class="el" href="a06528.html#l00148">148</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
References <a class="el" href="a06528.html#l00049">_ShareName</a>.
<p>
<div class="fragment"><pre>00149         {
00150                 <span class="keywordflow">return</span> !<a class="code" href="a03511.html#NL3D_1_1CTextureMemr5">_ShareName</a>.empty();
00151         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea44" doxytag="NL3D::CTextureMem::touch" ></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::ITexture::touch </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, inherited]</code></td>
        </tr>

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

<p>
This method invalidates all the texture surface. When the driver calls generate, the texture will rebuild all the texture and the driver will update it.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03487.html#NL3D_1_1ITexturea21">isAllInvalidated()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea46">touchRect()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea45">touched()</a>, <a class="el" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a></dd></dl>

<p>
Definition at line <a class="el" href="a06506.html#l00227">227</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00404">NL3D::ITexture::_GoodGenerate</a>, and <a class="el" href="a06506.html#l00422">NL3D::ITexture::_ListInvalidRect</a>.
<p>
Referenced by <a class="el" href="a06522.html#l00066">NL3D::CTextureFile::CTextureFile()</a>, <a class="el" href="a06505.html#l00072">NL3D::ITexture::operator=()</a>, <a class="el" href="a06529.html#l00121">NL3D::CTextureMultiFile::selectTexture()</a>, <a class="el" href="a06513.html#l00198">NL3D::CTextureCube::selectTexture()</a>, <a class="el" href="a06518.html#l00065">NL3D::CTextureEmboss::setAmbient()</a>, <a class="el" href="a06509.html#l00076">NL3D::CTextureBlend::setBlendFactor()</a>, <a class="el" href="a06509.html#l00090">NL3D::CTextureBlend::setBlendTexture()</a>, <a class="el" href="a06518.html#l00066">NL3D::CTextureEmboss::setDiffuse()</a>, <a class="el" href="a06529.html#l00052">NL3D::CTextureMultiFile::setFileName()</a>, <a class="el" href="a06522.html#l00080">NL3D::CTextureFile::setFileName()</a>, <a class="el" href="a06505.html#l00100">NL3D::ITexture::setFilterMode()</a>, <a class="el" href="a06517.html#l00042">NL3D::CTextureEmboss::setHeightMap()</a>, <a class="el" href="a06511.html#l00237">NL3D::CTextureBump::setHeightMap()</a>, <a class="el" href="a06518.html#l00068">NL3D::CTextureEmboss::setLightDir()</a>, <a class="el" href="a06518.html#l00070">NL3D::CTextureEmboss::setSlopeFactor()</a>, <a class="el" href="a06525.html#l00146">NL3D::CTextureGrouped::setTextures()</a>, and <a class="el" href="a06505.html#l00088">NL3D::ITexture::setUploadFormat()</a>.
<p>
<div class="fragment"><pre>00228         { 
00229                 <a class="code" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a>.clear (); 
00230                 <a class="code" href="a03487.html#NL3D_1_1ITexturep4">_Touched</a>=<span class="keyword">true</span>; 
00231                 _GoodGenerate= <span class="keyword">false</span>;
00232         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea45" doxytag="NL3D::CTextureMem::touched" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NL3D::ITexture::touched </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</code></td>
        </tr>

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

<p>
This method return the touched flag. If it is true, the driver will call generate to rebuild the texture.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03487.html#NL3D_1_1ITexturea21">isAllInvalidated()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea44">touch()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea46">touchRect()</a>, <a class="el" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a></dd></dl>

<p>
Definition at line <a class="el" href="a06506.html#l00438">438</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>.
<p>
<div class="fragment"><pre>00439         {
00440                 <span class="keywordflow">return</span> <a class="code" href="a03487.html#NL3D_1_1ITexturep4">_Touched</a>;
00441         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea46" doxytag="NL3D::CTextureMem::touchRect" ></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::ITexture::touchRect </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const <a class="el" href="a03319.html">NLMISC::CRect</a> &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>rect</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [inline, inherited]</code></td>
        </tr>

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

<p>
This method invalidates a rectangle of the texture surface. When the driver calls generate, the texture could rebuild only this part of texture and the driver will update only those rectangles.<p>
This method is incompatible with textures which support sharing (see class description).<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03487.html#NL3D_1_1ITexturea21">isAllInvalidated()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea44">touch()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea45">touched()</a>, <a class="el" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a></dd></dl>

<p>
Definition at line <a class="el" href="a06506.html#l00242">242</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00404">NL3D::ITexture::_GoodGenerate</a>, <a class="el" href="a06506.html#l00422">NL3D::ITexture::_ListInvalidRect</a>, <a class="el" href="a06506.html#l00428">NL3D::ITexture::isAllInvalidated()</a>, <a class="el" href="a05622.html#l00290">nlassert</a>, and <a class="el" href="a06506.html#l00332">NL3D::ITexture::supportSharing()</a>.
<p>
Referenced by <a class="el" href="a06523.html#l00273">NL3D::CTextureFont::getLetterInfo()</a>.
<p>
<div class="fragment"><pre>00243         { 
00244                 <span class="comment">// The texture must not support sharing....</span>
00245                 <a class="code" href="a04199.html#a6">nlassert</a>(!<a class="code" href="a03511.html#NL3D_1_1CTextureMema53">supportSharing</a>());
00246                 <span class="comment">// Don't invalidate the rectangle if the full texture is already invalidated.</span>
00247                 <span class="keywordflow">if</span> (!<a class="code" href="a03487.html#NL3D_1_1ITexturea21">isAllInvalidated</a> ())
00248                 {
00249                         <span class="comment">// Add the region to invalidate list</span>
00250                         <a class="code" href="a03487.html#NL3D_1_1ITextureo0">_ListInvalidRect</a>.push_back (rect); 
00251                         <span class="comment">// Touch flag</span>
00252                         <a class="code" href="a03487.html#NL3D_1_1ITexturep4">_Touched</a>=<span class="keyword">true</span>; 
00253                 }
00254 
00255                 _GoodGenerate= <span class="keyword">false</span>;
00256         }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea47" doxytag="NL3D::CTextureMem::validateGenerateFlag" ></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::ITexture::validateGenerateFlag </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, inherited]</code></td>
        </tr>

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

<p>
Advanced. erase the _GoodGenerate=true. Special if you want to setup directly the bitmap without using <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>. USE IT WITH CARE!! (used by the <a class="el" href="a02230.html">CAsyncTextureManager</a>)
<p>
Definition at line <a class="el" href="a06506.html#l00322">322</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
References <a class="el" href="a06506.html#l00404">NL3D::ITexture::_GoodGenerate</a>.
<p>
<div class="fragment"><pre>00322 {_GoodGenerate=<span class="keyword">true</span>;}
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea48" doxytag="NL3D::CTextureMem::writeJPG" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NLMISC::CBitmap::writeJPG </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>f</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a7">uint8</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>quality</em> = 80</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inline, inherited]</code></td>
        </tr>

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

<p>
Write a JPG from the object pixels buffer. If the current pixel format is not rgba then the method does nothing If the pixel format is Alpha then we save in 8 bpp <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>f</em>&nbsp;</td><td><a class="el" href="a02270.html">IStream</a> (must be a reading stream) </td></tr>
    <tr><td valign=top><em>quality</em>&nbsp;</td><td>0=very bad quality 100=best quality </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if succeed, false else</dd></dl>

<p>
Definition at line <a class="el" href="a05487.html#l00620">620</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
References <a class="el" href="a05622.html#l00135">nlwarning</a>, and <a class="el" href="a05981.html#l00096">uint8</a>.
<p>
<div class="fragment"><pre>00621 {
00622         <a class="code" href="a04199.html#a2">nlwarning</a> (<span class="stringliteral">"You must put #define USE_JPEG before all include in the file where you call writeJPG() if you want jpeg support"</span>);
00623         <span class="keywordflow">return</span> <span class="keyword">false</span>;
00624 }
</pre></div>    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturea49" doxytag="NL3D::CTextureMem::writeTGA" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool NLMISC::CBitmap::writeTGA </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> &amp;&nbsp;</td>
          <td class="mdname" nowrap> <em>f</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>d</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td></td>
          <td class="md" nowrap>bool&nbsp;</td>
          <td class="mdname" nowrap> <em>upsideDown</em> = false</td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [inherited]</code></td>
        </tr>

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

<p>
Write a TGA (24 or 32 bits) from the object pixels buffer. If the current pixel format is not rgba then the method does nothing If the pixel format is Alpha then we save in 8 bpp <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign=top><em>f</em>&nbsp;</td><td><a class="el" href="a02270.html">IStream</a> (must be a reading stream) </td></tr>
    <tr><td valign=top><em>d</em>&nbsp;</td><td>depth : 8 or 16 or 24 or 32 </td></tr>
    <tr><td valign=top><em>upsideDown</em>&nbsp;</td><td>if true, the bitmap will be saved with the upside down </td></tr>
  </table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>true if succeed, false else</dd></dl>

<p>
Definition at line <a class="el" href="a05486.html#l02139">2139</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
References <a class="el" href="a05646.html#l01013">depth</a>, <a class="el" href="a05646.html#l01013">height</a>, <a class="el" href="a06463.html#l00064">NLMISC::IStream::isReading()</a>, <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a>, <a class="el" href="a05646.html#l00993">r</a>, <a class="el" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">NLMISC::CBitmap::RGBA</a>, <a class="el" href="a06462.html#l00232">NLMISC::IStream::serial()</a>, <a class="el" href="a05981.html#l00099">sint32</a>, <a class="el" href="a05981.html#l00098">uint16</a>, <a class="el" href="a05981.html#l00100">uint32</a>, <a class="el" href="a05981.html#l00096">uint8</a>, <a class="el" href="a05646.html#l01013">width</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="a06523.html#l00133">NL3D::CTextureFont::dumpTextureFont()</a>, <a class="el" href="a06768.html#l02927">NL3D::CZoneLighter::lightWater()</a>, and <a class="el" href="a06092.html#l00192">NL3D::CNELU::screenshot()</a>.
<p>
<div class="fragment"><pre>02140 {
02141         <span class="keywordflow">if</span>(f.<a class="code" href="a02270.html#NLMISC_1_1IStreama0">isReading</a>()) <span class="keywordflow">return</span> <span class="keyword">false</span>;
02142         <span class="keywordflow">if</span>(d!=24 &amp;&amp; d!=32 &amp;&amp; d!=16 &amp;&amp; d!=8) <span class="keywordflow">return</span> <span class="keyword">false</span>;
02143         <span class="keywordflow">if</span> ((<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a02268.html#NL3D_1_1ITexturew31NL3D_1_1ITexturew25">RGBA</a>)&amp;&amp;(<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>)&amp;&amp;(<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> != <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>)) <span class="keywordflow">return</span> <span class="keyword">false</span>;
02144         <span class="keywordflow">if</span> ((<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>) &amp;&amp; (d != 8)) <span class="keywordflow">return</span> <span class="keyword">false</span>;
02145         <span class="keywordflow">if</span> ((<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>) &amp;&amp; (d != 8)) <span class="keywordflow">return</span> <span class="keyword">false</span>;
02146 
02147         <a class="code" href="a04558.html#a10">sint32</a>  i,j,<a class="code" href="a04223.html#a572">x</a>,<a class="code" href="a04223.html#a573">y</a>;
02148         <a class="code" href="a04558.html#a7">uint8</a>   * scanline;
02149         <a class="code" href="a04558.html#a7">uint8</a>   <a class="code" href="a04223.html#a628">r</a>,g,b,a;
02150 
02151         <a class="code" href="a04558.html#a7">uint8</a>   lengthID = 0;
02152         <a class="code" href="a04558.html#a7">uint8</a>   cMapType = 0;
02153         <a class="code" href="a04558.html#a7">uint8</a>   imageType = 2;
02154         <a class="code" href="a04558.html#a9">uint16</a>  origin = 0;
02155         <a class="code" href="a04558.html#a9">uint16</a>  length = 0;
02156         <a class="code" href="a04558.html#a7">uint8</a>   <a class="code" href="a04223.html#a634">depth</a> = 0;
02157         <a class="code" href="a04558.html#a9">uint16</a>  xOrg = 0;
02158         <a class="code" href="a04558.html#a9">uint16</a>  yOrg = 0;
02159         <a class="code" href="a04558.html#a9">uint16</a>  <a class="code" href="a04223.html#a632">width</a> = (<a class="code" href="a04558.html#a9">uint16</a>)<a class="code" href="a02268.html#NL3D_1_1ITexturep5">_Width</a>;
02160         <a class="code" href="a04558.html#a9">uint16</a>  <a class="code" href="a04223.html#a633">height</a> = (<a class="code" href="a04558.html#a9">uint16</a>)<a class="code" href="a02268.html#NL3D_1_1ITexturep1">_Height</a>;
02161         <a class="code" href="a04558.html#a7">uint8</a>   imageDepth = (<a class="code" href="a04558.html#a7">uint8</a>)d;
02162         <a class="code" href="a04558.html#a7">uint8</a>   desc = 0;
02163         <span class="keywordflow">if</span> (upsideDown)
02164                 desc |= 1&lt;&lt;5;
02165 
02166         <span class="keywordflow">if</span> ((<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>) || (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>))
02167                 imageType = 3; <span class="comment">// Uncompressed grayscale</span>
02168 
02169         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(lengthID);
02170         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(cMapType);
02171         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(imageType);
02172         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(origin);
02173         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(length);
02174         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(depth);
02175         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(xOrg);
02176         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(yOrg);
02177         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(width);
02178         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(height);
02179         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(imageDepth);
02180         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(desc);
02181 
02182         <span class="keywordflow">if</span> ((<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>)||(<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>))
02183                 scanline = <span class="keyword">new</span> <a class="code" href="a04558.html#a7">uint8</a>[<a class="code" href="a04223.html#a632">width</a>];
02184         <span class="keywordflow">else</span>
02185                 scanline = <span class="keyword">new</span> <a class="code" href="a04558.html#a7">uint8</a>[<a class="code" href="a04223.html#a632">width</a>*4];
02186         <span class="keywordflow">if</span>(!scanline)
02187         {
02188                 <span class="keywordflow">throw</span> EAllocationFailure();
02189         }
02190 
02191         <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;(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a04223.html#a633">height</a>; <a class="code" href="a04223.html#a573">y</a>++)
02192         {
02193                 
02194                 <a class="code" href="a04558.html#a11">uint32</a> k=0;
02195                 <span class="keywordflow">if</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew0">Alpha</a>)
02196                 {
02197                         <span class="keywordflow">for</span>(i=0; i&lt;<a class="code" href="a04223.html#a632">width</a>; ++i) <span class="comment">// Alpha</span>
02198                         {
02199                                 scanline[k++] = <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][(<a class="code" href="a04223.html#a633">height</a>-<a class="code" href="a04223.html#a573">y</a>-1)*<a class="code" href="a04223.html#a632">width</a> + i];
02200                         }
02201                 }
02202                 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (<a class="code" href="a02268.html#NL3D_1_1ITextureo3">PixelFormat</a> == <a class="code" href="a03487.html#NL3D_1_1ITexturew32NL3D_1_1ITexturew14">Luminance</a>)
02203                 {
02204                         <span class="keywordflow">for</span>(i=0; i&lt;<a class="code" href="a04223.html#a632">width</a>; ++i) <span class="comment">// Luminance</span>
02205                         {
02206                                 scanline[k++] = <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][(<a class="code" href="a04223.html#a633">height</a>-<a class="code" href="a04223.html#a573">y</a>-1)*<a class="code" href="a04223.html#a632">width</a> + i];
02207                         }
02208                 }
02209                 <span class="keywordflow">else</span>
02210                 {
02211                         <span class="keywordflow">for</span>(i=0; i&lt;<a class="code" href="a04223.html#a632">width</a>*4; i+=4) <span class="comment">// 4:RGBA</span>
02212                         {
02213                                 <span class="keywordflow">if</span>(d==16)
02214                                 {
02215                                         <span class="keywordflow">for</span>(j=0; j&lt;(<a class="code" href="a04558.html#a10">sint32</a>)4; j++)
02216                                         {
02217                                                 scanline[k++] = <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][(<a class="code" href="a04223.html#a633">height</a>-<a class="code" href="a04223.html#a573">y</a>-1)*<a class="code" href="a04223.html#a632">width</a>*4 + i + j];
02218                                         }
02219                                 }
02220                                 <span class="keywordflow">else</span>
02221                                 {
02222                                         <span class="keywordflow">for</span>(j=0; j&lt;(<a class="code" href="a04558.html#a10">sint32</a>)d/8; j++)
02223                                         {
02224                                                 scanline[k++] = <a class="code" href="a03511.html#NL3D_1_1CTextureMemr1">_Data</a>[0][(<a class="code" href="a04223.html#a633">height</a>-<a class="code" href="a04223.html#a573">y</a>-1)*<a class="code" href="a04223.html#a632">width</a>*4 + i + j];
02225                                         }
02226                                 }
02227                         }
02228                 }
02229                 
02230                 <span class="keywordflow">if</span>(d==16)
02231                 {
02232                         <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;(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a04223.html#a632">width</a>; <a class="code" href="a04223.html#a572">x</a>++)
02233                         {
02234                                 <a class="code" href="a04223.html#a628">r</a> = scanline[<a class="code" href="a04223.html#a572">x</a>*4+0];
02235                                 g = scanline[<a class="code" href="a04223.html#a572">x</a>*4+1];
02236                                 b = scanline[<a class="code" href="a04223.html#a572">x</a>*4+2];
02237                                 <span class="keywordtype">int</span> rr = <a class="code" href="a04223.html#a628">r</a> &gt;&gt;3;
02238                                 <span class="keywordtype">int</span> gg = g &gt;&gt;3;
02239                                 <span class="keywordtype">int</span> bb = b &gt;&gt;3;
02240                                 <a class="code" href="a04558.html#a9">uint16</a> c16 = (rr&lt;&lt;10) | (gg&lt;&lt;5) | bb;
02241                                 scanline[<a class="code" href="a04223.html#a572">x</a>*2+0] = c16&amp;0xff;
02242                                 scanline[<a class="code" href="a04223.html#a572">x</a>*2+1] = c16&gt;&gt;8;
02243                         }
02244                 }
02245                 <span class="keywordflow">if</span>(d==24)
02246                 {
02247                         <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;(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a04223.html#a632">width</a>; <a class="code" href="a04223.html#a572">x</a>++)
02248                         {
02249                                 <a class="code" href="a04223.html#a628">r</a> = scanline[<a class="code" href="a04223.html#a572">x</a>*3+0];
02250                                 g = scanline[<a class="code" href="a04223.html#a572">x</a>*3+1];
02251                                 b = scanline[<a class="code" href="a04223.html#a572">x</a>*3+2];
02252                                 scanline[<a class="code" href="a04223.html#a572">x</a>*3+0] = b;
02253                                 scanline[<a class="code" href="a04223.html#a572">x</a>*3+1] = g;
02254                                 scanline[<a class="code" href="a04223.html#a572">x</a>*3+2] = <a class="code" href="a04223.html#a628">r</a>;
02255                         }
02256                 }
02257                 <span class="keywordflow">if</span>(d==32)
02258                 {
02259                         <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;(<a class="code" href="a04558.html#a10">sint32</a>)<a class="code" href="a04223.html#a632">width</a>; <a class="code" href="a04223.html#a572">x</a>++)
02260                         {
02261                                 <a class="code" href="a04223.html#a628">r</a> = scanline[<a class="code" href="a04223.html#a572">x</a>*4+0];
02262                                 g = scanline[<a class="code" href="a04223.html#a572">x</a>*4+1];
02263                                 b = scanline[<a class="code" href="a04223.html#a572">x</a>*4+2];
02264                                 a= scanline[<a class="code" href="a04223.html#a572">x</a>*4+3];
02265                                 scanline[<a class="code" href="a04223.html#a572">x</a>*4+0] = b;
02266                                 scanline[<a class="code" href="a04223.html#a572">x</a>*4+1] = g;
02267                                 scanline[<a class="code" href="a04223.html#a572">x</a>*4+2] = <a class="code" href="a04223.html#a628">r</a>;                            
02268                                 scanline[<a class="code" href="a04223.html#a572">x</a>*4+3] = a;
02269                         }
02270                 }
02271                 
02272                 <span class="keywordtype">int</span> finaleSize=<a class="code" href="a04223.html#a632">width</a>*d/8;
02273                 <span class="keywordflow">for</span>(i=0; i&lt;finaleSize; i++)
02274                 {
02275                         f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(scanline[i]);
02276                 }               
02277         }
02278         <span class="keyword">delete</span> scanline;
02279         <span class="keywordflow">return</span> <span class="keyword">true</span>;
02280 }
</pre></div>    </td>
  </tr>
</table>
<hr><h2>Friends And Related Function Documentation</h2>
<a class="anchor" name="NLGEORGES_1_1UTypen0" doxytag="NL3D::CTextureMem::CPtrInfo" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> friend struct CPtrInfo<code> [friend, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06402.html#l00067">67</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>.    </td>
  </tr>
</table>
<hr><h2>Field Documentation</h2>
<a class="anchor" name="NL3D_1_1CTextureMemr0" doxytag="NL3D::CTextureMem::_AllowDegradation" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03511.html#NL3D_1_1CTextureMemr0">NL3D::CTextureMem::_AllowDegradation</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06528.html#l00048">48</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr1" doxytag="NL3D::CTextureMem::_Data" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a>* <a class="el" href="a03511.html#NL3D_1_1CTextureMemr1">NL3D::CTextureMem::_Data</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Reimplemented from <a class="el" href="a02268.html#NL3D_1_1ITexturep0">NLMISC::CBitmap</a>.
<p>
Definition at line <a class="el" href="a06528.html#l00044">44</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr2" doxytag="NL3D::CTextureMem::_Delete" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03511.html#NL3D_1_1CTextureMemr2">NL3D::CTextureMem::_Delete</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06528.html#l00046">46</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
Referenced by <a class="el" href="a06528.html#l00059">CTextureMem()</a>, <a class="el" href="a06528.html#l00139">isDeletable()</a>, <a class="el" href="a06528.html#l00108">setPointer()</a>, and <a class="el" href="a06528.html#l00070">~CTextureMem()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturep1" doxytag="NL3D::CTextureMem::_Height" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02268.html#NL3D_1_1ITexturep1">NLMISC::CBitmap::_Height</a><code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05487.html#l00096">96</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
Referenced by <a class="el" href="a05486.html#l02817">NLMISC::CBitmap::blend()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr3" doxytag="NL3D::CTextureMem::_IsFile" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03511.html#NL3D_1_1CTextureMemr3">NL3D::CTextureMem::_IsFile</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06528.html#l00047">47</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
Referenced by <a class="el" href="a06527.html#l00045">doGenerate()</a>, and <a class="el" href="a06528.html#l00108">setPointer()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr4" doxytag="NL3D::CTextureMem::_Length" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03511.html#NL3D_1_1CTextureMemr4">NL3D::CTextureMem::_Length</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06528.html#l00045">45</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
Referenced by <a class="el" href="a06527.html#l00045">doGenerate()</a>, <a class="el" href="a06528.html#l00133">getLength()</a>, and <a class="el" href="a06528.html#l00108">setPointer()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITextureo0" doxytag="NL3D::CTextureMem::_ListInvalidRect" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::list&lt;<a class="el" href="a03319.html">NLMISC::CRect</a>&gt; <a class="el" href="a03487.html#NL3D_1_1ITextureo0">NL3D::ITexture::_ListInvalidRect</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
List of invalided rectangle. If the list is empty, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a> will rebuild all the texture.<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="a03487.html#NL3D_1_1ITexturea21">isAllInvalidated()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea9">generate()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea44">touch()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea46">touchRect()</a>, <a class="el" href="a03487.html#NL3D_1_1ITexturea45">touched()</a></dd></dl>

<p>
Definition at line <a class="el" href="a06506.html#l00422">422</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a06506.html#l00448">NL3D::ITexture::clearTouched()</a>, <a class="el" href="a06506.html#l00428">NL3D::ITexture::isAllInvalidated()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a06506.html#l00227">NL3D::ITexture::touch()</a>, and <a class="el" href="a06506.html#l00242">NL3D::ITexture::touchRect()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturep2" doxytag="NL3D::CTextureMem::_LoadGrayscaleAsAlpha" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a02268.html#NL3D_1_1ITexturep2">NLMISC::CBitmap::_LoadGrayscaleAsAlpha</a><code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05487.html#l00094">94</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
Referenced by <a class="el" href="a05487.html#l00254">NLMISC::CBitmap::CBitmap()</a>, <a class="el" href="a05487.html#l00483">NLMISC::CBitmap::isGrayscaleAsAlpha()</a>, <a class="el" href="a05487.html#l00472">NLMISC::CBitmap::loadGrayscaleAsAlpha()</a>, and <a class="el" href="a05486.html#l01800">NLMISC::CBitmap::readTGA()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturep3" doxytag="NL3D::CTextureMem::_MipMapCount" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a7">uint8</a> <a class="el" href="a02268.html#NL3D_1_1ITexturep3">NLMISC::CBitmap::_MipMapCount</a><code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05487.html#l00093">93</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
Referenced by <a class="el" href="a05486.html#l00762">NLMISC::CBitmap::alphaLuminanceToAlpha()</a>, <a class="el" href="a05486.html#l00677">NLMISC::CBitmap::alphaLuminanceToLuminance()</a>, <a class="el" href="a05486.html#l00519">NLMISC::CBitmap::alphaLuminanceToRGBA()</a>, <a class="el" href="a05486.html#l00607">NLMISC::CBitmap::alphaToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00490">NLMISC::CBitmap::alphaToRGBA()</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05487.html#l00254">NLMISC::CBitmap::CBitmap()</a>, <a class="el" href="a05486.html#l00965">NLMISC::CBitmap::decompressDXT1()</a>, <a class="el" href="a05486.html#l01090">NLMISC::CBitmap::decompressDXT3()</a>, <a class="el" href="a05486.html#l01200">NLMISC::CBitmap::decompressDXT5()</a>, <a class="el" href="a05486.html#l02682">NLMISC::CBitmap::flipH()</a>, <a class="el" href="a05486.html#l02714">NLMISC::CBitmap::flipV()</a>, <a class="el" href="a05487.html#l00369">NLMISC::CBitmap::getMipMapCount()</a>, <a class="el" href="a05486.html#l00736">NLMISC::CBitmap::luminanceToAlpha()</a>, <a class="el" href="a05486.html#l00579">NLMISC::CBitmap::luminanceToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00462">NLMISC::CBitmap::luminanceToRGBA()</a>, <a class="el" href="a05486.html#l00184">NLMISC::CBitmap::makeDummy()</a>, <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>, <a class="el" href="a05486.html#l01800">NLMISC::CBitmap::readTGA()</a>, <a class="el" href="a05486.html#l01493">NLMISC::CBitmap::releaseMipMaps()</a>, <a class="el" href="a05486.html#l01508">NLMISC::CBitmap::resample()</a>, <a class="el" href="a05486.html#l01599">NLMISC::CBitmap::reset()</a>, <a class="el" href="a05486.html#l00708">NLMISC::CBitmap::rgbaToAlpha()</a>, <a class="el" href="a05486.html#l00550">NLMISC::CBitmap::rgbaToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00635">NLMISC::CBitmap::rgbaToLuminance()</a>, <a class="el" href="a05486.html#l02781">NLMISC::CBitmap::rot90CCW()</a>, <a class="el" href="a05486.html#l02746">NLMISC::CBitmap::rot90CW()</a>, and <a class="el" href="a05486.html#l01590">NLMISC::CBitmap::setMipMapCount()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr5" doxytag="NL3D::CTextureMem::_ShareName" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> std::string <a class="el" href="a03511.html#NL3D_1_1CTextureMemr5">NL3D::CTextureMem::_ShareName</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06528.html#l00049">49</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
Referenced by <a class="el" href="a06528.html#l00154">getShareName()</a>, <a class="el" href="a06528.html#l00161">setShareName()</a>, and <a class="el" href="a06528.html#l00148">supportSharing()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr6" doxytag="NL3D::CTextureMem::_TexHeight" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a03511.html#NL3D_1_1CTextureMemr6">NL3D::CTextureMem::_TexHeight</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
keep size for textures that aren't from a file 
<p>

<p>
Definition at line <a class="el" href="a06528.html#l00053">53</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
Referenced by <a class="el" href="a06527.html#l00045">doGenerate()</a>, and <a class="el" href="a06528.html#l00108">setPointer()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr7" doxytag="NL3D::CTextureMem::_TexType" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a02268.html#NL3D_1_1ITexturew31">NLMISC::CBitmap::TType</a> <a class="el" href="a03511.html#NL3D_1_1CTextureMemr7">NL3D::CTextureMem::_TexType</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06528.html#l00050">50</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
Referenced by <a class="el" href="a06528.html#l00059">CTextureMem()</a>, <a class="el" href="a06527.html#l00045">doGenerate()</a>, and <a class="el" href="a06528.html#l00108">setPointer()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1CTextureMemr8" doxytag="NL3D::CTextureMem::_TexWidth" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a03511.html#NL3D_1_1CTextureMemr8">NL3D::CTextureMem::_TexWidth</a><code> [private]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
keep size for textures that aren't from a file 
<p>

<p>
Definition at line <a class="el" href="a06528.html#l00053">53</a> of file <a class="el" href="a06528.html">texture_mem.h</a>.
<p>
Referenced by <a class="el" href="a06527.html#l00045">doGenerate()</a>, and <a class="el" href="a06528.html#l00108">setPointer()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturep4" doxytag="NL3D::CTextureMem::_Touched" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> bool <a class="el" href="a03487.html#NL3D_1_1ITexturep4">NL3D::ITexture::_Touched</a><code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06506.html#l00387">387</a> of file <a class="el" href="a06506.html">texture.h</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITexturep5" doxytag="NL3D::CTextureMem::_Width" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02268.html#NL3D_1_1ITexturep5">NLMISC::CBitmap::_Width</a><code> [protected, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05487.html#l00095">95</a> of file <a class="el" href="a05487.html">bitmap.h</a>.
<p>
Referenced by <a class="el" href="a05486.html#l02817">NLMISC::CBitmap::blend()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITextures0" doxytag="NL3D::CTextureMem::bitPerPixels" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02268.html#NL3D_1_1ITextures0">NLMISC::CBitmap::bitPerPixels</a><code> [static, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<b>Initial value:</b><div class="fragment"><pre>
{
        32,             
        8,              
        8,              
        16,             
        4,              
        4,              
        8,              
        8,              
        16              
}
</pre></div>
<p>
Definition at line <a class="el" href="a05486.html#l00070">70</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
Referenced by <a class="el" href="a05486.html#l02332">NLMISC::CBitmap::blit()</a>, and <a class="el" href="a05486.html#l01565">NLMISC::CBitmap::resizeMipMap()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLGEORGES_1_1UTypeo0" doxytag="NL3D::CTextureMem::crefs" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a14">sint</a> <a class="el" href="a02209.html#NLGEORGES_1_1UTypeo0">NLMISC::CRefCount::crefs</a><code> [mutable, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06402.html#l00079">79</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>.
<p>
Referenced by <a class="el" href="a06402.html#l00085">NLMISC::CRefCount::CRefCount()</a>, <a class="el" href="a06402.html#l00070">NLMISC::CRefCount::getRefCount()</a>, and <a class="el" href="a06403.html#l00044">NLMISC::CRefCount::~CRefCount()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITextures1" doxytag="NL3D::CTextureMem::DXTC1HEADER" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02268.html#NL3D_1_1ITextures1">NLMISC::CBitmap::DXTC1HEADER</a> = NL_MAKEFOURCC('D','X', 'T', '1')<code> [static, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05486.html#l00083">83</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
Referenced by <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITextures2" doxytag="NL3D::CTextureMem::DXTC3HEADER" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02268.html#NL3D_1_1ITextures2">NLMISC::CBitmap::DXTC3HEADER</a> = NL_MAKEFOURCC('D','X', 'T', '3')<code> [static, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05486.html#l00084">84</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
Referenced by <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITextures3" doxytag="NL3D::CTextureMem::DXTC5HEADER" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a02268.html#NL3D_1_1ITextures3">NLMISC::CBitmap::DXTC5HEADER</a> = NL_MAKEFOURCC('D','X', 'T', '5')<code> [static, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a05486.html#l00085">85</a> of file <a class="el" href="a05486.html">bitmap.cpp</a>.
<p>
Referenced by <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLGEORGES_1_1UTypes0" doxytag="NL3D::CTextureMem::NullPtrInfo" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03320.html">CRefCount::CPtrInfo</a> <a class="el" href="a02209.html#NLGEORGES_1_1UTypes0">NLMISC::CRefCount::NullPtrInfo</a><code> [static, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Referenced by <a class="el" href="a06402.html#l00085">NLMISC::CRefCount::CRefCount()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NLGEORGES_1_1UTypeo1" doxytag="NL3D::CTextureMem::pinfo" ></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"> CPtrInfo* <a class="el" href="a02209.html#NLGEORGES_1_1UTypeo1">NLMISC::CRefCount::pinfo</a><code> [mutable, inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06402.html#l00080">80</a> of file <a class="el" href="a06402.html">smart_ptr.h</a>.
<p>
Referenced by <a class="el" href="a06402.html#l00085">NLMISC::CRefCount::CRefCount()</a>, and <a class="el" href="a06403.html#l00044">NLMISC::CRefCount::~CRefCount()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITextureo3" doxytag="NL3D::CTextureMem::PixelFormat" ></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"> enum <a class="el" href="a02268.html#NL3D_1_1ITexturew31">NLMISC::CBitmap::TType</a>  <a class="el" href="a02268.html#NL3D_1_1ITextureo3">NLMISC::CBitmap::PixelFormat</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Referenced by <a class="el" href="a05486.html#l00762">NLMISC::CBitmap::alphaLuminanceToAlpha()</a>, <a class="el" href="a05486.html#l00677">NLMISC::CBitmap::alphaLuminanceToLuminance()</a>, <a class="el" href="a05486.html#l00519">NLMISC::CBitmap::alphaLuminanceToRGBA()</a>, <a class="el" href="a05486.html#l00607">NLMISC::CBitmap::alphaToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00664">NLMISC::CBitmap::alphaToLuminance()</a>, <a class="el" href="a05486.html#l00490">NLMISC::CBitmap::alphaToRGBA()</a>, <a class="el" href="a05486.html#l02817">NLMISC::CBitmap::blend()</a>, <a class="el" href="a05486.html#l02332">NLMISC::CBitmap::blit()</a>, <a class="el" href="a06521.html#l00041">NL3D::CTextureFile::buildBitmapFromFile()</a>, <a class="el" href="a05486.html#l01422">NLMISC::CBitmap::buildMipMaps()</a>, <a class="el" href="a05487.html#l00254">NLMISC::CBitmap::CBitmap()</a>, <a class="el" href="a05486.html#l00821">NLMISC::CBitmap::convertToAlpha()</a>, <a class="el" href="a05486.html#l00852">NLMISC::CBitmap::convertToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00790">NLMISC::CBitmap::convertToLuminance()</a>, <a class="el" href="a05486.html#l00882">NLMISC::CBitmap::convertToRGBA()</a>, <a class="el" href="a05486.html#l00926">NLMISC::CBitmap::convertToType()</a>, <a class="el" href="a05486.html#l00965">NLMISC::CBitmap::decompressDXT1()</a>, <a class="el" href="a05486.html#l01090">NLMISC::CBitmap::decompressDXT3()</a>, <a class="el" href="a05486.html#l01200">NLMISC::CBitmap::decompressDXT5()</a>, <a class="el" href="a05486.html#l02682">NLMISC::CBitmap::flipH()</a>, <a class="el" href="a05486.html#l02714">NLMISC::CBitmap::flipV()</a>, <a class="el" href="a05486.html#l02470">NLMISC::CBitmap::getColor()</a>, <a class="el" href="a05486.html#l03134">NLMISC::CBitmap::getPixelColor()</a>, <a class="el" href="a05487.html#l00335">NLMISC::CBitmap::getPixelFormat()</a>, <a class="el" href="a05486.html#l00736">NLMISC::CBitmap::luminanceToAlpha()</a>, <a class="el" href="a05486.html#l00579">NLMISC::CBitmap::luminanceToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00462">NLMISC::CBitmap::luminanceToRGBA()</a>, <a class="el" href="a05486.html#l00184">NLMISC::CBitmap::makeDummy()</a>, <a class="el" href="a05486.html#l00244">NLMISC::CBitmap::readDDS()</a>, <a class="el" href="a05486.html#l01800">NLMISC::CBitmap::readTGA()</a>, <a class="el" href="a05486.html#l01508">NLMISC::CBitmap::resample()</a>, <a class="el" href="a05486.html#l01599">NLMISC::CBitmap::reset()</a>, <a class="el" href="a05486.html#l01545">NLMISC::CBitmap::resize()</a>, <a class="el" href="a05486.html#l01565">NLMISC::CBitmap::resizeMipMap()</a>, <a class="el" href="a05486.html#l00708">NLMISC::CBitmap::rgbaToAlpha()</a>, <a class="el" href="a05486.html#l00550">NLMISC::CBitmap::rgbaToAlphaLuminance()</a>, <a class="el" href="a05486.html#l00635">NLMISC::CBitmap::rgbaToLuminance()</a>, <a class="el" href="a05486.html#l02781">NLMISC::CBitmap::rot90CCW()</a>, <a class="el" href="a05486.html#l02746">NLMISC::CBitmap::rot90CW()</a>, <a class="el" href="a05486.html#l02306">NLMISC::CBitmap::rotateCCW()</a>, <a class="el" href="a05652.html#l00322">NL3D::sameDXTCFormat()</a>, and <a class="el" href="a05486.html#l02139">NLMISC::CBitmap::writeTGA()</a>.    </td>
  </tr>
</table>
<a class="anchor" name="NL3D_1_1ITextureo4" doxytag="NL3D::CTextureMem::TextureDrvShare" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="a03321.html">NLMISC::CRefPtr</a>&lt;<a class="el" href="a03496.html">CTextureDrvShare</a>&gt; <a class="el" href="a03487.html#NL3D_1_1ITextureo4">NL3D::ITexture::TextureDrvShare</a><code> [inherited]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="a06506.html#l00416">416</a> of file <a class="el" href="a06506.html">texture.h</a>.
<p>
Referenced by <a class="el" href="a05642.html#l02185">NL3D::CDriverGL::copyFrameBufferToTexture()</a>, <a class="el" href="a05652.html#l00089">NL3D::getTextureGl()</a>, <a class="el" href="a05652.html#l01217">NL3D::CDriverGL::getTextureHandle()</a>, <a class="el" href="a06505.html#l00064">NL3D::ITexture::releaseDriverSetup()</a>, <a class="el" href="a06506.html#l00343">NL3D::ITexture::setupedIntoDriver()</a>, <a class="el" href="a05652.html#l00361">NL3D::CDriverGL::setupTextureEx()</a>, <a class="el" href="a05652.html#l00807">NL3D::CDriverGL::uploadTexture()</a>, and <a class="el" href="a05652.html#l00930">NL3D::CDriverGL::uploadTextureCube()</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a06528.html">texture_mem.h</a><li><a class="el" href="a06527.html">texture_mem.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:01:10 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>