Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PadlockBlueFace.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/PadlockBlueFace_1.vtx.inc.c"
5#include "entity/model/PadlockBlueFace_2.vtx.inc.c"
6#include "entity/model/PadlockBlueFace_3.vtx.inc.c"
7#include "entity/model/PadlockBlueFace_4.vtx.inc.c"
8
9INCLUDE_IMG("entity/model/PadlockBlueFace_face.png", D_0A000700_E60C50);
11 gsDPSetTextureLUT(G_TT_NONE),
12 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
13 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
14 gsDPSetTextureDetail(G_TD_CLAMP),
15 gsDPSetTextureLOD(G_TL_TILE),
16 gsDPLoadTextureBlock_4b(D_0A000700_E60C50, G_IM_FMT_I, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
17 gsDPSetTexturePersp(G_TP_PERSP),
18 gsDPSetTextureFilter(G_TF_BILERP),
19 gsSPEndDisplayList(),
20};
21
22INCLUDE_IMG("entity/model/PadlockBlueFace_keyhole.png", D_0A000978_E60EC8);
23INCLUDE_PAL("entity/model/PadlockBlueFace_keyhole.pal", D_0A001178_E616C8);
25 gsDPSetTextureLUT(G_TT_RGBA16),
26 gsDPLoadTLUT_pal256(D_0A001178_E616C8),
27 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
28 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
29 gsDPSetTextureDetail(G_TD_CLAMP),
30 gsDPSetTextureLOD(G_TL_TILE),
31 gsDPLoadTextureBlock(D_0A000978_E60EC8, G_IM_FMT_CI, G_IM_SIZ_8b, 32, 64, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 6, G_TX_NOLOD, G_TX_NOLOD),
32 gsDPSetTexturePersp(G_TP_PERSP),
33 gsDPSetTextureFilter(G_TF_BILERP),
34 gsSPEndDisplayList(),
35};
36
37INCLUDE_IMG("entity/model/PadlockBlueFace_body.png", D_0A001420_E61970);
38INCLUDE_PAL("entity/model/PadlockBlueFace_body.pal", D_0A001820_E61D70);
40 gsDPSetTextureLUT(G_TT_RGBA16),
41 gsDPLoadTLUT_pal256(D_0A001820_E61D70),
42 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
43 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
44 gsDPSetTextureDetail(G_TD_CLAMP),
45 gsDPSetTextureLOD(G_TL_TILE),
46 gsDPLoadTextureBlock(D_0A001420_E61970, G_IM_FMT_CI, G_IM_SIZ_8b, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
47 gsDPSetTexturePersp(G_TP_PERSP),
48 gsDPSetTextureFilter(G_TF_BILERP),
49 gsSPEndDisplayList(),
50};
51
53 1.000000, 0.000000, 0.000000, 0.000000,
54 0.000000, 1.000000, 0.000000, 22.500000,
55 0.000000, 0.000000, 1.000000, 0.000000,
56 0.000000, 0.000000, 0.000000, 1.000000
57);
58
60 gsDPPipeSync(),
61 gsDPSetCycleType(G_CYC_1CYCLE),
62 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
63 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
64 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
65 gsSPClearGeometryMode(G_LIGHTING),
66 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
67 gsSPVertex(D_0A000660_E60BB0, 10, 0),
68 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
69 gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
70 gsSP2Triangles(6, 0, 3, 0, 6, 3, 7, 0),
71 gsSP2Triangles(8, 9, 6, 0, 8, 6, 7, 0),
72 gsSPEndDisplayList(),
73};
74
77 gsSPEndDisplayList(),
78};
79
81 gsDPPipeSync(),
82 gsDPSetCycleType(G_CYC_1CYCLE),
83 gsDPSetRenderMode(G_RM_AA_ZB_XLU_DECAL, G_RM_AA_ZB_XLU_DECAL2),
85 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
86 gsSPSetGeometryMode(G_CULL_BACK),
87 gsSPVertex(D_0A000620_E60B70, 4, 0),
88 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
89 gsSPEndDisplayList(),
90};
91
93 gsDPPipeSync(),
94 gsDPSetCycleType(G_CYC_1CYCLE),
95 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
97 gsSPClearGeometryMode(G_LIGHTING),
98 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
99 gsSPVertex(D_0A0005C0_E60B10, 6, 0),
100 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
101 gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
102 gsSPEndDisplayList(),
103};
104
106 gsDPPipeSync(),
107 gsDPSetCycleType(G_CYC_1CYCLE),
108 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
110 gsSPClearGeometryMode(G_LIGHTING),
111 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
112 gsSPVertex(D_0A000000_E60550, 32, 0),
113 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
114 gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
115 gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
116 gsSP2Triangles(7, 10, 11, 0, 7, 11, 8, 0),
117 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
118 gsSP2Triangles(16, 17, 12, 0, 16, 12, 18, 0),
119 gsSP2Triangles(14, 19, 20, 0, 14, 20, 21, 0),
120 gsSP2Triangles(14, 21, 22, 0, 14, 22, 23, 0),
121 gsSP2Triangles(24, 25, 26, 0, 24, 26, 27, 0),
122 gsSP2Triangles(24, 27, 28, 0, 24, 28, 29, 0),
123 gsSPVertex(&D_0A000000_E60550[1], 1, 1),
124 gsSPVertex(&D_0A000000_E60550[17], 1, 2),
125 gsSPVertex(&D_0A000000_E60550[23], 1, 3),
126 gsSPVertex(&D_0A000000_E60550[27], 2, 4),
127 gsSPVertex(&D_0A000000_E60550[30], 11, 6),
128 gsSPVertex(&D_0A000000_E60550[54], 13, 17),
129 gsSP2Triangles(4, 6, 7, 0, 4, 7, 8, 0),
130 gsSP2Triangles(7, 9, 10, 0, 7, 10, 17, 0),
131 gsSP2Triangles(10, 14, 18, 0, 10, 18, 19, 0),
132 gsSP2Triangles(10, 19, 8, 0, 10, 8, 17, 0),
133 gsSP2Triangles(11, 20, 1, 0, 11, 1, 0, 0),
134 gsSP2Triangles(12, 21, 22, 0, 12, 22, 2, 0),
135 gsSP2Triangles(13, 12, 23, 0, 13, 23, 24, 0),
136 gsSP2Triangles(9, 25, 26, 0, 9, 26, 27, 0),
137 gsSP2Triangles(14, 27, 15, 0, 14, 15, 18, 0),
138 gsSP2Triangles(15, 28, 5, 0, 15, 5, 19, 0),
139 gsSP2Triangles(16, 13, 29, 0, 16, 29, 3, 0),
140 gsSPVertex(&D_0A000000_E60550[6], 1, 0),
141 gsSPVertex(&D_0A000000_E60550[9], 1, 1),
142 gsSPVertex(&D_0A000000_E60550[19], 4, 2),
143 gsSPVertex(&D_0A000000_E60550[24], 3, 6),
144 gsSPVertex(&D_0A000000_E60550[29], 1, 9),
145 gsSPVertex(&D_0A000000_E60550[41], 9, 10),
146 gsSPVertex(&D_0A000000_E60550[67], 13, 19),
147 gsSP2Triangles(10, 19, 11, 0, 10, 11, 20, 0),
148 gsSP2Triangles(11, 17, 21, 0, 11, 21, 20, 0),
149 gsSP2Triangles(12, 22, 0, 0, 12, 0, 1, 0),
150 gsSP2Triangles(2, 13, 23, 0, 2, 23, 3, 0),
151 gsSP2Triangles(4, 14, 24, 0, 4, 24, 5, 0),
152 gsSP2Triangles(6, 9, 15, 0, 6, 15, 25, 0),
153 gsSP2Triangles(7, 16, 26, 0, 7, 26, 8, 0),
154 gsSP2Triangles(17, 27, 28, 0, 17, 28, 21, 0),
155 gsSP2Triangles(18, 29, 30, 0, 18, 30, 31, 0),
156 gsSPVertex(&D_0A000000_E60550[50], 4, 0),
157 gsSPVertex(&D_0A000000_E60550[80], 12, 4),
158 gsSP2Triangles(0, 4, 5, 0, 0, 5, 6, 0),
159 gsSP2Triangles(1, 7, 8, 0, 1, 8, 9, 0),
160 gsSP2Triangles(2, 10, 11, 0, 2, 11, 12, 0),
161 gsSP2Triangles(3, 13, 14, 0, 3, 14, 15, 0),
162 gsSPEndDisplayList(),
163};
164
166 gsSPDisplayList(Entity_PadlockBlueFace_RenderBody),
167 gsSPDisplayList(Entity_PadlockBlueFace_RenderFace),
169 gsSPEndDisplayList(),
170};
171
173 gsSPDisplayList(Entity_PadlockBlueFace_RenderMain),
175 gsSPEndDisplayList(),
176};
Gfx Entity_PadlockBlueFace_RenderBody[]
Gfx Entity_PadlockBlueFace_RenderShackleMain[]
Gfx Entity_PadlockBlueFace_RenderFace[]
Gfx Entity_PadlockBlueFace_Render[]
Gfx Entity_PadlockBlueFace_LoadTextureFace[]
Gfx Entity_PadlockBlueFace_RenderShackle[]
Gfx Entity_PadlockBlueFace_LoadTextureBody[]
Gfx Entity_PadlockBlueFace_RenderKeyhole[]
Gfx Entity_PadlockBlueFace_RenderMain[]
Gfx Entity_PadlockBlueFace_LoadTextureKeyhole[]
Mtx Entity_PadlockBlueFace_mtxShackle
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233