Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
BombableRock.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/BombableRock_1.vtx.inc.c"
5#include "entity/model/BombableRock_2.vtx.inc.c"
6#include "entity/model/BombableRock_3.vtx.inc.c"
7#include "entity/model/BombableRock_4.vtx.inc.c"
8#include "entity/model/BombableRock_5.vtx.inc.c"
9
10INCLUDE_IMG("entity/model/BombableRock.png", D_0A000840_E9DE90);
11INCLUDE_PAL("entity/model/BombableRock.pal", D_0A001040_E9E690);
13 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
14 gsDPPipeSync(),
15 gsDPSetCombineMode(PM_CC_03, PM_CC_03),
16 gsDPSetTextureDetail(G_TD_CLAMP),
17 gsDPSetTextureLOD(G_TL_TILE),
18 gsDPLoadTextureBlock_4b(D_0A000840_E9DE90, G_IM_FMT_CI, 64, 64, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 6, 6, G_TX_NOLOD, G_TX_NOLOD),
19 gsDPSetTexturePersp(G_TP_PERSP),
20 gsDPSetTextureLUT(G_TT_RGBA16),
21 gsDPLoadTLUT_pal16(0, D_0A001040_E9E690),
22 gsDPSetTextureFilter(G_TF_BILERP),
23 gsDPSetTextureConvert(G_TC_FILT),
24 gsSPEndDisplayList(),
25};
26
28 {
29 .m = {
30 { 0x00010000, 0x00000000,
31 0x00000001, 0x00000000 },
32 { 0x00000000, 0x00010000,
33 0x00000023, 0x00000001 },
34 { 0x00000000, 0x00000000,
35 0x00000000, 0x00000000 },
36 { 0x00000000, 0x00000000,
37 0x000006D4, 0x00000000 }
38 }
39 },
40 {
41 .m = {
42 { 0x00010000, 0x00000000,
43 0x00000001, 0x00000000 },
44 { 0x00000000, 0x00010000,
45 0x00090012, 0x00100001 },
46 { 0x00000000, 0x00000000,
47 0x00000000, 0x00000000 },
48 { 0x00000000, 0x00000000,
49 0xA924647E, 0xBB9A0000 }
50 }
51 },
52 {
53 .m = {
54 { 0x00010000, 0x00000000,
55 0x00000001, 0x00000000 },
56 { 0x00000000, 0x00010000,
57 0x00100012, 0xFFF70001 },
58 { 0x00000000, 0x00000000,
59 0x00000000, 0x00000000 },
60 { 0x00000000, 0x00000000,
61 0xBB9A647E, 0x56DC0000 }
62 }
63 },
64 {
65 .m = {
66 { 0x00010000, 0x00000000,
67 0x00000001, 0x00000000 },
68 { 0x00000000, 0x00010000,
69 0xFFF00012, 0x00090001 },
70 { 0x00000000, 0x00000000,
71 0x00000000, 0x00000000 },
72 { 0x00000000, 0x00000000,
73 0x4466647E, 0xA9240000 }
74 }
75 },
76 {
77 .m = {
78 { 0x00010000, 0x00000000,
79 0x00000001, 0x00000000 },
80 { 0x00000000, 0x00010000,
81 0xFFF70012, 0xFFF00001 },
82 { 0x00000000, 0x00000000,
83 0x00000000, 0x00000000 },
84 { 0x00000000, 0x00000000,
85 0x56DC647E, 0x44660000 }
86 }
87 },
88};
89
91 gsDPPipeSync(),
92 gsDPSetCycleType(G_CYC_1CYCLE),
93 gsSPDisplayList(D_0A001060_E9E6B0),
94 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
95 gsSPSetGeometryMode(G_CULL_BACK),
96 gsSPVertex(D_0A000720_E9DD70, 18, 0),
97 gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
98 gsSP2Triangles(1, 4, 2, 0, 2, 5, 0, 0),
99 gsSP2Triangles(2, 4, 6, 0, 2, 6, 5, 0),
100 gsSP2Triangles(4, 3, 6, 0, 6, 7, 8, 0),
101 gsSP2Triangles(6, 8, 9, 0, 6, 9, 5, 0),
102 gsSP2Triangles(10, 7, 6, 0, 10, 6, 3, 0),
103 gsSP2Triangles(5, 9, 11, 0, 5, 11, 0, 0),
104 gsSP2Triangles(7, 11, 9, 0, 7, 9, 8, 0),
105 gsSP2Triangles(3, 1, 12, 0, 3, 12, 13, 0),
106 gsSP2Triangles(13, 10, 3, 0, 7, 10, 14, 0),
107 gsSP2Triangles(7, 14, 11, 0, 15, 16, 17, 0),
108 gsSP2Triangles(13, 12, 14, 0, 13, 14, 10, 0),
109 gsSP2Triangles(14, 12, 1, 0, 0, 14, 1, 0),
110 gsSPEndDisplayList(),
111};
112
114 gsSPDisplayList(D_0A001258_E9E8A8),
115 gsSPEndDisplayList(),
116};
117
119 gsDPPipeSync(),
120 gsDPSetCycleType(G_CYC_1CYCLE),
121 gsSPDisplayList(D_0A001060_E9E6B0),
122 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
123 gsSPSetGeometryMode(G_CULL_BACK),
124 gsSPVertex(D_0A000600_E9DC50, 18, 0),
125 gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
126 gsSP2Triangles(1, 4, 2, 0, 2, 5, 0, 0),
127 gsSP2Triangles(2, 4, 6, 0, 2, 6, 5, 0),
128 gsSP2Triangles(4, 3, 6, 0, 6, 7, 8, 0),
129 gsSP2Triangles(6, 8, 9, 0, 6, 9, 5, 0),
130 gsSP2Triangles(10, 7, 6, 0, 10, 6, 3, 0),
131 gsSP2Triangles(5, 9, 11, 0, 5, 11, 0, 0),
132 gsSP2Triangles(7, 11, 9, 0, 7, 9, 8, 0),
133 gsSP2Triangles(3, 1, 12, 0, 3, 12, 13, 0),
134 gsSP2Triangles(13, 10, 3, 0, 7, 10, 14, 0),
135 gsSP2Triangles(7, 14, 11, 0, 15, 16, 17, 0),
136 gsSP2Triangles(13, 12, 14, 0, 13, 14, 10, 0),
137 gsSP2Triangles(14, 12, 1, 0, 0, 14, 1, 0),
138 gsSPEndDisplayList(),
139};
140
142 gsSPDisplayList(D_0A001308_E9E958),
143 gsSPEndDisplayList(),
144};
145
147 gsDPPipeSync(),
148 gsDPSetCycleType(G_CYC_1CYCLE),
149 gsSPDisplayList(D_0A001060_E9E6B0),
150 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
151 gsSPSetGeometryMode(G_CULL_BACK),
152 gsSPVertex(D_0A0004A0_E9DAF0, 22, 0),
153 gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
154 gsSP2Triangles(1, 4, 2, 0, 2, 5, 0, 0),
155 gsSP2Triangles(2, 4, 6, 0, 2, 6, 5, 0),
156 gsSP2Triangles(4, 3, 6, 0, 6, 7, 8, 0),
157 gsSP2Triangles(6, 8, 9, 0, 6, 9, 5, 0),
158 gsSP2Triangles(10, 7, 6, 0, 10, 6, 3, 0),
159 gsSP2Triangles(5, 9, 11, 0, 5, 11, 0, 0),
160 gsSP2Triangles(7, 11, 9, 0, 7, 9, 8, 0),
161 gsSP2Triangles(3, 1, 12, 0, 3, 12, 13, 0),
162 gsSP2Triangles(13, 10, 3, 0, 7, 10, 14, 0),
163 gsSP2Triangles(7, 14, 11, 0, 15, 16, 17, 0),
164 gsSP2Triangles(14, 12, 1, 0, 0, 14, 1, 0),
165 gsSP2Triangles(18, 19, 20, 0, 18, 20, 21, 0),
166 gsSPEndDisplayList(),
167};
168
170 gsSPDisplayList(D_0A0013B8_E9EA08),
171 gsSPEndDisplayList(),
172};
173
175 gsDPPipeSync(),
176 gsDPSetCycleType(G_CYC_1CYCLE),
177 gsSPDisplayList(D_0A001060_E9E6B0),
178 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
179 gsSPSetGeometryMode(G_CULL_BACK),
180 gsSPVertex(D_0A000380_E9D9D0, 18, 0),
181 gsSP2Triangles(0, 1, 2, 0, 1, 3, 4, 0),
182 gsSP2Triangles(1, 4, 2, 0, 2, 5, 0, 0),
183 gsSP2Triangles(2, 4, 6, 0, 2, 6, 5, 0),
184 gsSP2Triangles(4, 3, 6, 0, 6, 7, 8, 0),
185 gsSP2Triangles(6, 8, 9, 0, 6, 9, 5, 0),
186 gsSP2Triangles(10, 7, 6, 0, 10, 6, 3, 0),
187 gsSP2Triangles(5, 9, 11, 0, 5, 11, 0, 0),
188 gsSP2Triangles(7, 11, 9, 0, 7, 9, 8, 0),
189 gsSP2Triangles(3, 1, 12, 0, 3, 12, 13, 0),
190 gsSP2Triangles(13, 10, 3, 0, 7, 10, 14, 0),
191 gsSP2Triangles(7, 14, 11, 0, 15, 16, 17, 0),
192 gsSP2Triangles(13, 12, 14, 0, 13, 14, 10, 0),
193 gsSP2Triangles(14, 12, 1, 0, 0, 14, 1, 0),
194 gsSPEndDisplayList(),
195};
196
198 gsSPDisplayList(D_0A001468_E9EAB8),
199 gsSPEndDisplayList(),
200};
201
203 gsDPPipeSync(),
204 gsDPSetCycleType(G_CYC_1CYCLE),
205 gsSPDisplayList(D_0A001060_E9E6B0),
206 gsSPClearGeometryMode(G_LIGHTING),
207 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
208 gsSPVertex(&D_0A000000_E9D650[0], 30, 0),
209 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
210 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
211 gsSP2Triangles(0, 5, 6, 0, 0, 6, 7, 0),
212 gsSP2Triangles(8, 9, 7, 0, 8, 7, 6, 0),
213 gsSP2Triangles(8, 6, 10, 0, 8, 10, 11, 0),
214 gsSP2Triangles(8, 11, 12, 0, 13, 14, 15, 0),
215 gsSP2Triangles(16, 12, 11, 0, 17, 18, 19, 0),
216 gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
217 gsSP2Triangles(20, 23, 24, 0, 20, 24, 18, 0),
218 gsSP2Triangles(20, 18, 17, 0, 20, 17, 25, 0),
219 gsSP2Triangles(20, 25, 26, 0, 20, 26, 27, 0),
220 gsSP2Triangles(20, 27, 28, 0, 20, 28, 29, 0),
221 gsSPVertex(&D_0A000000_E9D650[26], 2, 0),
222 gsSPVertex(&D_0A000000_E9D650[30], 26, 2),
223 gsSP2Triangles(2, 1, 0, 0, 3, 9, 10, 0),
224 gsSP2Triangles(3, 10, 11, 0, 3, 11, 12, 0),
225 gsSP2Triangles(3, 12, 13, 0, 3, 13, 14, 0),
226 gsSP2Triangles(3, 14, 4, 0, 4, 15, 3, 0),
227 gsSP2Triangles(3, 16, 17, 0, 3, 17, 18, 0),
228 gsSP2Triangles(5, 19, 20, 0, 5, 20, 21, 0),
229 gsSP2Triangles(5, 21, 22, 0, 5, 22, 23, 0),
230 gsSP2Triangles(5, 23, 24, 0, 5, 24, 6, 0),
231 gsSP2Triangles(6, 7, 5, 0, 7, 25, 26, 0),
232 gsSP1Triangle(8, 26, 27, 0),
233 gsSPEndDisplayList(),
234};
235
237 gsSPDisplayList(D_0A001518_E9EB68),
238 gsSPEndDisplayList(),
239};
240
242 gsSPDisplayList(D_0A001610_E9EC60),
243 gsSPDisplayList(D_0A001508_E9EB58),
244 gsSPDisplayList(D_0A001458_E9EAA8),
245 gsSPDisplayList(D_0A0013A8_E9E9F8),
246 gsSPDisplayList(D_0A0012F8_E9E948),
247 gsSPEndDisplayList(),
248};
249
251 gsSPDisplayList(D_0A001620_E9EC70),
252 gsSPEndDisplayList(),
253};
254
Mtx Entity_BombableRock_FragmentMatrices[]
Gfx * Entity_BombableRock_FragmentsRender[]
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
Gfx D_0A001620_E9EC70[]
Gfx D_0A001468_E9EAB8[]
Gfx D_0A001610_E9EC60[]
Gfx D_0A0013B8_E9EA08[]
Gfx D_0A001060_E9E6B0[]
Gfx D_0A0013A8_E9E9F8[]
Gfx D_0A001258_E9E8A8[]
Gfx D_0A001518_E9EB68[]
Gfx D_0A001458_E9EAA8[]
Gfx D_0A001508_E9EB58[]
Gfx D_0A0012F8_E9E948[]
Gfx D_0A001650_E9ECA0[]
Gfx D_0A001308_E9E958[]
#define PM_CC_03
Definition macros.h:278