Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
BoardedFloor.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/BoardedFloor_1.vtx.inc.c"
5#include "entity/model/BoardedFloor_2.vtx.inc.c"
6#include "entity/model/BoardedFloor_3.vtx.inc.c"
7#include "entity/model/BoardedFloor_4.vtx.inc.c"
8#include "entity/model/BoardedFloor_5.vtx.inc.c"
9#include "entity/model/BoardedFloor_6.vtx.inc.c"
10#include "entity/model/BoardedFloor_7.vtx.inc.c"
11#include "entity/model/BoardedFloor_8.vtx.inc.c"
12#include "entity/model/BoardedFloor_9.vtx.inc.c"
13#include "entity/model/BoardedFloor_A.vtx.inc.c"
14#include "entity/model/BoardedFloor_B.vtx.inc.c"
15#include "entity/model/BoardedFloor_C.vtx.inc.c"
16
17INCLUDE_IMG("entity/model/BoardedFloor.png", D_0A001400_E4FBF0);
19 gsDPSetTextureLUT(G_TT_NONE),
20 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
21 gsDPSetCombineMode(PM_CC_03, PM_CC_03),
22 gsDPSetTextureDetail(G_TD_CLAMP),
23 gsDPSetTextureLOD(G_TL_TILE),
24 gsDPLoadTextureBlock(D_0A001400_E4FBF0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 6, 5, G_TX_NOLOD, G_TX_NOLOD),
25 gsDPSetTexturePersp(G_TP_PERSP),
26 gsDPSetTextureFilter(G_TF_BILERP),
27 gsSPEndDisplayList(),
28};
29
31 {
32 .m = {
33 { 0x00010000, 0x00000000,
34 0x00000001, 0x00000000 },
35 { 0x00000000, 0x00010000,
36 0xFFF30002, 0xFFF30001 },
37 { 0x00000000, 0x00000000,
38 0x00000000, 0x00000000 },
39 { 0x00000000, 0x00000000,
40 0xD5558000, 0x8E390000 }
41 }
42 },
43 {
44 .m = {
45 { 0x00010000, 0x00000000,
46 0x00000001, 0x00000000 },
47 { 0x00000000, 0x00010000,
48 0x00010002, 0x00080001 },
49 { 0x00000000, 0x00000000,
50 0x00000000, 0x00000000 },
51 { 0x00000000, 0x00000000,
52 0xD5558000, 0x8E390000 }
53 }
54 },
55 {
56 .m = {
57 { 0x00010000, 0x00000000,
58 0x00000001, 0x00000000 },
59 { 0x00000000, 0x00010000,
60 0xFFF50001, 0x00020001 },
61 { 0x00000000, 0x00000000,
62 0x00000000, 0x00000000 },
63 { 0x00000000, 0x00000000,
64 0xE65D8000, 0x046B0000 }
65 }
66 },
67 {
68 .m = {
69 { 0x00010000, 0x00000000,
70 0x00000001, 0x00000000 },
71 { 0x00000000, 0x00010000,
72 0x000C0001, 0xFFF40001 },
73 { 0x00000000, 0x00000000,
74 0x00000000, 0x00000000 },
75 { 0x00000000, 0x00000000,
76 0x65928000, 0x7ED60000 }
77 }
78 },
79 {
80 .m = {
81 { 0x00010000, 0x00000000,
82 0x00000001, 0x00000000 },
83 { 0x00000000, 0x00010000,
84 0x000FFFFF, 0x00190001 },
85 { 0x00000000, 0x00000000,
86 0x00000000, 0x00000000 },
87 { 0x00000000, 0x00000000,
88 0x00008000, 0x80000000 }
89 }
90 },
91 {
92 .m = {
93 { 0x00010000, 0x00000000,
94 0x00000001, 0x00000000 },
95 { 0x00000000, 0x00010000,
96 0xFFF1FFFF, 0x00190001 },
97 { 0x00000000, 0x00000000,
98 0x00000000, 0x00000000 },
99 { 0x00000000, 0x00000000,
100 0x00008000, 0x80000000 }
101 }
102 },
103 {
104 .m = {
105 { 0x00010000, 0x00000000,
106 0x00000001, 0x00000000 },
107 { 0x00000000, 0x00010000,
108 0x000BFFFF, 0x000A0001 },
109 { 0x00000000, 0x00000000,
110 0x00000000, 0x00000000 },
111 { 0x00000000, 0x00000000,
112 0x40008000, 0x80000000 }
113 }
114 },
115 {
116 .m = {
117 { 0x00010000, 0x00000000,
118 0x00000001, 0x00000000 },
119 { 0x00000000, 0x00010000,
120 0xFFEEFFFF, 0x000A0001 },
121 { 0x00000000, 0x00000000,
122 0x00000000, 0x00000000 },
123 { 0x00000000, 0x00000000,
124 0x40008000, 0x80000000 }
125 }
126 },
127 {
128 .m = {
129 { 0x00010000, 0x00000000,
130 0x00000001, 0x00000000 },
131 { 0x00000000, 0x00010000,
132 0xFFEFFFFF, 0xFFF80001 },
133 { 0x00000000, 0x00000000,
134 0x00000000, 0x00000000 },
135 { 0x00000000, 0x00000000,
136 0x80008000, 0x00000000 }
137 }
138 },
139 {
140 .m = {
141 { 0x00010000, 0x00000000,
142 0x00000001, 0x00000000 },
143 { 0x00000000, 0x00010000,
144 0x000CFFFF, 0xFFF80001 },
145 { 0x00000000, 0x00000000,
146 0x00000000, 0x00000000 },
147 { 0x00000000, 0x00000000,
148 0x80008000, 0x00000000 }
149 }
150 },
151 {
152 .m = {
153 { 0x00010000, 0x00000000,
154 0x00000001, 0x00000000 },
155 { 0x00000000, 0x00010000,
156 0xFFECFFFF, 0xFFEC0001 },
157 { 0x00000000, 0x00000000,
158 0x00000000, 0x00000000 },
159 { 0x00000000, 0x00000000,
160 0x00008000, 0x55550000 }
161 }
162 },
163 {
164 .m = {
165 { 0x00010000, 0x00000000,
166 0x00000001, 0x00000000 },
167 { 0x00000000, 0x00010000,
168 0x0007FFFF, 0xFFE90001 },
169 { 0x00000000, 0x00000000,
170 0x00000000, 0x00000000 },
171 { 0x00000000, 0x00000000,
172 0x80008000, 0x00000000 }
173 }
174 },
175};
176
178 gsDPPipeSync(),
179 gsDPSetCycleType(G_CYC_1CYCLE),
180 gsSPDisplayList(D_0A002400_E50BF0),
181 gsSPClearGeometryMode(G_LIGHTING),
182 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
183 gsSPVertex(D_0A001280_E4FA70, 16, 0),
184 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
185 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
186 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
187 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
188 gsSPVertex(&D_0A001280_E4FA70[16], 8, 0),
189 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
190 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
191 gsSPEndDisplayList(),
192};
193
195 gsSPDisplayList(D_0A002778_E50F68),
196 gsSPEndDisplayList(),
197};
198
200 gsDPPipeSync(),
201 gsDPSetCycleType(G_CYC_1CYCLE),
202 gsSPDisplayList(D_0A002400_E50BF0),
203 gsSPClearGeometryMode(G_LIGHTING),
204 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
205 gsSPVertex(D_0A001180_E4F970, 10, 0),
206 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
207 gsSP2Triangles(0, 4, 5, 0, 0, 5, 1, 0),
208 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
209 gsSPVertex(&D_0A001180_E4F970[10], 6, 0),
210 gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
211 gsSPEndDisplayList(),
212};
213
215 gsSPDisplayList(D_0A0027F8_E50FE8),
216 gsSPEndDisplayList(),
217};
218
220 gsDPPipeSync(),
221 gsDPSetCycleType(G_CYC_1CYCLE),
222 gsSPDisplayList(D_0A002400_E50BF0),
223 gsSPClearGeometryMode(G_LIGHTING),
224 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
225 gsSPVertex(D_0A001000_E4F7F0, 16, 0),
226 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
227 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
228 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
229 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
230 gsSPVertex(&D_0A001000_E4F7F0[16], 8, 0),
231 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
232 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
233 gsSPEndDisplayList(),
234};
235
237 gsSPDisplayList(D_0A002868_E51058),
238 gsSPEndDisplayList(),
239};
240
242 gsDPPipeSync(),
243 gsDPSetCycleType(G_CYC_1CYCLE),
244 gsSPDisplayList(D_0A002400_E50BF0),
245 gsSPClearGeometryMode(G_LIGHTING),
246 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
247 gsSPVertex(D_0A000E80_E4F670, 16, 0),
248 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
249 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
250 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
251 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
252 gsSPVertex(&D_0A000E80_E4F670[16], 8, 0),
253 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
254 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
255 gsSPEndDisplayList(),
256};
257
259 gsSPDisplayList(D_0A0028E8_E510D8),
260 gsSPEndDisplayList(),
261};
262
264 gsDPPipeSync(),
265 gsDPSetCycleType(G_CYC_1CYCLE),
266 gsSPDisplayList(D_0A002400_E50BF0),
267 gsSPClearGeometryMode(G_LIGHTING),
268 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
269 gsSPVertex(D_0A000C80_E4F470, 20, 0),
270 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
271 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
272 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
273 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
274 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
275 gsSPVertex(&D_0A000C80_E4F470[20], 12, 0),
276 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
277 gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
278 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
279 gsSP2Triangles(7, 10, 11, 0, 7, 11, 8, 0),
280 gsSPEndDisplayList(),
281};
282
284 gsSPDisplayList(D_0A002968_E51158),
285 gsSPEndDisplayList(),
286};
287
289 gsDPPipeSync(),
290 gsDPSetCycleType(G_CYC_1CYCLE),
291 gsSPDisplayList(D_0A002400_E50BF0),
292 gsSPClearGeometryMode(G_LIGHTING),
293 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
294 gsSPVertex(D_0A000A80_E4F270, 20, 0),
295 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
296 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
297 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
298 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
299 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
300 gsSPVertex(&D_0A000A80_E4F270[20], 12, 0),
301 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
302 gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
303 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
304 gsSP2Triangles(10, 11, 7, 0, 10, 7, 6, 0),
305 gsSPEndDisplayList(),
306};
307
309 gsSPDisplayList(D_0A002A00_E511F0),
310 gsSPEndDisplayList(),
311};
312
314 gsDPPipeSync(),
315 gsDPSetCycleType(G_CYC_1CYCLE),
316 gsSPDisplayList(D_0A002400_E50BF0),
317 gsSPClearGeometryMode(G_LIGHTING),
318 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
319 gsSPVertex(D_0A000900_E4F0F0, 16, 0),
320 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
321 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
322 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
323 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
324 gsSPVertex(&D_0A000900_E4F0F0[16], 8, 0),
325 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
326 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
327 gsSPEndDisplayList(),
328};
329
331 gsSPDisplayList(D_0A002A98_E51288),
332 gsSPEndDisplayList(),
333};
334
336 gsDPPipeSync(),
337 gsDPSetCycleType(G_CYC_1CYCLE),
338 gsSPDisplayList(D_0A002400_E50BF0),
339 gsSPClearGeometryMode(G_LIGHTING),
340 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
341 gsSPVertex(D_0A000780_E4EF70, 16, 0),
342 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
343 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
344 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
345 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
346 gsSPVertex(&D_0A000780_E4EF70[16], 8, 0),
347 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
348 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
349 gsSPEndDisplayList(),
350};
351
353 gsSPDisplayList(D_0A002B18_E51308),
354 gsSPEndDisplayList(),
355};
356
358 gsDPPipeSync(),
359 gsDPSetCycleType(G_CYC_1CYCLE),
360 gsSPDisplayList(D_0A002400_E50BF0),
361 gsSPClearGeometryMode(G_LIGHTING),
362 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
363 gsSPVertex(D_0A0005A0_E4ED90, 6, 0),
364 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
365 gsSP2Triangles(4, 0, 3, 0, 4, 3, 5, 0),
366 gsSPVertex(&D_0A0005A0_E4ED90[6], 12, 0),
367 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
368 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
369 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
370 gsSPVertex(&D_0A0005A0_E4ED90[18], 12, 0),
371 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
372 gsSP2Triangles(1, 0, 4, 0, 1, 4, 5, 0),
373 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
374 gsSP2Triangles(7, 6, 10, 0, 7, 10, 11, 0),
375 gsSPEndDisplayList(),
376};
377
379 gsSPDisplayList(D_0A002B98_E51388),
380 gsSPEndDisplayList(),
381};
382
384 gsDPPipeSync(),
385 gsDPSetCycleType(G_CYC_1CYCLE),
386 gsSPDisplayList(D_0A002400_E50BF0),
387 gsSPClearGeometryMode(G_LIGHTING),
388 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
389 gsSPVertex(D_0A0003C0_E4EBB0, 8, 0),
390 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
391 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
392 gsSPVertex(&D_0A0003C0_E4EBB0[4], 1, 0),
393 gsSPVertex(&D_0A0003C0_E4EBB0[7], 23, 1),
394 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
395 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
396 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
397 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
398 gsSP2Triangles(12, 15, 16, 0, 12, 16, 17, 0),
399 gsSP2Triangles(18, 19, 20, 0, 18, 20, 21, 0),
400 gsSP2Triangles(18, 21, 22, 0, 18, 22, 23, 0),
401 gsSPEndDisplayList(),
402};
403
405 gsSPDisplayList(D_0A002C38_E51428),
406 gsSPEndDisplayList(),
407};
408
410 gsDPPipeSync(),
411 gsDPSetCycleType(G_CYC_1CYCLE),
412 gsSPDisplayList(D_0A002400_E50BF0),
413 gsSPClearGeometryMode(G_LIGHTING),
414 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
415 gsSPVertex(D_0A0001E0_E4E9D0, 8, 0),
416 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
417 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
418 gsSPVertex(&D_0A0001E0_E4E9D0[4], 1, 0),
419 gsSPVertex(&D_0A0001E0_E4E9D0[7], 23, 1),
420 gsSP2Triangles(2, 3, 0, 0, 2, 0, 1, 0),
421 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
422 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
423 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
424 gsSP2Triangles(14, 16, 17, 0, 14, 17, 15, 0),
425 gsSP2Triangles(18, 19, 20, 0, 18, 20, 21, 0),
426 gsSP2Triangles(20, 22, 23, 0, 20, 23, 21, 0),
427 gsSPEndDisplayList(),
428};
429
431 gsSPDisplayList(D_0A002CD8_E514C8),
432 gsSPEndDisplayList(),
433};
434
436 gsDPPipeSync(),
437 gsDPSetCycleType(G_CYC_1CYCLE),
438 gsSPDisplayList(D_0A002400_E50BF0),
439 gsSPClearGeometryMode(G_LIGHTING),
440 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
441 gsSPVertex(&D_0A000000_E4E7F0[0], 6, 0),
442 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
443 gsSP2Triangles(4, 0, 3, 0, 4, 3, 5, 0),
444 gsSPVertex(&D_0A000000_E4E7F0[6], 12, 0),
445 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
446 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
447 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
448 gsSPVertex(&D_0A000000_E4E7F0[18], 12, 0),
449 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
450 gsSP2Triangles(4, 5, 3, 0, 4, 3, 2, 0),
451 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
452 gsSP2Triangles(10, 11, 9, 0, 10, 9, 8, 0),
453 gsSPEndDisplayList(),
454};
455
457 gsSPDisplayList(D_0A002D78_E51568),
458 gsSPEndDisplayList(),
459};
460
Mtx Entity_BoardedFloor_FragmentMatrices[]
Gfx * Entity_BoardedFloor_FragmentsRender[]
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Gfx D_0A002CD8_E514C8[]
Gfx D_0A0027F8_E50FE8[]
Gfx D_0A002B98_E51388[]
Gfx D_0A002E08_E515F8[]
Gfx D_0A002A98_E51288[]
Gfx D_0A002400_E50BF0[]
Gfx D_0A002958_E51148[]
Gfx D_0A002CC8_E514B8[]
Gfx D_0A002B18_E51308[]
Gfx D_0A002778_E50F68[]
Gfx D_0A002A00_E511F0[]
Gfx D_0A002C38_E51428[]
Gfx D_0A0029F0_E511E0[]
Gfx D_0A002A88_E51278[]
Gfx D_0A002B08_E512F8[]
Gfx D_0A002C28_E51418[]
Gfx D_0A0028E8_E510D8[]
Gfx D_0A002968_E51158[]
Gfx D_0A002858_E51048[]
Gfx D_0A002B88_E51378[]
Gfx D_0A0028D8_E510C8[]
Gfx D_0A002868_E51058[]
Gfx D_0A0027E8_E50FD8[]
Gfx D_0A002D68_E51558[]
Gfx D_0A002D78_E51568[]
#define PM_CC_03
Definition macros.h:278