Преглед изворни кода

Finished documenting TombRaider.h

Thomas Buck пре 10 година
родитељ
комит
5c17eedce4
2 измењених фајлова са 204 додато и 268 уклоњено
  1. 194
    220
      include/TombRaider.h
  2. 10
    48
      src/TombRaider.cpp

+ 194
- 220
include/TombRaider.h Прегледај датотеку

@@ -1269,18 +1269,13 @@ public:
1269 1269
      */
1270 1270
     int Load(char *filename, void (*percent)(int));
1271 1271
 
1272
+    /*!
1273
+     * \brief Makes a clamped 0.0 to 1.0 texel from coord pair
1274
+     * \param texel texel value, is modified, divided by 255.0 and returned
1275
+     * \param offset if offset is negative, texel is decreased by one, else increased
1276
+     * \returns modified texel divided by 255.0
1277
+     */
1272 1278
     float adjustTexel(unsigned char texel, char offset);
1273
-    /*------------------------------------------------------
1274
-     * Pre  : Passed the correct coor/pixel pair from
1275
-     *        object texture
1276
-     *
1277
-     * Post : Makes a clamped 0.0 to 1.0 texel from coord pair
1278
-     *
1279
-     *-- History ------------------------------------------
1280
-     *
1281
-     * 2001.06.21:
1282
-     * Mongoose - Created
1283
-     ------------------------------------------------------*/
1284 1279
 
1285 1280
     /*!
1286 1281
      * \brief Compute rotation angles from moveable animation data
@@ -1296,16 +1291,13 @@ public:
1296 1291
                                 unsigned int *angle_offset,
1297 1292
                                 float *x, float *y, float *z);
1298 1293
 
1294
+    /*!
1295
+     * \brief Returns computed UV in u and v
1296
+     * \param st object texture vert, its coordinates are added to the pixels and divided by 255.0
1297
+     * \param u will contain calculated x value
1298
+     * \param v will contain calculated y value
1299
+     */
1299 1300
     void computeUV(tr2_object_texture_vert_t *st, float *u, float *v);
1300
-    /*------------------------------------------------------
1301
-     * Pre  : Args are valid pointers
1302
-     * Post : Returns computed UV in u and v
1303
-     *
1304
-     *-- History ------------------------------------------
1305
-     *
1306
-     * 2002.04.05:
1307
-     * Mongoose - Created
1308
-     ------------------------------------------------------*/
1309 1301
 
1310 1302
     /*!
1311 1303
      * \brief Get number of bump maps in loaded pak
@@ -1332,87 +1324,71 @@ public:
1332 1324
      */
1333 1325
     int getMeshCount();
1334 1326
 
1327
+    /*!
1328
+     * \brief This method is made to let you fill arrays or
1329
+     * create single faces. There may be an allocatin version that
1330
+     * passes back arrays later.
1331
+     * Returns Quads/Rects as 2 triangles,
1332
+     * because returning quads would be too trivial :)
1333
+     * \param meshIndex mesh index
1334
+     * \param faceIndex face index
1335
+     * \param index allocated RGBA
1336
+     * \param color allocated RGBA
1337
+     * \fixme This method interface may change later
1338
+     */
1335 1339
     void getMeshColoredRectangle(unsigned int meshIndex,
1336 1340
                                     unsigned int faceIndex,
1337 1341
                                     int index[6], float color[4]);
1338
-    /*------------------------------------------------------
1339
-     * Pre  : This method interface may change later
1340
-     *
1341
-     *        Pass allocated index[6], color[4] ( RGBA )
1342
-     *
1343
-     * Post : This method is made to let you fill arrays or
1344
-     *        create single faces, their may be an allocating
1345
-     *        version that passes back arrays later
1346
-     *
1347
-     *        Returns Quads/Rects as 2 triangles, because
1348
-     *        returning quads would be too trival  =)
1349
-     *
1350
-     *-- History ------------------------------------------
1351
-     *
1352
-     * 2000.05.16:
1353
-     * Mongoose - Created, based on method from OpenRaider
1354
-     ------------------------------------------------------*/
1355 1342
 
1343
+    /*!
1344
+     * \brief This method is made to let you fill arrays or
1345
+     * create single faces. There may be an allocating version that
1346
+     * passes back arrays later.
1347
+     * \param meshIndex mesh index
1348
+     * \param faceIndex face index
1349
+     * \param index allocated RGBA
1350
+     * \param color allocated RGBA
1351
+     * \fixme This method interface may change later
1352
+     */
1356 1353
     void getMeshColoredTriangle(unsigned int meshIndex,
1357 1354
                                 unsigned int faceIndex,
1358 1355
                                 int index[3], float color[4]);
1359
-    /*------------------------------------------------------
1360
-     * Pre  : This method interface may change later
1361
-     *
1362
-     *        Pass allocated index[3], color[4] ( RGBA )
1363
-     *
1364
-     * Post : This method is made to let you fill arrays or
1365
-     *        create single faces, their may be an allocating
1366
-     *        version that passes back arrays later
1367
-     *
1368
-     *-- History ------------------------------------------
1369
-     *
1370
-     * 2000.05.16:
1371
-     * Mongoose - Created, based on method from OpenRaider
1372
-     ------------------------------------------------------*/
1373 1356
 
1357
+    /*!
1358
+     * \brief This method is made to let you fill arrays or
1359
+     * create single faces. There may be an allocatin version that
1360
+     * passes back arrays later.
1361
+     * Returns Quads/Rects as 2 triangles,
1362
+     * because returning quads would be too trivial :)
1363
+     * \param meshIndex mesh index
1364
+     * \param faceIndex face index
1365
+     * \param index allocated
1366
+     * \param st allocated
1367
+     * \param texture allocated
1368
+     * \param transparency allocated
1369
+     * \fixme This method interface may change later
1370
+     */
1374 1371
     void getMeshTexturedRectangle(unsigned int meshIndex,
1375 1372
                                     unsigned int faceIndex,
1376 1373
                                     int index[6], float st[12], int *texture,
1377 1374
                                     unsigned short *transparency);
1378
-    /*------------------------------------------------------
1379
-     * Pre  : This method interface may change later
1380
-     *
1381
-     *        Pass allocated index[6], st[12], texture,
1382
-     *        and transparency
1383
-     *
1384
-     * Post : This method is made to let you fill arrays or
1385
-     *        create single faces, their may be an allocating
1386
-     *        version that passes back arrays later
1387
-     *
1388
-     *        Returns Quads/Rects as 2 triangles, because
1389
-     *        returning quads would be too trival  =)
1390
-     *
1391
-     *-- History ------------------------------------------
1392
-     *
1393
-     * 2000.05.16:
1394
-     * Mongoose - Created, based on method from OpenRaider
1395
-     ------------------------------------------------------*/
1396 1375
 
1376
+    /*!
1377
+     * \brief This method is made to let you fill arrays or
1378
+     * create single faces. There may be an allocatin version that
1379
+     * passes back arrays later.
1380
+     * \param meshIndex mesh index
1381
+     * \param faceIndex face index
1382
+     * \param index allocated
1383
+     * \param st allocated
1384
+     * \param texture allocated
1385
+     * \param transparency allocated
1386
+     * \fixme This method interface may change later
1387
+     */
1397 1388
     void getMeshTexturedTriangle(unsigned int meshIndex,
1398 1389
                                     unsigned int faceIndex,
1399 1390
                                     int index[3], float st[6], int *texture,
1400 1391
                                     unsigned short *transparency);
1401
-    /*------------------------------------------------------
1402
-     * Pre  : This method interface may change later
1403
-     *
1404
-     *        Pass allocated index[3], st[6], texture,
1405
-     *        and transparency
1406
-     *
1407
-     * Post : This method is made to let you fill arrays or
1408
-     *        create single faces, their may be an allocating
1409
-     *        version that passes back arrays later
1410
-     *
1411
-     *-- History ------------------------------------------
1412
-     *
1413
-     * 2000.05.16:
1414
-     * Mongoose - Created, based on method from OpenRaider
1415
-     ------------------------------------------------------*/
1416 1392
 
1417 1393
     /*!
1418 1394
      * \brief Get face counts for a given mesh.
@@ -1458,17 +1434,18 @@ public:
1458 1434
                                 unsigned int *normalCount, float **norms,
1459 1435
                                 unsigned int *colorCount, float **colors);
1460 1436
 
1437
+    /*!
1438
+     * \brief Get a single collision box from room (unified)
1439
+     * \param roomIndex room index
1440
+     * \param index index of box in room
1441
+     * \param xyzA will contain first corner of box
1442
+     * \param xyzB will contain second corner of box
1443
+     * \param xyzC will contain third corner of box
1444
+     * \param xyzD will contain fourth corner of box
1445
+     * \returns 0 on success, < 0 on error
1446
+     */
1461 1447
     int getRoomBox(unsigned int roomIndex, unsigned int index,
1462 1448
                     float *xyzA, float *xyzB, float *xyzC, float *xyzD);
1463
-    /*------------------------------------------------------
1464
-     * Pre  :
1465
-     * Post : Returns a single collision box from room ( unified )
1466
-     *
1467
-     *-- History ------------------------------------------
1468
-     *
1469
-     * 2003.05.24:
1470
-     * Mongoose - Created
1471
-     ------------------------------------------------------*/
1472 1449
 
1473 1450
     /*!
1474 1451
      * \brief Get number of collision boxes in room (unified)
@@ -1481,19 +1458,23 @@ public:
1481 1458
                         unsigned int *flags, float pos[3],
1482 1459
                         float bboxMin[3], float bboxMax[3]);
1483 1460
 
1461
+    /*!
1462
+     * \brief Get a single light from a room (unified)
1463
+     * \param roomIndex valid room index
1464
+     * \param index valid light index in room
1465
+     * \param pos allocated, will contain position
1466
+     * \param color allocated, will contain color
1467
+     * \param dir allocated, will contain direction
1468
+     * \param attenuation will contain attenuation
1469
+     * \param cutoffAngle will contain cutoff angle
1470
+     * \param type will contain type
1471
+     * \param flags will contain flags
1472
+     * \returns 0 on success, < 0 on error
1473
+     */
1484 1474
     int getRoomLight(unsigned int roomIndex, unsigned int index,
1485 1475
                         float pos[4], float color[4], float dir[3],
1486 1476
                         float *attenuation, float *cutoffAngle,
1487 1477
                         unsigned int *type, unsigned int *flags);
1488
-    /*------------------------------------------------------
1489
-     * Pre  : All parms are allocated
1490
-     * Post : Returns a single light from a room ( unified )
1491
-     *
1492
-     *-- History ------------------------------------------
1493
-     *
1494
-     * 2003.05.19:
1495
-     * Mongoose - Created
1496
-     ------------------------------------------------------*/
1497 1478
 
1498 1479
     /*!
1499 1480
      * \brief Get number of lights in room (unified)
@@ -1502,17 +1483,17 @@ public:
1502 1483
      */
1503 1484
     unsigned int getRoomLightCount(unsigned int roomIndex);
1504 1485
 
1486
+    /*!
1487
+     * \brief Get a single model info from a room
1488
+     * \param roomIndex valid room index
1489
+     * \param index valid model index in room
1490
+     * \param modelIndex will contain starting mesh
1491
+     * \param pos will contain pos
1492
+     * \param yaw will contain yaw angle
1493
+     * \returns 0 on success, < 0 on error
1494
+     */
1505 1495
     int getRoomModel(unsigned int roomIndex, unsigned int index,
1506 1496
                         int *modelIndex, float pos[3], float *yaw);
1507
-    /*------------------------------------------------------
1508
-     * Pre  : All parms are allocated
1509
-     * Post : Returns a single model info from a room ( unified )
1510
-     *
1511
-     *-- History ------------------------------------------
1512
-     *
1513
-     * 2003.05.19:
1514
-     * Mongoose - Created
1515
-     ------------------------------------------------------*/
1516 1497
 
1517 1498
     /*!
1518 1499
      * \brief Get number of room models in room (unified)
@@ -1521,17 +1502,17 @@ public:
1521 1502
      */
1522 1503
     unsigned int getRoomModelCount(unsigned int roomIndex);
1523 1504
 
1505
+    /*!
1506
+     * \brief Get a single portal from room (unified)
1507
+     * \param roomIndex valid room index
1508
+     * \param index valid portal index in room
1509
+     * \param adjoiningRoom will contain adjoining room index
1510
+     * \param normal allocated, will contain normal vector
1511
+     * \param vertices allocated, will contain vertices
1512
+     * \returns 0 on success, < 0 on error
1513
+     */
1524 1514
     int getRoomPortal(unsigned int roomIndex, unsigned int index,
1525 1515
                         int *adjoiningRoom, float normal[3], float vertices[12]);
1526
-    /*------------------------------------------------------
1527
-     * Pre  :
1528
-     * Post : Returns a single portal from room ( unified )
1529
-     *
1530
-     *-- History ------------------------------------------
1531
-     *
1532
-     * 2003.05.24:
1533
-     * Mongoose - Created
1534
-     ------------------------------------------------------*/
1535 1516
 
1536 1517
     /*!
1537 1518
      * \brief Get number of portals from room (unified)
@@ -1540,19 +1521,19 @@ public:
1540 1521
      */
1541 1522
     unsigned int getRoomPortalCount(unsigned int roomIndex);
1542 1523
 
1524
+    /*!
1525
+     * \brief Get rectangle data with texCoords for non-matching
1526
+     * vertex/uv for each vertex in TombRaider room (unified)
1527
+     * \param roomIndex valid room index
1528
+     * \param rectangleIndex rectangle index in room
1529
+     * \param indices will contain indices
1530
+     * \param texCoords will contain texCoords
1531
+     * \param texture will contain texture
1532
+     * \param flags will contain flags
1533
+     */
1543 1534
     void getRoomRectangle(unsigned int roomIndex, unsigned int rectangleIndex,
1544 1535
                             unsigned int *indices, float *texCoords, int *texture,
1545 1536
                             unsigned int *flags);
1546
-    /*------------------------------------------------------
1547
-     * Pre  :
1548
-     * Post : Gets rectangle data with texCoords for non-matching
1549
-     *        vertex/uv for each vertex in TombRaider room ( unified )
1550
-     *
1551
-     *-- History ------------------------------------------
1552
-     *
1553
-     * 2003.05.24:
1554
-     * Mongoose - Created
1555
-     ------------------------------------------------------*/
1556 1537
 
1557 1538
     /*!
1558 1539
      * \brief Get number of rectangles from room (unified)
@@ -1561,19 +1542,23 @@ public:
1561 1542
      */
1562 1543
     unsigned int getRoomRectangleCount(unsigned int roomIndex);
1563 1544
 
1545
+    /*!
1546
+     * \brief Get a single sector from room (unified)
1547
+     * \param roomIndex room index
1548
+     * \param index sector index
1549
+     * \param flags will contain flags
1550
+     * \param ceiling will contain ceiling
1551
+     * \param floor will contain floor
1552
+     * \param floorDataIndex will contain floor data index
1553
+     * \param boxIndex will contain boxIndex
1554
+     * \param roomBelow will contain roomBelow
1555
+     * \param roomAbove will contain roomAbove
1556
+     * \return 0 on success, < 0 on error
1557
+     */
1564 1558
     int getRoomSector(unsigned int roomIndex, unsigned int index,
1565 1559
                         unsigned int *flags, float *ceiling, float *floor,
1566 1560
                         int *floorDataIndex, int *boxIndex,
1567 1561
                         int *roomBelow, int *roomAbove);
1568
-    /*------------------------------------------------------
1569
-     * Pre  :
1570
-     * Post : Returns a single sector from room ( unified )
1571
-     *
1572
-     *-- History ------------------------------------------
1573
-     *
1574
-     * 2003.05.24:
1575
-     * Mongoose - Created
1576
-     ------------------------------------------------------*/
1577 1562
 
1578 1563
     /*!
1579 1564
      * \brief Get number of sectors in room (unified)
@@ -1597,58 +1582,61 @@ public:
1597 1582
      */
1598 1583
     unsigned int getRoomSpriteCount(unsigned int roomIndex);
1599 1584
 
1585
+    /*!
1586
+     * \brief Gets triangle data with texCoords for non-matching
1587
+     * vertex/uv for each vertex in TombRaider room (unified)
1588
+     * \param roomIndex room index
1589
+     * \param triangleIndex triangle index
1590
+     * \param indices will contain indices
1591
+     * \param texCoords will contain texCoords
1592
+     * \param texture will contain texture
1593
+     * \param flags will contain flags
1594
+     */
1600 1595
     void getRoomTriangle(unsigned int roomIndex, unsigned int triangleIndex,
1601 1596
                             unsigned int *indices, float *texCoords, int *texture,
1602 1597
                             unsigned int *flags);
1603
-    /*------------------------------------------------------
1604
-     * Pre  :
1605
-     * Post : Gets triangle data with texCoords for non-matching
1606
-     *        vertex/uv for each vertex in TombRaider room ( unified )
1607
-     *
1608
-     *-- History ------------------------------------------
1609
-     *
1610
-     * 2003.05.24:
1611
-     * Mongoose - Created
1612
-     ------------------------------------------------------*/
1613 1598
 
1599
+    /*!
1600
+     * \brief Gets triangle data with texCoords for non-matching
1601
+     * vertex/uv for each vertex in TombRaider room.
1602
+     *
1603
+     * This is used with vertices, colors, etc. to do partial array
1604
+     * rendering, since the texcoords will never match vertives
1605
+     * (Tomb Raider is textile based).
1606
+     * \param index room index
1607
+     * \param textureOffset texture offset
1608
+     * \param count will contain count
1609
+     * \param indices will contain indices
1610
+     * \param texCoords will contain texCoords
1611
+     * \param textures will contain textures
1612
+     * \param flags will contain flags
1613
+     */
1614 1614
     void getRoomTriangles(unsigned int index, int textureOffset,
1615 1615
                             unsigned int *count, unsigned int **indices,
1616 1616
                             float **texCoords, int **textures,
1617 1617
                             unsigned int **flags);
1618
-    /*------------------------------------------------------
1619
-     * Pre  :
1620
-     * Post : Gets triangle data with texCoords for non-matching
1621
-     *        vertex/uv for each vertex in TombRaider room
1622
-     *
1623
-     *        This is used with room vertices, colors, etc
1624
-     *        to do partial array rendering, since the texcoords
1625
-     *        will never match vertices ( Tomb Raider is textile based )
1626
-     *
1627
-     *-- History ------------------------------------------
1628
-     *
1629
-     * 2003.05.24:
1630
-     * Mongoose - Created
1631
-     ------------------------------------------------------*/
1632 1618
 
1619
+    /*!
1620
+     * \brief Gets triangle data with duplicated vertex/color/normal
1621
+     * data for each face vertex to match the textile based texcoords.
1622
+     *
1623
+     * This uses more memory, but lets you do direct array rendering
1624
+     * with OpenGL, D3D, etc.
1625
+     * \param roomIndex room index
1626
+     * \param textureOffset texture offset
1627
+     * \param count will contain count
1628
+     * \param indices will contain indices
1629
+     * \param vertices will contain vertices
1630
+     * \param texCoords will contain texCoords
1631
+     * \param colors will contain colors
1632
+     * \param textures will contain textures
1633
+     * \param flags will contain flags
1634
+     */
1633 1635
     void getRoomTriangles(unsigned int roomIndex, int textureOffset,
1634 1636
                             unsigned int *count,
1635 1637
                             unsigned int **indices, float **vertices,
1636 1638
                             float **texCoords, float **colors,
1637 1639
                             int **textures, unsigned int **flags);
1638
-    /*------------------------------------------------------
1639
-     * Pre  :
1640
-     * Post : Gets triangle data with duplicated
1641
-     *        vertex/color/normal data for each face vertex
1642
-     *        to match the textile based texcoords
1643
-     *
1644
-     *        This uses more memory, but lets you do direct
1645
-     *        array rendering with OpenGL, D3D, etc
1646
-     *
1647
-     *-- History ------------------------------------------
1648
-     *
1649
-     * 2003.05.24:
1650
-     * Mongoose - Created
1651
-     ------------------------------------------------------*/
1652 1640
 
1653 1641
     /*!
1654 1642
      * \brief Get number of triangles from room (unified)
@@ -1657,39 +1645,30 @@ public:
1657 1645
      */
1658 1646
     unsigned int getRoomTriangleCount(unsigned int roomIndex);
1659 1647
 
1648
+    /*!
1649
+     * \brief Gets vertex position and color
1650
+     * \param roomIndex room index
1651
+     * \param verteIndex vertex index
1652
+     * \param xyz will contain vertex position, has to be allocated
1653
+     * \param rgba will contain vertex color, has to be allocated
1654
+     */
1660 1655
     void getRoomVertex(unsigned int roomIndex, unsigned int vertexIndex,
1661 1656
                         float *xyz, float *rgba);
1662
-    /*------------------------------------------------------
1663
-     * Pre  : Given room index and vertex index and
1664
-     *         xyz is allocated float[3]
1665
-     *         rbga is allocated float[4]
1666
-     *
1667
-     * Post : Returns vertex position xyz and color rbga
1668
-     *
1669
-     *-- History ------------------------------------------
1670
-     *
1671
-     * 2003.05.13:
1672
-     * Mongoose - Created, based on method from OpenRaider
1673
-     ------------------------------------------------------*/
1674 1657
 
1658
+    /*!
1659
+     * \brief Get allocated vertex and color arrays and their element counts (unified)
1660
+     * \param roomIndex valid room index
1661
+     * \param vertexCount will contain vertex array length
1662
+     * \param vertices will contain vertex array
1663
+     * \param normalCount will contain normal array length
1664
+     * \param normals will contain normal array
1665
+     * \param colorCount will contain color array length
1666
+     * \param colors will contain color array
1667
+     */
1675 1668
     void getRoomVertexArrays(unsigned int roomIndex,
1676 1669
                                 unsigned int *vertexCount, float **vertices,
1677 1670
                                 unsigned int *normalCount, float **normals,
1678 1671
                                 unsigned int *colorCount, float **colors);
1679
-    /*------------------------------------------------------
1680
-     * Pre  : Given room index
1681
-     *
1682
-     * Post : Returns allocated vertex and color arrays,
1683
-     *        and their element counts  ( unified )
1684
-     *
1685
-     *-- History ------------------------------------------
1686
-     *
1687
-     * 2003.05.24:
1688
-     * Mongoose - Unified API
1689
-     *
1690
-     * 2003.05.13:
1691
-     * Mongoose - Created, based on method from OpenRaider
1692
-     ------------------------------------------------------*/
1693 1672
 
1694 1673
     /*!
1695 1674
      * \brief Get number of lights in room (unified)
@@ -1782,25 +1761,20 @@ private:
1782 1761
     void getRiffDataTR4(unsigned int index,
1783 1762
                         unsigned int *bytes, unsigned char **data);
1784 1763
 
1764
+    /*!
1765
+     * \brief Get an array of offsets for a contiguous RIFF data stream in chunks.
1766
+     *
1767
+     * Offsets will be allocated with enough space to hold expected
1768
+     * number of offsets. (Should be known number, otherwise not all RIFFs
1769
+     * will be parsed.)
1770
+     * \param riffData riff data
1771
+     * \param riffDataBytes length of riff data
1772
+     * \param offsets will contain offsets
1773
+     * \param numOffsets known number
1774
+     * \returns number of RIFFs found
1775
+     */
1785 1776
     int getRiffOffsets(unsigned char *riffData, unsigned int riffDataBytes,
1786 1777
                         unsigned int **offsets, unsigned int numOffsets);
1787
-    /*------------------------------------------------------
1788
-     * Pre  :
1789
-     * Post : Returns an array of offsets for a contigous
1790
-     *        RIFF data stream in chunks.
1791
-     *
1792
-     *        Offsets will be allocated with enough space
1793
-     *        to hold expected number of offsets.
1794
-     *        ( Should be known number, otherwise not
1795
-     *          all RIFFs will be parsed. )
1796
-     *
1797
-     *        Returns number of RIFFs found
1798
-     *
1799
-     *-- History ------------------------------------------
1800
-     *
1801
-     * 2003.05.12:
1802
-     * Mongoose - Created
1803
-     ------------------------------------------------------*/
1804 1778
 
1805 1779
     /*!
1806 1780
      * \brief Makes a 32bit RGBA image from a textile.

+ 10
- 48
src/TombRaider.cpp Прегледај датотеку

@@ -1,48 +1,9 @@
1
-/* -*- Mode: C++; tab-width: 3; indent-tabs-mode: t; c-basic-offset: 3 -*- */
2
-/*================================================================
1
+/*!
2
+ * \file src/TombRaider.cpp
3
+ * \brief Loads maps, meshes, textures...
3 4
  *
4
- * Project : OpenRaider
5
- * Author  : Mongoose
6
- * Website : http://www.westga.edu/~stu7440/
7
- * Email   : stu7440@westga.edu
8
- * Object  : OpenRaider
9
- * License : No use w/o permission (C) 2001 Mongoose
10
- * Comments: Loads TR 1, 2, 3, and 4 maps, meshes, and textures
11
- *
12
- *           This file was generated using Mongoose's C++
13
- *           template generator script.  <stu7440@westga.edu>
14
- *
15
- *-- History ------------------------------------------------
16
- *
17
- * 2003.05.13:
18
- * Mongoose - New API, maintance cost was becoming so high
19
- *            it was needed to sort out methods in groups
20
- *            like my newer source code -- of course some
21
- *            methods were altered or removed ( clean up )
22
- *
23
- * 2001.06.19:
24
- * Mongoose - New texture API for the new TR4/TR5 bump map
25
- *            support, also purged textile exposure
26
- *
27
- * 2001.05.21:
28
- * Mongoose - Added to project OpenRaider, more documentation
29
- *            than Freyja version I wrote ( 3d modeler )
30
- *
31
- *
32
- * 2000-05-13:
33
- * Mongoose - Added gcc and VC++ pragmas for packing
34
- *
35
- *            id style typedefs for structs
36
- *
37
- *            Heavy clean up and ported to C++
38
- *
39
- *            I saved yuri's notes as best I could and
40
- *            reformatted and corected as needed
41
- *
42
- * Mongoose - Created, based on:
43
- *                tr_view's tr2io.c by Yuri Zhivago, PhD,
44
- *                TR Rosetta Stone ( TombRaider pak format specs )
45
- ================================================================*/
5
+ * \author Mongoose
6
+ */
46 7
 
47 8
 #include <stdlib.h>
48 9
 #include <stdio.h>
@@ -2156,10 +2117,11 @@ int TombRaider::getMeshCount()
2156 2117
 }
2157 2118
 
2158 2119
 
2159
-//! \fixme Needs refinement once the ideal format it's feeding is refined
2160
-// I should stick a HACK postfix on the method name - it's temporary
2161
-// until an array format can be crafted from a pinned down design and
2162
-// RE notes review session ( eg what about TR5? )
2120
+/*! \fixme Needs refinement once the ideal format it's feeding is refined
2121
+ * I should stick a HACK postfix on the method name - it's temporary
2122
+ * until an array format can be crafted from a pinned down design and
2123
+ * RE notes review session ( eg what about TR5? )
2124
+ */
2163 2125
 void TombRaider::getMeshColoredRectangle(unsigned int meshIndex,
2164 2126
         unsigned int faceIndex,
2165 2127
         int *index, float *color)

Loading…
Откажи
Сачувај