File: openctm_8h.html

package info (click to toggle)
openctm 1.0.3%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,692 kB
  • sloc: ansic: 9,241; cpp: 5,199; python: 735; makefile: 30
file content (1738 lines) | stat: -rw-r--r-- 125,055 bytes parent folder | download | duplicates (4)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OpenCTM: openctm.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>openctm.h File Reference</h1><code>#include &lt;stdint.h&gt;</code><br/>

<p><a href="openctm_8h_source.html">Go to the source code of this file.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a909fd88252d88bd84095aba982900e7f">CTM_API_VERSION</a>&nbsp;&nbsp;&nbsp;0x00000100</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">OpenCTM API version (1.0).  <a href="#a909fd88252d88bd84095aba982900e7f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a2004bfa9db3f5d6e07411d1bea3a573a">CTM_TRUE</a>&nbsp;&nbsp;&nbsp;1</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Boolean TRUE.  <a href="#a2004bfa9db3f5d6e07411d1bea3a573a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#aeab5b58ecb1449e95f577b59e4803314">CTM_FALSE</a>&nbsp;&nbsp;&nbsp;0</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Boolean FALSE.  <a href="#aeab5b58ecb1449e95f577b59e4803314"></a><br/></td></tr>
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Single precision floating point type (IEEE 754 32 bits wide).  <a href="#af8b7eeaefac4d6ad39d11c3f7be8afa2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef int32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a4c1dde73baa8f68242cc922cf85f2096">CTMint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signed integer (32 bits wide).  <a href="#a4c1dde73baa8f68242cc922cf85f2096"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unsigned integer (32 bits wide).  <a href="#ac5ea1beb64d415c241f2abf35eeb6c48"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef void *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">OpenCTM context handle.  <a href="#a7062b4f48dc6d1b736ac93955acf3888"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>(CTMCALL *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#ad2fb8fd3b5997a557d8aba2385ed849b">CTMreadfn</a> )(void *aBuf, <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> aCount, void *aUserData)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stream read() function pointer.  <a href="#ad2fb8fd3b5997a557d8aba2385ed849b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>(CTMCALL *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a2428bc1bf2cf2e1af05d132dca892f5b">CTMwritefn</a> )(const void *aBuf, <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> aCount, void *aUserData)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stream write() function pointer.  <a href="#a2428bc1bf2cf2e1af05d132dca892f5b"></a><br/></td></tr>
<tr><td colspan="2"><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> { <br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625abf60b318c307c84b240d374d07ff6bf5">CTM_NONE</a> =  0x0000, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ae8246d2a7b2e7d3cced72f7460e9d5d1">CTM_INVALID_CONTEXT</a> =  0x0001, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625abdfdbc82040b419dbc9906baed538704">CTM_INVALID_ARGUMENT</a> =  0x0002, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625af38eb5e0bd49e7321c4ebd2d1a0a580b">CTM_INVALID_OPERATION</a> =  0x0003, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a245e25dc7e5bfd88c03d5c52eebfdf29">CTM_INVALID_MESH</a> =  0x0004, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a43202555b9cfdecf32bdf7b9807056f7">CTM_OUT_OF_MEMORY</a> =  0x0005, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a0280fc2383ee4d5c613744c9c68cdafb">CTM_FILE_ERROR</a> =  0x0006, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a607254e23f6dd9ea46f9ed3b01331844">CTM_BAD_FORMAT</a> =  0x0007, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a5492e61ffa160ff720c89221660dbbf8">CTM_LZMA_ERROR</a> =  0x0008, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a97d27f42581866aa1413999b6f448191">CTM_INTERNAL_ERROR</a> =  0x0009, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ad3e0a5ee55e26e23f43b28dd61e72f16">CTM_UNSUPPORTED_FORMAT_VERSION</a> =  0x000A, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a98b76ddee5519228fb8864e7929e5f00">CTM_IMPORT</a> =  0x0101, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a4d156b19083ce49d4b8a6da287d6f5d3">CTM_EXPORT</a> =  0x0102, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a4ba5bf3da62c7292644723b227a5cce8">CTM_METHOD_RAW</a> =  0x0201, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625aeb7ddc6f328ec73944a2fcb20472341b">CTM_METHOD_MG1</a> =  0x0202, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ae52e3f40682c9e56be588a4661f8dc0c">CTM_METHOD_MG2</a> =  0x0203, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625af7d1a8887b82dc448f9d774e8874d98a">CTM_VERTEX_COUNT</a> =  0x0301, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a6d97b09d2d5da53c7c3bad5c5f30e51d">CTM_TRIANGLE_COUNT</a> =  0x0302, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625adcbea5e453256bbbb3dc369e9f9fd872">CTM_HAS_NORMALS</a> =  0x0303, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a87b3013d9d9c151ca9eae64e74f981bd">CTM_UV_MAP_COUNT</a> =  0x0304, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625aa0b3c108352ad1dbdb60ca6f57e921a4">CTM_ATTRIB_MAP_COUNT</a> =  0x0305, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a7b32280d8591167a42904920934b8f51">CTM_VERTEX_PRECISION</a> =  0x0306, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ae63ebc86a051e3f43492eb051eab9e97">CTM_NORMAL_PRECISION</a> =  0x0307, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ae25493f9fd4ddc3e06043078a8c23e20">CTM_COMPRESSION_METHOD</a> =  0x0308, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625aa4b62d1802dd335fd7bfee2ed25c4c4d">CTM_FILE_COMMENT</a> =  0x0309, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a3e3d28e72ec322ba63f94d77551c5ede">CTM_NAME</a> =  0x0501, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ae9adc5919726099c90ea9ba732e85b6c">CTM_FILE_NAME</a> =  0x0502, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ada5784c8eb3143ee996d31214d46b0d4">CTM_PRECISION</a> =  0x0503, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625aa7ec8fe7061e8a336530ee0448073206">CTM_INDICES</a> =  0x0601, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625af7e80243674806368e9e29e9e2bf8d55">CTM_VERTICES</a> =  0x0602, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a02185a711fd216acee2171e46653855e">CTM_NORMALS</a> =  0x0603, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a9096ee63af274788fe101c75c08b49f6">CTM_UV_MAP_1</a> =  0x0700, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a104b93d0bfa7344406c68a45da3f616f">CTM_UV_MAP_2</a> =  0x0701, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a2543bac2bdc3931d37e0465f761060be">CTM_UV_MAP_3</a> =  0x0702, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625acc9b387f30b02c370decac35a253b7a0">CTM_UV_MAP_4</a> =  0x0703, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ad96f31e47775ac51ca393b19525cd8cc">CTM_UV_MAP_5</a> =  0x0704, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625acda599be9fff226924d075c3b09dad7b">CTM_UV_MAP_6</a> =  0x0705, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a4ca0e7ec8e66c772f449be1f4749414b">CTM_UV_MAP_7</a> =  0x0706, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625aeae61f9c3e9cded4a7f8059d0acc41a3">CTM_UV_MAP_8</a> =  0x0707, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a37c9dffce89ec51e9767e1f9a38e51bd">CTM_ATTRIB_MAP_1</a> =  0x0800, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625adc4a982b27a02157edff941636063827">CTM_ATTRIB_MAP_2</a> =  0x0801, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ad991095653802528246723d3ed82b532">CTM_ATTRIB_MAP_3</a> =  0x0802, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a0f79e8024cea635758c0cf51b24853c6">CTM_ATTRIB_MAP_4</a> =  0x0803, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a224d8bba1ab7b7de0ea4ef6ac4b5dc7e">CTM_ATTRIB_MAP_5</a> =  0x0804, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a2ee3e625af252ef1771136c144cda838">CTM_ATTRIB_MAP_6</a> =  0x0805, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a99d3f4511629bb006cfcfa12b4db323a">CTM_ATTRIB_MAP_7</a> =  0x0806, 
<br/>
&nbsp;&nbsp;<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a2d749b6c2b0a1384c28ad19f491db31e">CTM_ATTRIB_MAP_8</a> =  0x0807
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>OpenCTM specific enumerators. </p>
 <a href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837">ctmNewContext</a> (<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aMode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create a new OpenCTM context.  <a href="#a3ca20da713005b0c6afb9b5f21640837"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#aeb16fd3054a19415be90de4968b21a3a">ctmFreeContext</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Free an OpenCTM context.  <a href="#aeb16fd3054a19415be90de4968b21a3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a2bbaed33a6809affc4a61469f6676bdf">ctmGetError</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the latest error.  <a href="#a2bbaed33a6809affc4a61469f6676bdf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT const char *CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a3071b834da6a9cdd684ec733de70cbf2">ctmErrorString</a> (<a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aError)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts an OpenCTM error code to a zero-terminated string.  <a href="#a3071b834da6a9cdd684ec733de70cbf2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a4012ac28aa780819e40ee118d7c6578e">ctmGetInteger</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about an OpenCTM context.  <a href="#a4012ac28aa780819e40ee118d7c6578e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#abe7389b3a396a86a3a1c5d5c6f68183d">ctmGetFloat</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about an OpenCTM context.  <a href="#abe7389b3a396a86a3a1c5d5c6f68183d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT const <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> *CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#ae202716acce7a97668654052dc4d0bef">ctmGetIntegerArray</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get an integer array from an OpenCTM context.  <a href="#ae202716acce7a97668654052dc4d0bef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#abdfcfede5d37c75e78cae989dc71e248">ctmGetFloatArray</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a floating point array from an OpenCTM context.  <a href="#abdfcfede5d37c75e78cae989dc71e248"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a43c2d19741ba53f695a4119e594d6069">ctmGetNamedUVMap</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const char *aName)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a reference to the named UV map.  <a href="#a43c2d19741ba53f695a4119e594d6069"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT const char *CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a2d689ee3371296b68899d564d5a1f998">ctmGetUVMapString</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aUVMap, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about a UV map.  <a href="#a2d689ee3371296b68899d564d5a1f998"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#afad1b100b9f2fe4bf0dfc36cb39ec615">ctmGetUVMapFloat</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aUVMap, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about a UV map.  <a href="#afad1b100b9f2fe4bf0dfc36cb39ec615"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a15692de5d6e93adf8bed8d06d88c905c">ctmGetNamedAttribMap</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const char *aName)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a reference to the named vertex attribute map.  <a href="#a15692de5d6e93adf8bed8d06d88c905c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT const char *CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a841d7c1e0bafd57ee36ccbbc74470b68">ctmGetAttribMapString</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aAttribMap, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about a vertex attribute map.  <a href="#a841d7c1e0bafd57ee36ccbbc74470b68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a7c297f9b6d486f47596cff184602a65d">ctmGetAttribMapFloat</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aAttribMap, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about a vertex attribute map.  <a href="#a7c297f9b6d486f47596cff184602a65d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT const char *CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a4e4269df157eb2d117259c69a331e339">ctmGetString</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aProperty)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about an OpenCTM context.  <a href="#a4e4269df157eb2d117259c69a331e339"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#af4ac8e534f59be4edacc39753cf54693">ctmCompressionMethod</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aMethod)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set which compression method to use for the given OpenCTM context.  <a href="#af4ac8e534f59be4edacc39753cf54693"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#aa2902c49b904a7557fdd012e303c720e">ctmCompressionLevel</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> aLevel)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set which LZMA compression level to use for the given OpenCTM context.  <a href="#aa2902c49b904a7557fdd012e303c720e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#af4191357f51161a16ff886d18ec848d8">ctmVertexPrecision</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> aPrecision)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the vertex coordinate precision (only used by the MG2 compression method).  <a href="#af4191357f51161a16ff886d18ec848d8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#ade23eb25fa9d5cd1d932bc1203476f27">ctmVertexPrecisionRel</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> aRelPrecision)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the vertex coordinate precision, relative to the mesh dimensions (only used by the MG2 compression method).  <a href="#ade23eb25fa9d5cd1d932bc1203476f27"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a07d8b47a0e642d0d8c77cf18e8d354a5">ctmNormalPrecision</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> aPrecision)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the normal precision (only used by the MG2 compression method).  <a href="#a07d8b47a0e642d0d8c77cf18e8d354a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#ac1a75abbf04281acaff4f6f1f9516039">ctmUVCoordPrecision</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aUVMap, <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> aPrecision)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the coordinate precision for the specified UV map (only used by the MG2 compression method).  <a href="#ac1a75abbf04281acaff4f6f1f9516039"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a8af7af38bd9340838b43805b81698777">ctmAttribPrecision</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> aAttribMap, <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> aPrecision)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the attribute value precision for the specified attribute map (only used by the MG2 compression method).  <a href="#a8af7af38bd9340838b43805b81698777"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a2225924b06488421ee6b9a8505782a25">ctmFileComment</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const char *aFileComment)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the file comment for the given OpenCTM context.  <a href="#a2225924b06488421ee6b9a8505782a25"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a1cb648e89121ae67f5a8b9e5a8f41c4d">ctmDefineMesh</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *aVertices, <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> aVertexCount, const <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> *aIndices, <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> aTriangleCount, const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *aNormals)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Define a triangle mesh.  <a href="#a1cb648e89121ae67f5a8b9e5a8f41c4d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a44345560299ac49dfd502d0470f05e0f">ctmAddUVMap</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *aUVCoords, const char *aName, const char *aFileName)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Define a UV map.  <a href="#a44345560299ac49dfd502d0470f05e0f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a920a8fed6bef834db0b241fc5c9bba03">ctmAddAttribMap</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *aAttribValues, const char *aName)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Define a custom vertex attribute map.  <a href="#a920a8fed6bef834db0b241fc5c9bba03"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a99a57706d438c5654adbc9646058dc01">ctmLoad</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const char *aFileName)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load an OpenCTM format file into the context.  <a href="#a99a57706d438c5654adbc9646058dc01"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a99699bcbd4cbe0942a22498671af107e">ctmLoadCustom</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#ad2fb8fd3b5997a557d8aba2385ed849b">CTMreadfn</a> aReadFn, void *aUserData)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Load an OpenCTM format file using a custom stream read function.  <a href="#a99699bcbd4cbe0942a22498671af107e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#acde994008b0b3321bad9f3bbfacb12db">ctmSave</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, const char *aFileName)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Save an OpenCTM format file.  <a href="#acde994008b0b3321bad9f3bbfacb12db"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">CTMEXPORT void CTMCALL&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="openctm_8h.html#a7e62ca5548a34ed0e126fd4f7b77ef3f">ctmSaveCustom</a> (<a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> aContext, <a class="el" href="openctm_8h.html#a2428bc1bf2cf2e1af05d132dca892f5b">CTMwritefn</a> aWriteFn, void *aUserData)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Save an OpenCTM format file using a custom stream write function.  <a href="#a7e62ca5548a34ed0e126fd4f7b77ef3f"></a><br/></td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a909fd88252d88bd84095aba982900e7f"></a><!-- doxytag: member="openctm.h::CTM_API_VERSION" ref="a909fd88252d88bd84095aba982900e7f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CTM_API_VERSION&nbsp;&nbsp;&nbsp;0x00000100</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>OpenCTM API version (1.0). </p>

</div>
</div>
<a class="anchor" id="aeab5b58ecb1449e95f577b59e4803314"></a><!-- doxytag: member="openctm.h::CTM_FALSE" ref="aeab5b58ecb1449e95f577b59e4803314" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CTM_FALSE&nbsp;&nbsp;&nbsp;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Boolean FALSE. </p>

</div>
</div>
<a class="anchor" id="a2004bfa9db3f5d6e07411d1bea3a573a"></a><!-- doxytag: member="openctm.h::CTM_TRUE" ref="a2004bfa9db3f5d6e07411d1bea3a573a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CTM_TRUE&nbsp;&nbsp;&nbsp;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Boolean TRUE. </p>

</div>
</div>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="a7062b4f48dc6d1b736ac93955acf3888"></a><!-- doxytag: member="openctm.h::CTMcontext" ref="a7062b4f48dc6d1b736ac93955acf3888" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void* <a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>OpenCTM context handle. </p>

</div>
</div>
<a class="anchor" id="af8b7eeaefac4d6ad39d11c3f7be8afa2"></a><!-- doxytag: member="openctm.h::CTMfloat" ref="af8b7eeaefac4d6ad39d11c3f7be8afa2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef float <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Single precision floating point type (IEEE 754 32 bits wide). </p>

</div>
</div>
<a class="anchor" id="a4c1dde73baa8f68242cc922cf85f2096"></a><!-- doxytag: member="openctm.h::CTMint" ref="a4c1dde73baa8f68242cc922cf85f2096" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int32_t <a class="el" href="openctm_8h.html#a4c1dde73baa8f68242cc922cf85f2096">CTMint</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Signed integer (32 bits wide). </p>

</div>
</div>
<a class="anchor" id="ad2fb8fd3b5997a557d8aba2385ed849b"></a><!-- doxytag: member="openctm.h::CTMreadfn" ref="ad2fb8fd3b5997a557d8aba2385ed849b" args=")(void *aBuf, CTMuint aCount, void *aUserData)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>(CTMCALL * <a class="el" href="openctm_8h.html#ad2fb8fd3b5997a557d8aba2385ed849b">CTMreadfn</a>)(void *aBuf, <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> aCount, void *aUserData)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stream read() function pointer. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aBuf</em>&nbsp;</td><td>Pointer to the memory buffer to which data should be read. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aCount</em>&nbsp;</td><td>The number of bytes to read. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUserData</em>&nbsp;</td><td>The custom user data that was passed to the <a class="el" href="openctm_8h.html#a99699bcbd4cbe0942a22498671af107e" title="Load an OpenCTM format file using a custom stream read function.">ctmLoadCustom()</a> function. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of bytes actually read (if this is less than aCount, it indicates that an error occured or the end of file was reached before all bytes were read). </dd></dl>

</div>
</div>
<a class="anchor" id="ac5ea1beb64d415c241f2abf35eeb6c48"></a><!-- doxytag: member="openctm.h::CTMuint" ref="ac5ea1beb64d415c241f2abf35eeb6c48" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef uint32_t <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Unsigned integer (32 bits wide). </p>

</div>
</div>
<a class="anchor" id="a2428bc1bf2cf2e1af05d132dca892f5b"></a><!-- doxytag: member="openctm.h::CTMwritefn" ref="a2428bc1bf2cf2e1af05d132dca892f5b" args=")(const void *aBuf, CTMuint aCount, void *aUserData)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>(CTMCALL * <a class="el" href="openctm_8h.html#a2428bc1bf2cf2e1af05d132dca892f5b">CTMwritefn</a>)(const void *aBuf, <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> aCount, void *aUserData)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Stream write() function pointer. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aBuf</em>&nbsp;</td><td>Pointer to the memory buffer from which data should be written. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aCount</em>&nbsp;</td><td>The number of bytes to write. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUserData</em>&nbsp;</td><td>The custom user data that was passed to the <a class="el" href="openctm_8h.html#a7e62ca5548a34ed0e126fd4f7b77ef3f" title="Save an OpenCTM format file using a custom stream write function.">ctmSaveCustom()</a> function. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>The number of bytes actually written (if this is less than aCount, it indicates that an error occured). </dd></dl>

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625"></a><!-- doxytag: member="openctm.h::CTMenum" ref="a0f5efe622ac5146c4505d49860ce5625" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>OpenCTM specific enumerators. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>For the information query functions, it is an error to query a value of the wrong type (e.g. to query a string value with the <a class="el" href="openctm_8h.html#a4012ac28aa780819e40ee118d7c6578e" title="Get information about an OpenCTM context.">ctmGetInteger()</a> function). </dd></dl>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625abf60b318c307c84b240d374d07ff6bf5"></a><!-- doxytag: member="CTM_NONE" ref="a0f5efe622ac5146c4505d49860ce5625abf60b318c307c84b240d374d07ff6bf5" args="" -->CTM_NONE</em>&nbsp;</td><td>
<p>No error has occured (everything is OK). </p>
<p>Also used as an error return value for functions that should return a CTMenum value. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ae8246d2a7b2e7d3cced72f7460e9d5d1"></a><!-- doxytag: member="CTM_INVALID_CONTEXT" ref="a0f5efe622ac5146c4505d49860ce5625ae8246d2a7b2e7d3cced72f7460e9d5d1" args="" -->CTM_INVALID_CONTEXT</em>&nbsp;</td><td>
<p>The OpenCTM context was invalid (e.g. NULL). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625abdfdbc82040b419dbc9906baed538704"></a><!-- doxytag: member="CTM_INVALID_ARGUMENT" ref="a0f5efe622ac5146c4505d49860ce5625abdfdbc82040b419dbc9906baed538704" args="" -->CTM_INVALID_ARGUMENT</em>&nbsp;</td><td>
<p>A function argument was invalid. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625af38eb5e0bd49e7321c4ebd2d1a0a580b"></a><!-- doxytag: member="CTM_INVALID_OPERATION" ref="a0f5efe622ac5146c4505d49860ce5625af38eb5e0bd49e7321c4ebd2d1a0a580b" args="" -->CTM_INVALID_OPERATION</em>&nbsp;</td><td>
<p>The operation is not allowed. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a245e25dc7e5bfd88c03d5c52eebfdf29"></a><!-- doxytag: member="CTM_INVALID_MESH" ref="a0f5efe622ac5146c4505d49860ce5625a245e25dc7e5bfd88c03d5c52eebfdf29" args="" -->CTM_INVALID_MESH</em>&nbsp;</td><td>
<p>The mesh was invalid (e.g. no vertices). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a43202555b9cfdecf32bdf7b9807056f7"></a><!-- doxytag: member="CTM_OUT_OF_MEMORY" ref="a0f5efe622ac5146c4505d49860ce5625a43202555b9cfdecf32bdf7b9807056f7" args="" -->CTM_OUT_OF_MEMORY</em>&nbsp;</td><td>
<p>Not enough memory to proceed. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a0280fc2383ee4d5c613744c9c68cdafb"></a><!-- doxytag: member="CTM_FILE_ERROR" ref="a0f5efe622ac5146c4505d49860ce5625a0280fc2383ee4d5c613744c9c68cdafb" args="" -->CTM_FILE_ERROR</em>&nbsp;</td><td>
<p>File I/O error. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a607254e23f6dd9ea46f9ed3b01331844"></a><!-- doxytag: member="CTM_BAD_FORMAT" ref="a0f5efe622ac5146c4505d49860ce5625a607254e23f6dd9ea46f9ed3b01331844" args="" -->CTM_BAD_FORMAT</em>&nbsp;</td><td>
<p>File format error (e.g. unrecognized format or corrupted file). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a5492e61ffa160ff720c89221660dbbf8"></a><!-- doxytag: member="CTM_LZMA_ERROR" ref="a0f5efe622ac5146c4505d49860ce5625a5492e61ffa160ff720c89221660dbbf8" args="" -->CTM_LZMA_ERROR</em>&nbsp;</td><td>
<p>An error occured within the LZMA library. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a97d27f42581866aa1413999b6f448191"></a><!-- doxytag: member="CTM_INTERNAL_ERROR" ref="a0f5efe622ac5146c4505d49860ce5625a97d27f42581866aa1413999b6f448191" args="" -->CTM_INTERNAL_ERROR</em>&nbsp;</td><td>
<p>An internal error occured (indicates a bug). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ad3e0a5ee55e26e23f43b28dd61e72f16"></a><!-- doxytag: member="CTM_UNSUPPORTED_FORMAT_VERSION" ref="a0f5efe622ac5146c4505d49860ce5625ad3e0a5ee55e26e23f43b28dd61e72f16" args="" -->CTM_UNSUPPORTED_FORMAT_VERSION</em>&nbsp;</td><td>
<p>Unsupported file format version. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a98b76ddee5519228fb8864e7929e5f00"></a><!-- doxytag: member="CTM_IMPORT" ref="a0f5efe622ac5146c4505d49860ce5625a98b76ddee5519228fb8864e7929e5f00" args="" -->CTM_IMPORT</em>&nbsp;</td><td>
<p>The OpenCTM context will be used for importing data. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a4d156b19083ce49d4b8a6da287d6f5d3"></a><!-- doxytag: member="CTM_EXPORT" ref="a0f5efe622ac5146c4505d49860ce5625a4d156b19083ce49d4b8a6da287d6f5d3" args="" -->CTM_EXPORT</em>&nbsp;</td><td>
<p>The OpenCTM context will be used for exporting data. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a4ba5bf3da62c7292644723b227a5cce8"></a><!-- doxytag: member="CTM_METHOD_RAW" ref="a0f5efe622ac5146c4505d49860ce5625a4ba5bf3da62c7292644723b227a5cce8" args="" -->CTM_METHOD_RAW</em>&nbsp;</td><td>
<p>Just store the raw data. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625aeb7ddc6f328ec73944a2fcb20472341b"></a><!-- doxytag: member="CTM_METHOD_MG1" ref="a0f5efe622ac5146c4505d49860ce5625aeb7ddc6f328ec73944a2fcb20472341b" args="" -->CTM_METHOD_MG1</em>&nbsp;</td><td>
<p>Lossless compression (floating point). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ae52e3f40682c9e56be588a4661f8dc0c"></a><!-- doxytag: member="CTM_METHOD_MG2" ref="a0f5efe622ac5146c4505d49860ce5625ae52e3f40682c9e56be588a4661f8dc0c" args="" -->CTM_METHOD_MG2</em>&nbsp;</td><td>
<p>Lossless compression (fixed point). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625af7d1a8887b82dc448f9d774e8874d98a"></a><!-- doxytag: member="CTM_VERTEX_COUNT" ref="a0f5efe622ac5146c4505d49860ce5625af7d1a8887b82dc448f9d774e8874d98a" args="" -->CTM_VERTEX_COUNT</em>&nbsp;</td><td>
<p>Number of vertices in the mesh (integer). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a6d97b09d2d5da53c7c3bad5c5f30e51d"></a><!-- doxytag: member="CTM_TRIANGLE_COUNT" ref="a0f5efe622ac5146c4505d49860ce5625a6d97b09d2d5da53c7c3bad5c5f30e51d" args="" -->CTM_TRIANGLE_COUNT</em>&nbsp;</td><td>
<p>Number of triangles in the mesh (integer). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625adcbea5e453256bbbb3dc369e9f9fd872"></a><!-- doxytag: member="CTM_HAS_NORMALS" ref="a0f5efe622ac5146c4505d49860ce5625adcbea5e453256bbbb3dc369e9f9fd872" args="" -->CTM_HAS_NORMALS</em>&nbsp;</td><td>
<p>CTM_TRUE if the mesh has normals (integer). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a87b3013d9d9c151ca9eae64e74f981bd"></a><!-- doxytag: member="CTM_UV_MAP_COUNT" ref="a0f5efe622ac5146c4505d49860ce5625a87b3013d9d9c151ca9eae64e74f981bd" args="" -->CTM_UV_MAP_COUNT</em>&nbsp;</td><td>
<p>Number of UV coordinate sets (integer). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625aa0b3c108352ad1dbdb60ca6f57e921a4"></a><!-- doxytag: member="CTM_ATTRIB_MAP_COUNT" ref="a0f5efe622ac5146c4505d49860ce5625aa0b3c108352ad1dbdb60ca6f57e921a4" args="" -->CTM_ATTRIB_MAP_COUNT</em>&nbsp;</td><td>
<p>Number of custom attribute sets (integer). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a7b32280d8591167a42904920934b8f51"></a><!-- doxytag: member="CTM_VERTEX_PRECISION" ref="a0f5efe622ac5146c4505d49860ce5625a7b32280d8591167a42904920934b8f51" args="" -->CTM_VERTEX_PRECISION</em>&nbsp;</td><td>
<p>Vertex precision - for MG2 (float). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ae63ebc86a051e3f43492eb051eab9e97"></a><!-- doxytag: member="CTM_NORMAL_PRECISION" ref="a0f5efe622ac5146c4505d49860ce5625ae63ebc86a051e3f43492eb051eab9e97" args="" -->CTM_NORMAL_PRECISION</em>&nbsp;</td><td>
<p>Normal precision - for MG2 (float). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ae25493f9fd4ddc3e06043078a8c23e20"></a><!-- doxytag: member="CTM_COMPRESSION_METHOD" ref="a0f5efe622ac5146c4505d49860ce5625ae25493f9fd4ddc3e06043078a8c23e20" args="" -->CTM_COMPRESSION_METHOD</em>&nbsp;</td><td>
<p>Compression method (integer). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625aa4b62d1802dd335fd7bfee2ed25c4c4d"></a><!-- doxytag: member="CTM_FILE_COMMENT" ref="a0f5efe622ac5146c4505d49860ce5625aa4b62d1802dd335fd7bfee2ed25c4c4d" args="" -->CTM_FILE_COMMENT</em>&nbsp;</td><td>
<p>File comment (string). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a3e3d28e72ec322ba63f94d77551c5ede"></a><!-- doxytag: member="CTM_NAME" ref="a0f5efe622ac5146c4505d49860ce5625a3e3d28e72ec322ba63f94d77551c5ede" args="" -->CTM_NAME</em>&nbsp;</td><td>
<p>Unique name (UV/attrib map string). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ae9adc5919726099c90ea9ba732e85b6c"></a><!-- doxytag: member="CTM_FILE_NAME" ref="a0f5efe622ac5146c4505d49860ce5625ae9adc5919726099c90ea9ba732e85b6c" args="" -->CTM_FILE_NAME</em>&nbsp;</td><td>
<p>File name reference (UV map string). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ada5784c8eb3143ee996d31214d46b0d4"></a><!-- doxytag: member="CTM_PRECISION" ref="a0f5efe622ac5146c4505d49860ce5625ada5784c8eb3143ee996d31214d46b0d4" args="" -->CTM_PRECISION</em>&nbsp;</td><td>
<p>Value precision (UV/attrib map float). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625aa7ec8fe7061e8a336530ee0448073206"></a><!-- doxytag: member="CTM_INDICES" ref="a0f5efe622ac5146c4505d49860ce5625aa7ec8fe7061e8a336530ee0448073206" args="" -->CTM_INDICES</em>&nbsp;</td><td>
<p>Triangle indices (integer array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625af7e80243674806368e9e29e9e2bf8d55"></a><!-- doxytag: member="CTM_VERTICES" ref="a0f5efe622ac5146c4505d49860ce5625af7e80243674806368e9e29e9e2bf8d55" args="" -->CTM_VERTICES</em>&nbsp;</td><td>
<p>Vertex point coordinates (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a02185a711fd216acee2171e46653855e"></a><!-- doxytag: member="CTM_NORMALS" ref="a0f5efe622ac5146c4505d49860ce5625a02185a711fd216acee2171e46653855e" args="" -->CTM_NORMALS</em>&nbsp;</td><td>
<p>Per vertex normals (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a9096ee63af274788fe101c75c08b49f6"></a><!-- doxytag: member="CTM_UV_MAP_1" ref="a0f5efe622ac5146c4505d49860ce5625a9096ee63af274788fe101c75c08b49f6" args="" -->CTM_UV_MAP_1</em>&nbsp;</td><td>
<p>Per vertex UV map 1 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a104b93d0bfa7344406c68a45da3f616f"></a><!-- doxytag: member="CTM_UV_MAP_2" ref="a0f5efe622ac5146c4505d49860ce5625a104b93d0bfa7344406c68a45da3f616f" args="" -->CTM_UV_MAP_2</em>&nbsp;</td><td>
<p>Per vertex UV map 2 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a2543bac2bdc3931d37e0465f761060be"></a><!-- doxytag: member="CTM_UV_MAP_3" ref="a0f5efe622ac5146c4505d49860ce5625a2543bac2bdc3931d37e0465f761060be" args="" -->CTM_UV_MAP_3</em>&nbsp;</td><td>
<p>Per vertex UV map 3 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625acc9b387f30b02c370decac35a253b7a0"></a><!-- doxytag: member="CTM_UV_MAP_4" ref="a0f5efe622ac5146c4505d49860ce5625acc9b387f30b02c370decac35a253b7a0" args="" -->CTM_UV_MAP_4</em>&nbsp;</td><td>
<p>Per vertex UV map 4 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ad96f31e47775ac51ca393b19525cd8cc"></a><!-- doxytag: member="CTM_UV_MAP_5" ref="a0f5efe622ac5146c4505d49860ce5625ad96f31e47775ac51ca393b19525cd8cc" args="" -->CTM_UV_MAP_5</em>&nbsp;</td><td>
<p>Per vertex UV map 5 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625acda599be9fff226924d075c3b09dad7b"></a><!-- doxytag: member="CTM_UV_MAP_6" ref="a0f5efe622ac5146c4505d49860ce5625acda599be9fff226924d075c3b09dad7b" args="" -->CTM_UV_MAP_6</em>&nbsp;</td><td>
<p>Per vertex UV map 6 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a4ca0e7ec8e66c772f449be1f4749414b"></a><!-- doxytag: member="CTM_UV_MAP_7" ref="a0f5efe622ac5146c4505d49860ce5625a4ca0e7ec8e66c772f449be1f4749414b" args="" -->CTM_UV_MAP_7</em>&nbsp;</td><td>
<p>Per vertex UV map 7 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625aeae61f9c3e9cded4a7f8059d0acc41a3"></a><!-- doxytag: member="CTM_UV_MAP_8" ref="a0f5efe622ac5146c4505d49860ce5625aeae61f9c3e9cded4a7f8059d0acc41a3" args="" -->CTM_UV_MAP_8</em>&nbsp;</td><td>
<p>Per vertex UV map 8 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a37c9dffce89ec51e9767e1f9a38e51bd"></a><!-- doxytag: member="CTM_ATTRIB_MAP_1" ref="a0f5efe622ac5146c4505d49860ce5625a37c9dffce89ec51e9767e1f9a38e51bd" args="" -->CTM_ATTRIB_MAP_1</em>&nbsp;</td><td>
<p>Per vertex attribute map 1 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625adc4a982b27a02157edff941636063827"></a><!-- doxytag: member="CTM_ATTRIB_MAP_2" ref="a0f5efe622ac5146c4505d49860ce5625adc4a982b27a02157edff941636063827" args="" -->CTM_ATTRIB_MAP_2</em>&nbsp;</td><td>
<p>Per vertex attribute map 2 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625ad991095653802528246723d3ed82b532"></a><!-- doxytag: member="CTM_ATTRIB_MAP_3" ref="a0f5efe622ac5146c4505d49860ce5625ad991095653802528246723d3ed82b532" args="" -->CTM_ATTRIB_MAP_3</em>&nbsp;</td><td>
<p>Per vertex attribute map 3 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a0f79e8024cea635758c0cf51b24853c6"></a><!-- doxytag: member="CTM_ATTRIB_MAP_4" ref="a0f5efe622ac5146c4505d49860ce5625a0f79e8024cea635758c0cf51b24853c6" args="" -->CTM_ATTRIB_MAP_4</em>&nbsp;</td><td>
<p>Per vertex attribute map 4 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a224d8bba1ab7b7de0ea4ef6ac4b5dc7e"></a><!-- doxytag: member="CTM_ATTRIB_MAP_5" ref="a0f5efe622ac5146c4505d49860ce5625a224d8bba1ab7b7de0ea4ef6ac4b5dc7e" args="" -->CTM_ATTRIB_MAP_5</em>&nbsp;</td><td>
<p>Per vertex attribute map 5 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a2ee3e625af252ef1771136c144cda838"></a><!-- doxytag: member="CTM_ATTRIB_MAP_6" ref="a0f5efe622ac5146c4505d49860ce5625a2ee3e625af252ef1771136c144cda838" args="" -->CTM_ATTRIB_MAP_6</em>&nbsp;</td><td>
<p>Per vertex attribute map 6 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a99d3f4511629bb006cfcfa12b4db323a"></a><!-- doxytag: member="CTM_ATTRIB_MAP_7" ref="a0f5efe622ac5146c4505d49860ce5625a99d3f4511629bb006cfcfa12b4db323a" args="" -->CTM_ATTRIB_MAP_7</em>&nbsp;</td><td>
<p>Per vertex attribute map 7 (float array). </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a0f5efe622ac5146c4505d49860ce5625a2d749b6c2b0a1384c28ad19f491db31e"></a><!-- doxytag: member="CTM_ATTRIB_MAP_8" ref="a0f5efe622ac5146c4505d49860ce5625a2d749b6c2b0a1384c28ad19f491db31e" args="" -->CTM_ATTRIB_MAP_8</em>&nbsp;</td><td>
<p>Per vertex attribute map 8 (float array). </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a920a8fed6bef834db0b241fc5c9bba03"></a><!-- doxytag: member="openctm.h::ctmAddAttribMap" ref="a920a8fed6bef834db0b241fc5c9bba03" args="(CTMcontext aContext, const CTMfloat *aAttribValues, const char *aName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL ctmAddAttribMap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *&nbsp;</td>
          <td class="paramname"> <em>aAttribValues</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Define a custom vertex attribute map. </p>
<p>Custom vertex attributes can be used for defining special per-vertex attributes, such as color, weight, ambient occlusion factor, etc. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aAttribValues</em>&nbsp;</td><td>An array of attribute values. Each attribute value is made up by four consecutive floats, and there must be as many values as there are vertices in the mesh. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aName</em>&nbsp;</td><td>A unique name for this attribute map (zero terminated UTF-8 string). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A attribute map index (CTM_ATTRIB_MAP_1 and higher). If the function failed, it will return the zero valued CTM_NONE (use <a class="el" href="openctm_8h.html#a2bbaed33a6809affc4a61469f6676bdf" title="Returns the latest error.">ctmGetError()</a> to determine the cause of the error). </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>A triangle mesh must have been defined before calling this function, since the number of vertices is defined by the triangle mesh. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a1cb648e89121ae67f5a8b9e5a8f41c4d" title="Define a triangle mesh.">ctmDefineMesh()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a44345560299ac49dfd502d0470f05e0f"></a><!-- doxytag: member="openctm.h::ctmAddUVMap" ref="a44345560299ac49dfd502d0470f05e0f" args="(CTMcontext aContext, const CTMfloat *aUVCoords, const char *aName, const char *aFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL ctmAddUVMap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *&nbsp;</td>
          <td class="paramname"> <em>aUVCoords</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aFileName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Define a UV map. </p>
<p>There can be several UV maps in a mesh. A UV map is typically used for 2D texture mapping. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUVCoords</em>&nbsp;</td><td>An array of UV coordinates. Each UV coordinate is made up by two consecutive floats, and there must be as many coordinates as there are vertices in the mesh. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aName</em>&nbsp;</td><td>A unique name for this UV map (zero terminated UTF-8 string). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aFileName</em>&nbsp;</td><td>A reference to a image file (zero terminated UTF-8 string). If no file name reference exists, pass NULL. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A UV map index (CTM_UV_MAP_1 and higher). If the function failed, it will return the zero valued CTM_NONE (use <a class="el" href="openctm_8h.html#a2bbaed33a6809affc4a61469f6676bdf" title="Returns the latest error.">ctmGetError()</a> to determine the cause of the error). </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>A triangle mesh must have been defined before calling this function, since the number of vertices is defined by the triangle mesh. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a1cb648e89121ae67f5a8b9e5a8f41c4d" title="Define a triangle mesh.">ctmDefineMesh()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a8af7af38bd9340838b43805b81698777"></a><!-- doxytag: member="openctm.h::ctmAttribPrecision" ref="a8af7af38bd9340838b43805b81698777" args="(CTMcontext aContext, CTMenum aAttribMap, CTMfloat aPrecision)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmAttribPrecision </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aAttribMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a>&nbsp;</td>
          <td class="paramname"> <em>aPrecision</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the attribute value precision for the specified attribute map (only used by the MG2 compression method). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aAttribMap</em>&nbsp;</td><td>An attribute map specifier for a defined attribute map (CTM_ATTRIB_MAP_1, ...). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aPrecision</em>&nbsp;</td><td>Fixed point precision. For instance, if this value is 0.001, all attribute values will be rounded to three decimals. If the attributes represent integer values, set the precision to 1.0. The default attribute precision is 2^-8 ~= 0.0039. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a920a8fed6bef834db0b241fc5c9bba03" title="Define a custom vertex attribute map.">ctmAddAttribMap()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="aa2902c49b904a7557fdd012e303c720e"></a><!-- doxytag: member="openctm.h::ctmCompressionLevel" ref="aa2902c49b904a7557fdd012e303c720e" args="(CTMcontext aContext, CTMuint aLevel)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmCompressionLevel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>&nbsp;</td>
          <td class="paramname"> <em>aLevel</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set which LZMA compression level to use for the given OpenCTM context. </p>
<p>The compression level can be between 0 (fastest) and 9 (best). The higher the compression level, the more memory is required for compression and decompression. The default compression level is 1. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aLevel</em>&nbsp;</td><td>Which compression level to use (0 to 9). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af4ac8e534f59be4edacc39753cf54693"></a><!-- doxytag: member="openctm.h::ctmCompressionMethod" ref="af4ac8e534f59be4edacc39753cf54693" args="(CTMcontext aContext, CTMenum aMethod)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmCompressionMethod </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aMethod</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set which compression method to use for the given OpenCTM context. </p>
<p>The selected compression method will be used when calling the <a class="el" href="openctm_8h.html#acde994008b0b3321bad9f3bbfacb12db" title="Save an OpenCTM format file.">ctmSave()</a> function. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aMethod</em>&nbsp;</td><td>Which compression method to use: CTM_METHOD_RAW, CTM_METHOD_MG1 or CTM_METHOD_MG2 (the default method is CTM_METHOD_MG1). </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625a4ba5bf3da62c7292644723b227a5cce8" title="Just store the raw data.">CTM_METHOD_RAW</a>, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625aeb7ddc6f328ec73944a2fcb20472341b" title="Lossless compression (floating point).">CTM_METHOD_MG1</a>, <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625ae52e3f40682c9e56be588a4661f8dc0c" title="Lossless compression (fixed point).">CTM_METHOD_MG2</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1cb648e89121ae67f5a8b9e5a8f41c4d"></a><!-- doxytag: member="openctm.h::ctmDefineMesh" ref="a1cb648e89121ae67f5a8b9e5a8f41c4d" args="(CTMcontext aContext, const CTMfloat *aVertices, CTMuint aVertexCount, const CTMuint *aIndices, CTMuint aTriangleCount, const CTMfloat *aNormals)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmDefineMesh </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *&nbsp;</td>
          <td class="paramname"> <em>aVertices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>&nbsp;</td>
          <td class="paramname"> <em>aVertexCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> *&nbsp;</td>
          <td class="paramname"> <em>aIndices</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>&nbsp;</td>
          <td class="paramname"> <em>aTriangleCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> *&nbsp;</td>
          <td class="paramname"> <em>aNormals</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Define a triangle mesh. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aVertices</em>&nbsp;</td><td>An array of vertices (three consecutive floats make one vertex). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aVertexCount</em>&nbsp;</td><td>The number of vertices in <code>aVertices</code> (and optionally <code>aTexCoords</code>). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aIndices</em>&nbsp;</td><td>An array of vertex indices (three consecutive integers make one triangle). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aTriangleCount</em>&nbsp;</td><td>The number of triangles in <code>aIndices</code> (there must be exactly 3 x <code>aTriangleCount</code> indices in <code>aIndices</code>). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aNormals</em>&nbsp;</td><td>An array of per-vertex normals (or NULL if there are no normals). Each normal is made up by three consecutive floats, and there must be <code>aVertexCount</code> normals. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a44345560299ac49dfd502d0470f05e0f" title="Define a UV map.">ctmAddUVMap()</a>, <a class="el" href="openctm_8h.html#a920a8fed6bef834db0b241fc5c9bba03" title="Define a custom vertex attribute map.">ctmAddAttribMap()</a>, <a class="el" href="openctm_8h.html#acde994008b0b3321bad9f3bbfacb12db" title="Save an OpenCTM format file.">ctmSave()</a>, <a class="el" href="openctm_8h.html#a7e62ca5548a34ed0e126fd4f7b77ef3f" title="Save an OpenCTM format file using a custom stream write function.">ctmSaveCustom()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a3071b834da6a9cdd684ec733de70cbf2"></a><!-- doxytag: member="openctm.h::ctmErrorString" ref="a3071b834da6a9cdd684ec733de70cbf2" args="(CTMenum aError)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT const char* CTMCALL ctmErrorString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aError</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Converts an OpenCTM error code to a zero-terminated string. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aError</em>&nbsp;</td><td>An OpenCTM error code, as returned by <a class="el" href="openctm_8h.html#a2bbaed33a6809affc4a61469f6676bdf" title="Returns the latest error.">ctmGetError()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A zero terminated string that describes the error. For instance, if <code>aError</code> is CTM_INVALID_OPERATION, then the return value will be "CTM_INVALID_OPERATION". </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2225924b06488421ee6b9a8505782a25"></a><!-- doxytag: member="openctm.h::ctmFileComment" ref="a2225924b06488421ee6b9a8505782a25" args="(CTMcontext aContext, const char *aFileComment)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmFileComment </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aFileComment</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the file comment for the given OpenCTM context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aFileComment</em>&nbsp;</td><td>The file comment (zero terminated UTF-8 string). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aeb16fd3054a19415be90de4968b21a3a"></a><!-- doxytag: member="openctm.h::ctmFreeContext" ref="aeb16fd3054a19415be90de4968b21a3a" args="(CTMcontext aContext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmFreeContext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Free an OpenCTM context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7c297f9b6d486f47596cff184602a65d"></a><!-- doxytag: member="openctm.h::ctmGetAttribMapFloat" ref="a7c297f9b6d486f47596cff184602a65d" args="(CTMcontext aContext, CTMenum aAttribMap, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> CTMCALL ctmGetAttribMapFloat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aAttribMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about a vertex attribute map. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aAttribMap</em>&nbsp;</td><td>Which vertex attribute map to query (CTM_ATTRIB_MAP_1 or higher). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which vertex attribute map property to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A floating point value, representing the vertex attribute map property given by <code>aProperty</code>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a841d7c1e0bafd57ee36ccbbc74470b68"></a><!-- doxytag: member="openctm.h::ctmGetAttribMapString" ref="a841d7c1e0bafd57ee36ccbbc74470b68" args="(CTMcontext aContext, CTMenum aAttribMap, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT const char* CTMCALL ctmGetAttribMapString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aAttribMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about a vertex attribute map. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aAttribMap</em>&nbsp;</td><td>Which vertex attribute map to query (CTM_ATTRIB_MAP_1 or higher). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which vertex attribute map property to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string value, representing the vertex attribute map property given by <code>aProperty</code>. </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>The string is only valid as long as the vertex attribute map within the OpenCTM context is valid. Trying to access an invalid string will result in undefined behaviour. Therefor it is recommended that the string is copied to a new variable if it is to be used other than directly after the call to <a class="el" href="openctm_8h.html#a841d7c1e0bafd57ee36ccbbc74470b68" title="Get information about a vertex attribute map.">ctmGetAttribMapString()</a>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2bbaed33a6809affc4a61469f6676bdf"></a><!-- doxytag: member="openctm.h::ctmGetError" ref="a2bbaed33a6809affc4a61469f6676bdf" args="(CTMcontext aContext)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL ctmGetError </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the latest error. </p>
<p>Calling this function will return the last produced error code, or CTM_NO_ERROR (zero) if no error has occured since the last call to <a class="el" href="openctm_8h.html#a2bbaed33a6809affc4a61469f6676bdf" title="Returns the latest error.">ctmGetError()</a>. When this function is called, the internal error varibale will be reset to CTM_NONE. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An OpenCTM error code. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abe7389b3a396a86a3a1c5d5c6f68183d"></a><!-- doxytag: member="openctm.h::ctmGetFloat" ref="abe7389b3a396a86a3a1c5d5c6f68183d" args="(CTMcontext aContext, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> CTMCALL ctmGetFloat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about an OpenCTM context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which property to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A floating point value, representing the OpenCTM context property given by <code>aProperty</code>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abdfcfede5d37c75e78cae989dc71e248"></a><!-- doxytag: member="openctm.h::ctmGetFloatArray" ref="abdfcfede5d37c75e78cae989dc71e248" args="(CTMcontext aContext, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT const <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a>* CTMCALL ctmGetFloatArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a floating point array from an OpenCTM context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which array to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A floating point array. If the requested array does not exist, or if <code>aProperty</code> does not indicate a float array, the function returns NULL. </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>The array is only valid as long as the OpenCTM context is valid, or until the corresponding array changes within the OpenCTM context. Trying to access an invalid array will result in undefined behaviour. Therefor it is recommended that the array is copied to a new variable if it is to be used other than directly after the call to <a class="el" href="openctm_8h.html#abdfcfede5d37c75e78cae989dc71e248" title="Get a floating point array from an OpenCTM context.">ctmGetFloatArray()</a>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4012ac28aa780819e40ee118d7c6578e"></a><!-- doxytag: member="openctm.h::ctmGetInteger" ref="a4012ac28aa780819e40ee118d7c6578e" args="(CTMcontext aContext, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a> CTMCALL ctmGetInteger </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about an OpenCTM context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which property to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An integer value, representing the OpenCTM context property given by <code>aProperty</code>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae202716acce7a97668654052dc4d0bef"></a><!-- doxytag: member="openctm.h::ctmGetIntegerArray" ref="ae202716acce7a97668654052dc4d0bef" args="(CTMcontext aContext, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT const <a class="el" href="openctm_8h.html#ac5ea1beb64d415c241f2abf35eeb6c48">CTMuint</a>* CTMCALL ctmGetIntegerArray </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get an integer array from an OpenCTM context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which array to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An integer array. If the requested array does not exist, or if <code>aProperty</code> does not indicate an integer array, the function returns NULL. </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>The array is only valid as long as the OpenCTM context is valid, or until the corresponding array changes within the OpenCTM context. Trying to access an invalid array will result in undefined behaviour. Therefor it is recommended that the array is copied to a new variable if it is to be used other than directly after the call to <a class="el" href="openctm_8h.html#ae202716acce7a97668654052dc4d0bef" title="Get an integer array from an OpenCTM context.">ctmGetIntegerArray()</a>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a15692de5d6e93adf8bed8d06d88c905c"></a><!-- doxytag: member="openctm.h::ctmGetNamedAttribMap" ref="a15692de5d6e93adf8bed8d06d88c905c" args="(CTMcontext aContext, const char *aName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL ctmGetNamedAttribMap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a reference to the named vertex attribute map. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aName</em>&nbsp;</td><td>The name of the attribute map that should be returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to an attribute map. If the attribute map was found, a value of CTM_ATTRIB_MAP_1 or higher is returned, otherwise CTM_NONE is returned. </dd></dl>

</div>
</div>
<a class="anchor" id="a43c2d19741ba53f695a4119e594d6069"></a><!-- doxytag: member="openctm.h::ctmGetNamedUVMap" ref="a43c2d19741ba53f695a4119e594d6069" args="(CTMcontext aContext, const char *aName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a> CTMCALL ctmGetNamedUVMap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a reference to the named UV map. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aName</em>&nbsp;</td><td>The name of the UV map that should be returned. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A reference to a UV map. If the UV map was found, a value of CTM_UV_MAP_1 or higher is returned, otherwise CTM_NONE is returned. </dd></dl>

</div>
</div>
<a class="anchor" id="a4e4269df157eb2d117259c69a331e339"></a><!-- doxytag: member="openctm.h::ctmGetString" ref="a4e4269df157eb2d117259c69a331e339" args="(CTMcontext aContext, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT const char* CTMCALL ctmGetString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about an OpenCTM context. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which property to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string value, representing the OpenCTM context property given by <code>aProperty</code>. </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>The string is only valid as long as the OpenCTM context is valid, or until the corresponding string changes within the OpenCTM context (e.g. calling <a class="el" href="openctm_8h.html#a2225924b06488421ee6b9a8505782a25" title="Set the file comment for the given OpenCTM context.">ctmFileComment()</a> invalidates the CTM_FILE_COMMENT string). Trying to access an invalid string will result in undefined behaviour. Therefor it is recommended that the string is copied to a new variable if it is to be used other than directly after the call to <a class="el" href="openctm_8h.html#a4e4269df157eb2d117259c69a331e339" title="Get information about an OpenCTM context.">ctmGetString()</a>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afad1b100b9f2fe4bf0dfc36cb39ec615"></a><!-- doxytag: member="openctm.h::ctmGetUVMapFloat" ref="afad1b100b9f2fe4bf0dfc36cb39ec615" args="(CTMcontext aContext, CTMenum aUVMap, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a> CTMCALL ctmGetUVMapFloat </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aUVMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about a UV map. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUVMap</em>&nbsp;</td><td>Which UV map to query (CTM_UV_MAP_1 or higher). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which UV map property to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A floating point value, representing the UV map property given by <code>aProperty</code>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a2d689ee3371296b68899d564d5a1f998"></a><!-- doxytag: member="openctm.h::ctmGetUVMapString" ref="a2d689ee3371296b68899d564d5a1f998" args="(CTMcontext aContext, CTMenum aUVMap, CTMenum aProperty)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT const char* CTMCALL ctmGetUVMapString </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aUVMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aProperty</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about a UV map. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUVMap</em>&nbsp;</td><td>Which UV map to query (CTM_UV_MAP_1 or higher). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aProperty</em>&nbsp;</td><td>Which UV map property to return. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A string value, representing the UV map property given by <code>aProperty</code>. </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>The string is only valid as long as the UV map within the OpenCTM context is valid. Trying to access an invalid string will result in undefined behaviour. Therefor it is recommended that the string is copied to a new variable if it is to be used other than directly after the call to <a class="el" href="openctm_8h.html#a2d689ee3371296b68899d564d5a1f998" title="Get information about a UV map.">ctmGetUVMapString()</a>. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625" title="OpenCTM specific enumerators.">CTMenum</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a99a57706d438c5654adbc9646058dc01"></a><!-- doxytag: member="openctm.h::ctmLoad" ref="a99a57706d438c5654adbc9646058dc01" args="(CTMcontext aContext, const char *aFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmLoad </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aFileName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Load an OpenCTM format file into the context. </p>
<p>The mesh data can be retrieved with the various ctmGet functions. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aFileName</em>&nbsp;</td><td>The name of the file to be loaded. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a99699bcbd4cbe0942a22498671af107e"></a><!-- doxytag: member="openctm.h::ctmLoadCustom" ref="a99699bcbd4cbe0942a22498671af107e" args="(CTMcontext aContext, CTMreadfn aReadFn, void *aUserData)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmLoadCustom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#ad2fb8fd3b5997a557d8aba2385ed849b">CTMreadfn</a>&nbsp;</td>
          <td class="paramname"> <em>aReadFn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>aUserData</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Load an OpenCTM format file using a custom stream read function. </p>
<p>The mesh data can be retrieved with the various ctmGet functions. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aReadFn</em>&nbsp;</td><td>Pointer to a custom stream read function. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUserData</em>&nbsp;</td><td>Custom user data, which can be a C language FILE handle, C++ istream object, or a custom object pointer of any type. The user data pointer will be passed to the custom stream read function. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#ad2fb8fd3b5997a557d8aba2385ed849b" title="Stream read() function pointer.">CTMreadfn</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a3ca20da713005b0c6afb9b5f21640837"></a><!-- doxytag: member="openctm.h::ctmNewContext" ref="a3ca20da713005b0c6afb9b5f21640837" args="(CTMenum aMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT <a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a> CTMCALL ctmNewContext </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aMode</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create a new OpenCTM context. </p>
<p>The context is used for all subsequent OpenCTM function calls. Several contexts can coexist at the same time. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aMode</em>&nbsp;</td><td>An OpenCTM context mode. Set this to CTM_IMPORT if the context will be used for importing data, or set it to CTM_EXPORT if it will be used for exporting data. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An OpenCTM context handle (or NULL if no context could be created). </dd></dl>

</div>
</div>
<a class="anchor" id="a07d8b47a0e642d0d8c77cf18e8d354a5"></a><!-- doxytag: member="openctm.h::ctmNormalPrecision" ref="a07d8b47a0e642d0d8c77cf18e8d354a5" args="(CTMcontext aContext, CTMfloat aPrecision)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmNormalPrecision </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a>&nbsp;</td>
          <td class="paramname"> <em>aPrecision</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the normal precision (only used by the MG2 compression method). </p>
<p>The normal is represented in spherical coordinates in the MG2 compression method, and the normal precision controls the angular and radial resolution. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aPrecision</em>&nbsp;</td><td>Fixed point precision. For the angular information, this value represents the angular precision. For the radial information, this value is the linear resolution. For instance, 0.01 means that the circle is divided into 100 steps, and the normal magnitude is rounded to 2 decimals. The default normal precision is 2^-8 ~= 0.0039. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="acde994008b0b3321bad9f3bbfacb12db"></a><!-- doxytag: member="openctm.h::ctmSave" ref="acde994008b0b3321bad9f3bbfacb12db" args="(CTMcontext aContext, const char *aFileName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmSave </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>aFileName</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Save an OpenCTM format file. </p>
<p>The mesh must have been defined by <a class="el" href="openctm_8h.html#a1cb648e89121ae67f5a8b9e5a8f41c4d" title="Define a triangle mesh.">ctmDefineMesh()</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aFileName</em>&nbsp;</td><td>The name of the file to be saved. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7e62ca5548a34ed0e126fd4f7b77ef3f"></a><!-- doxytag: member="openctm.h::ctmSaveCustom" ref="a7e62ca5548a34ed0e126fd4f7b77ef3f" args="(CTMcontext aContext, CTMwritefn aWriteFn, void *aUserData)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmSaveCustom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a2428bc1bf2cf2e1af05d132dca892f5b">CTMwritefn</a>&nbsp;</td>
          <td class="paramname"> <em>aWriteFn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>aUserData</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Save an OpenCTM format file using a custom stream write function. </p>
<p>The mesh must have been defined by <a class="el" href="openctm_8h.html#a1cb648e89121ae67f5a8b9e5a8f41c4d" title="Define a triangle mesh.">ctmDefineMesh()</a>. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aWriteFn</em>&nbsp;</td><td>Pointer to a custom stream write function. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUserData</em>&nbsp;</td><td>Custom user data, which can be a C language FILE handle, C++ ostream object, or a custom object pointer of any type. The user data pointer will be passed to the custom stream write function. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a2428bc1bf2cf2e1af05d132dca892f5b" title="Stream write() function pointer.">CTMwritefn</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ac1a75abbf04281acaff4f6f1f9516039"></a><!-- doxytag: member="openctm.h::ctmUVCoordPrecision" ref="ac1a75abbf04281acaff4f6f1f9516039" args="(CTMcontext aContext, CTMenum aUVMap, CTMfloat aPrecision)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmUVCoordPrecision </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a0f5efe622ac5146c4505d49860ce5625">CTMenum</a>&nbsp;</td>
          <td class="paramname"> <em>aUVMap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a>&nbsp;</td>
          <td class="paramname"> <em>aPrecision</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the coordinate precision for the specified UV map (only used by the MG2 compression method). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aUVMap</em>&nbsp;</td><td>A UV map specifier for a defined UV map (CTM_UV_MAP_1, ...). </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aPrecision</em>&nbsp;</td><td>Fixed point precision. For instance, if this value is 0.001, all UV coordinates will be rounded to three decimals. The default UV coordinate precision is 2^-12 ~= 0.00024. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#a44345560299ac49dfd502d0470f05e0f" title="Define a UV map.">ctmAddUVMap()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="af4191357f51161a16ff886d18ec848d8"></a><!-- doxytag: member="openctm.h::ctmVertexPrecision" ref="af4191357f51161a16ff886d18ec848d8" args="(CTMcontext aContext, CTMfloat aPrecision)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmVertexPrecision </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a>&nbsp;</td>
          <td class="paramname"> <em>aPrecision</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the vertex coordinate precision (only used by the MG2 compression method). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aPrecision</em>&nbsp;</td><td>Fixed point precision. For instance, if this value is 0.001, all vertex coordinates will be rounded to three decimals. The default vertex coordinate precision is 2^-10 ~= 0.00098. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ade23eb25fa9d5cd1d932bc1203476f27"></a><!-- doxytag: member="openctm.h::ctmVertexPrecisionRel" ref="ade23eb25fa9d5cd1d932bc1203476f27" args="(CTMcontext aContext, CTMfloat aRelPrecision)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CTMEXPORT void CTMCALL ctmVertexPrecisionRel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#a7062b4f48dc6d1b736ac93955acf3888">CTMcontext</a>&nbsp;</td>
          <td class="paramname"> <em>aContext</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="openctm_8h.html#af8b7eeaefac4d6ad39d11c3f7be8afa2">CTMfloat</a>&nbsp;</td>
          <td class="paramname"> <em>aRelPrecision</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the vertex coordinate precision, relative to the mesh dimensions (only used by the MG2 compression method). </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aContext</em>&nbsp;</td><td>An OpenCTM context that has been created by <a class="el" href="openctm_8h.html#a3ca20da713005b0c6afb9b5f21640837" title="Create a new OpenCTM context.">ctmNewContext()</a>. </td></tr>
    <tr><td valign="top"><tt>[in]</tt>&nbsp;</td><td valign="top"><em>aRelPrecision</em>&nbsp;</td><td>Relative precision. This factor is multiplied by the average triangle edge length in the mesh in order to obtain the final, fixed point precision. For instance, if aRelPrecision is 0.01, and the average edge length is 3.7, then the fixed point precision is set to 0.037. </td></tr>
  </table>
  </dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>The mesh must have been defined using the <a class="el" href="openctm_8h.html#a1cb648e89121ae67f5a8b9e5a8f41c4d" title="Define a triangle mesh.">ctmDefineMesh()</a> function before calling this function. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="openctm_8h.html#af4191357f51161a16ff886d18ec848d8" title="Set the vertex coordinate precision (only used by the MG2 compression method).">ctmVertexPrecision()</a>. </dd></dl>

</div>
</div>
</div>
<div style="padding: 1em 1em 0.5em 1em; margin: 2em 0 0 0; border-top: 1px solid #84b0c7; color: #808080; text-align: center;">
  <p>Copyright &copy; 2009-2010 Marcus Geelnard &mdash;
  <a href="http://openctm.sourceforge.net" title="OpenCTM home page">openctm.sourceforge.net</a></p>
</div>
</body>
</html>