river_dl.h
10.7 KB
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
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),