river_dl.h 10.7 KB
  gsDPPipeSync(),
  gsDPSetCycleType(G_CYC_1CYCLE),
  gsDPSetTextureLOD(G_TL_TILE),
  gsSPTexture(0xffff, 0xffff, 2, 1, G_ON),
  gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
  gsDPSetCombineLERP( PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, 0, 0, 0, TEXEL0, 
  PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT, 0, 0, 0, TEXEL0),

  gsDPSetEnvColor(47,74,181,255),
  gsDPSetPrimColor(0,0,100,100,100,255),

  gsDPSetTextureImage(G_IM_FMT_I, G_IM_SIZ_8b, 1, I8water32),
  gsDPSetTile(G_IM_FMT_I, G_IM_SIZ_8b, 0, 0, G_TX_LOADTILE,
              0 , G_TX_MIRROR, 5 ,G_TX_NOLOD,
              G_TX_MIRROR, 5, G_TX_NOLOD),
  gsDPLoadSync(),
  gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 1023, 0x200),
  gsDPTileSync(),

  gsDPSetTile(G_IM_FMT_I, G_IM_SIZ_8b, 4, 0,
              1, 0, G_TX_WRAP, 5, 0x0,
              G_TX_WRAP, 5,
              0xf),
 /* Tile Size for Tile 1 is set in main */

gsSPVertex(&gorge_vtx[1440], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1443], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1446], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1449], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1452], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1455], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1458], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1461], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1464], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1467], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1470], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1473], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1476], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1479], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1482], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1485], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1488], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1491], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1494], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1497], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1500], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1503], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1506], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1509], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1512], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1515], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1518], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1521], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1524], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1527], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1530], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1533], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1536], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1539], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1542], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1545], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1548], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1551], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1554], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1557], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1560], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1563], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1566], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1569], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1572], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1575], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1578], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1581], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1584], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1587], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1590], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1593], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1596], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1599], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1602], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1605], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1608], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1611], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1614], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1617], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1620], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1623], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1626], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1629], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1632], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1635], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1638], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1641], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1644], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1647], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1650], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1653], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1656], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1659], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1662], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1665], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1668], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1671], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1674], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1677], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1680], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1683], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1686], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1689], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1692], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1695], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1698], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1701], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1704], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1707], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1710], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1713], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1716], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1719], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1722], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1725], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1728], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1731], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1734], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1737], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1740], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1743], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1746], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1749], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1752], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1755], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1758], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1761], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1764], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1767], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1770], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1773], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1776], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1779], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1782], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1785], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1788], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1791], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1794], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1797], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1800], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1803], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1806], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1809], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1812], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1815], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1818], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1821], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1824], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1827], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1830], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1833], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1836], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1839], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1842], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1845], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1848], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1851], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1854], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1857], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1860], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1863], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1866], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1869], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1872], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1875], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1878], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1881], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1884], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1887], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1890], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1893], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1896], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1899], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1902], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1905], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1908], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1911], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1914], 3, 0),
gsSP1Triangle(0, 1, 2, 0),
gsSPVertex(&gorge_vtx[1917], 3, 0),
gsSP1Triangle(0, 1, 2, 0),