Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PadlockRedFrame.c
Go to the documentation of this file.
1#include "common.h"
2#include "include_asset.h"
3
4#include "entity/model/PadlockRedFrame_1.vtx.inc.c"
5#include "entity/model/PadlockRedFrame_2.vtx.inc.c"
6#include "entity/model/PadlockRedFrame_3.vtx.inc.c"
7#include "entity/model/PadlockRedFrame_4.vtx.inc.c"
8
9INCLUDE_IMG("entity/model/PadlockRedFrame_keyhole.png", D_0A000540_E5D2C0);
10INCLUDE_PAL("entity/model/PadlockRedFrame_keyhole.pal", D_0A000D40_E5DAC0);
12 gsDPSetTextureLUT(G_TT_RGBA16),
13 gsDPLoadTLUT_pal256(D_0A000D40_E5DAC0),
14 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
15 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
16 gsDPSetTextureDetail(G_TD_CLAMP),
17 gsDPSetTextureLOD(G_TL_TILE),
18 gsDPLoadTextureBlock(D_0A000540_E5D2C0, 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),
19 gsDPSetTexturePersp(G_TP_PERSP),
20 gsDPSetTextureFilter(G_TF_BILERP),
21 gsSPEndDisplayList(),
22};
23
24INCLUDE_IMG("entity/model/PadlockRedFrame_face.png", D_0A000FE8_E5DD68);
25INCLUDE_PAL("entity/model/PadlockRedFrame_face.pal", D_0A0013E8_E5E168);
27 gsDPSetTextureLUT(G_TT_RGBA16),
28 gsDPLoadTLUT_pal256(D_0A0013E8_E5E168),
29 gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
30 gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
31 gsDPSetTextureDetail(G_TD_CLAMP),
32 gsDPSetTextureLOD(G_TL_TILE),
33 gsDPLoadTextureBlock(D_0A000FE8_E5DD68, 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),
34 gsDPSetTexturePersp(G_TP_PERSP),
35 gsDPSetTextureFilter(G_TF_BILERP),
36 gsSPEndDisplayList(),
37};
38
40 1.000000, 0.000000, 0.000000, 0.000000,
41 0.000000, 1.000000, 0.000000, 0.000000,
42 0.000000, 0.000000, 1.000000, 0.000000,
43 0.000000, 0.000000, 0.000000, 1.000000
44);
45
47 gsDPPipeSync(),
48 gsDPSetCycleType(G_CYC_1CYCLE),
49 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
50 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
51 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
52 gsSPClearGeometryMode(G_LIGHTING),
53 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
54 gsSPVertex(D_0A000280_E5D000, 22, 0),
55 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
56 gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
57 gsSP2Triangles(2, 4, 7, 0, 2, 7, 8, 0),
58 gsSP2Triangles(3, 2, 8, 0, 3, 8, 9, 0),
59 gsSP2Triangles(10, 9, 11, 0, 10, 11, 12, 0),
60 gsSP2Triangles(13, 3, 9, 0, 13, 9, 10, 0),
61 gsSP2Triangles(8, 7, 14, 0, 8, 14, 15, 0),
62 gsSP2Triangles(11, 15, 16, 0, 11, 16, 17, 0),
63 gsSP2Triangles(15, 14, 18, 0, 15, 18, 16, 0),
64 gsSP2Triangles(12, 11, 17, 0, 12, 17, 19, 0),
65 gsSP2Triangles(14, 20, 21, 0, 14, 21, 18, 0),
66 gsSP2Triangles(7, 6, 20, 0, 7, 20, 14, 0),
67 gsSPClearGeometryMode(G_SHADING_SMOOTH),
68 gsSPVertex(&D_0A000280_E5D000[22], 4, 0),
69 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
70 gsSPSetGeometryMode(G_SHADING_SMOOTH),
71 gsSPVertex(D_0A000280_E5D000, 3, 0),
72 gsSPVertex(&D_0A000280_E5D000[4], 2, 3),
73 gsSPVertex(&D_0A000280_E5D000[8], 2, 5),
74 gsSPVertex(&D_0A000280_E5D000[11], 1, 7),
75 gsSPVertex(&D_0A000280_E5D000[15], 1, 8),
76 gsSPVertex(&D_0A000280_E5D000[26], 18, 9),
77 gsSP2Triangles(9, 10, 11, 0, 9, 11, 12, 0),
78 gsSP2Triangles(13, 14, 10, 0, 13, 10, 9, 0),
79 gsSP2Triangles(10, 15, 16, 0, 10, 16, 11, 0),
80 gsSP2Triangles(14, 17, 15, 0, 14, 15, 10, 0),
81 gsSP2Triangles(12, 11, 0, 0, 12, 0, 18, 0),
82 gsSP2Triangles(11, 16, 1, 0, 11, 1, 0, 0),
83 gsSP2Triangles(16, 19, 20, 0, 16, 20, 1, 0),
84 gsSP2Triangles(19, 21, 22, 0, 19, 22, 20, 0),
85 gsSP2Triangles(15, 23, 19, 0, 15, 19, 16, 0),
86 gsSP2Triangles(23, 24, 21, 0, 23, 21, 19, 0),
87 gsSP2Triangles(20, 22, 4, 0, 20, 4, 3, 0),
88 gsSP2Triangles(1, 20, 3, 0, 1, 3, 2, 0),
89 gsSP2Triangles(17, 25, 23, 0, 17, 23, 15, 0),
90 gsSP2Triangles(25, 26, 24, 0, 25, 24, 23, 0),
91 gsSP2Triangles(6, 5, 8, 0, 6, 8, 7, 0),
92 gsSPEndDisplayList(),
93};
94
97 gsSPEndDisplayList(),
98};
99
101 gsDPPipeSync(),
102 gsDPSetCycleType(G_CYC_1CYCLE),
103 gsDPSetRenderMode(G_RM_AA_ZB_XLU_DECAL, G_RM_AA_ZB_XLU_DECAL2),
105 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
106 gsSPSetGeometryMode(G_CULL_BACK),
107 gsSPVertex(D_0A000240_E5CFC0, 4, 0),
108 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
109 gsSPEndDisplayList(),
110};
111
113 gsDPPipeSync(),
114 gsDPSetCycleType(G_CYC_1CYCLE),
115 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
117 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
118 gsSPSetGeometryMode(G_CULL_BACK),
119 gsSPVertex(D_0A000200_E5CF80, 4, 0),
120 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
121 gsSPEndDisplayList(),
122};
123
125 gsDPPipeSync(),
126 gsDPSetCycleType(G_CYC_1CYCLE),
127 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
128 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
129 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
130 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
131 gsSPSetGeometryMode(G_CULL_BACK),
132 gsSPVertex(D_0A000000_E5CD80, 32, 0),
133 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
134 gsSP2Triangles(1, 4, 5, 0, 1, 5, 6, 0),
135 gsSP2Triangles(7, 8, 2, 0, 7, 2, 9, 0),
136 gsSP2Triangles(4, 10, 11, 0, 4, 11, 8, 0),
137 gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
138 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
139 gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
140 gsSP2Triangles(24, 25, 26, 0, 24, 26, 27, 0),
141 gsSP2Triangles(28, 29, 30, 0, 28, 30, 31, 0),
142 gsSPEndDisplayList(),
143};
144
146 gsSPDisplayList(Entity_PadlockRedFrame_RenderBody),
147 gsSPDisplayList(Entity_PadlockRedFrame_RenderFace),
149 gsSPEndDisplayList(),
150};
151
153 gsSPDisplayList(Entity_PadlockRedFrame_RenderMain),
155 gsSPEndDisplayList(),
156};
Gfx Entity_PadlockRedFrame_LoadTextureKeyhole[]
Gfx Entity_PadlockRedFrame_RenderKeyhole[]
Gfx Entity_PadlockRedFrame_RenderFace[]
Gfx Entity_PadlockRedFrame_RenderBody[]
Gfx Entity_PadlockRedFrame_LoadTextureFace[]
Gfx Entity_PadlockRedFrame_Render[]
Gfx Entity_PadlockRedFrame_RenderShackle[]
Mtx Entity_PadlockRedFrame_mtxShackle
Gfx Entity_PadlockRedFrame_RenderShackleMain[]
Gfx Entity_PadlockRedFrame_RenderMain[]
#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