Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
PadlockRedFace.c File Reference

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/PadlockRedFace_face.png", D_0A000700_E5EE30)
 
 INCLUDE_IMG ("entity/model/PadlockRedFace_keyhole.png", D_0A000978_E5F0A8)
 
 INCLUDE_PAL ("entity/model/PadlockRedFace_keyhole.pal", D_0A001178_E5F8A8)
 
 INCLUDE_IMG ("entity/model/PadlockRedFace_body.png", D_0A001420_E5FB50)
 
 INCLUDE_PAL ("entity/model/PadlockRedFace_body.pal", D_0A001820_E5FF50)
 

Variables

Gfx Entity_PadlockRedFace_LoadTextureFace []
 
Gfx Entity_PadlockRedFace_LoadTextureKeyhole []
 
Gfx Entity_PadlockRedFace_LoadTextureBody []
 
Mtx Entity_PadlockRedFace_mtxShackle
 
Gfx Entity_PadlockRedFace_RenderShackleMain []
 
Gfx Entity_PadlockRedFace_RenderShackle []
 
Gfx Entity_PadlockRedFace_RenderKeyhole []
 
Gfx Entity_PadlockRedFace_RenderFace []
 
Gfx Entity_PadlockRedFace_RenderBody []
 
Gfx Entity_PadlockRedFace_RenderMain []
 
Gfx Entity_PadlockRedFace_Render []
 

Function Documentation

◆ INCLUDE_IMG() [1/3]

INCLUDE_IMG ( "entity/model/PadlockRedFace_face.png" ,
D_0A000700_E5EE30  )

◆ INCLUDE_IMG() [2/3]

INCLUDE_IMG ( "entity/model/PadlockRedFace_keyhole.png" ,
D_0A000978_E5F0A8  )

◆ INCLUDE_PAL() [1/2]

INCLUDE_PAL ( "entity/model/PadlockRedFace_keyhole.pal" ,
D_0A001178_E5F8A8  )

◆ INCLUDE_IMG() [3/3]

INCLUDE_IMG ( "entity/model/PadlockRedFace_body.png" ,
D_0A001420_E5FB50  )

◆ INCLUDE_PAL() [2/2]

INCLUDE_PAL ( "entity/model/PadlockRedFace_body.pal" ,
D_0A001820_E5FF50  )

Variable Documentation

◆ Entity_PadlockRedFace_LoadTextureFace

Gfx Entity_PadlockRedFace_LoadTextureFace[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_NONE),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
gsDPLoadTextureBlock_4b(D_0A000700_E5EE30, 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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 10 of file PadlockRedFace.c.

10 {
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_E5EE30, 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};

◆ Entity_PadlockRedFace_LoadTextureKeyhole

Gfx Entity_PadlockRedFace_LoadTextureKeyhole[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A001178_E5F8A8),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
gsDPLoadTextureBlock(D_0A000978_E5F0A8, 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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 24 of file PadlockRedFace.c.

24 {
25 gsDPSetTextureLUT(G_TT_RGBA16),
26 gsDPLoadTLUT_pal256(D_0A001178_E5F8A8),
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_E5F0A8, 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};

◆ Entity_PadlockRedFace_LoadTextureBody

Gfx Entity_PadlockRedFace_LoadTextureBody[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A001820_E5FF50),
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
gsDPSetTextureDetail(G_TD_CLAMP),
gsDPSetTextureLOD(G_TL_TILE),
gsDPLoadTextureBlock(D_0A001420_E5FB50, 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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 39 of file PadlockRedFace.c.

39 {
40 gsDPSetTextureLUT(G_TT_RGBA16),
41 gsDPLoadTLUT_pal256(D_0A001820_E5FF50),
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_E5FB50, 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};

◆ Entity_PadlockRedFace_mtxShackle

Mtx Entity_PadlockRedFace_mtxShackle
Initial value:
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 22.500000,
0.000000, 0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 0.000000, 1.000000
)
#define RDP_MATRIX( Ax, Bx, Cx, Dx, Ay, By, Cy, Dy, Az, Bz, Cz, Dz, Aw, Bw, Cw, Dw)
Definition macros.h:233

Definition at line 52 of file PadlockRedFace.c.

Referenced by entity_PadlockRedFace_init().

◆ Entity_PadlockRedFace_RenderShackleMain

Gfx Entity_PadlockRedFace_RenderShackleMain[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(D_0A000660_E5ED90, 10, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(1, 4, 5, 0, 1, 5, 2, 0),
gsSP2Triangles(6, 0, 3, 0, 6, 3, 7, 0),
gsSP2Triangles(8, 9, 6, 0, 8, 6, 7, 0),
gsSPEndDisplayList(),
}

Definition at line 59 of file PadlockRedFace.c.

59 {
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_E5ED90, 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};

◆ Entity_PadlockRedFace_RenderShackle

Gfx Entity_PadlockRedFace_RenderShackle[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFace_RenderShackleMain[]

Definition at line 75 of file PadlockRedFace.c.

75 {
77 gsSPEndDisplayList(),
78};

Referenced by entity_PadlockRedFace_init().

◆ Entity_PadlockRedFace_RenderKeyhole

Gfx Entity_PadlockRedFace_RenderKeyhole[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_XLU_DECAL, G_RM_AA_ZB_XLU_DECAL2),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(D_0A000620_E5ED50, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFace_LoadTextureKeyhole[]

Definition at line 80 of file PadlockRedFace.c.

80 {
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_E5ED50, 4, 0),
88 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
89 gsSPEndDisplayList(),
90};

◆ Entity_PadlockRedFace_RenderFace

Gfx Entity_PadlockRedFace_RenderFace[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
gsSPClearGeometryMode(G_LIGHTING),
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
gsSPVertex(D_0A0005C0_E5ECF0, 6, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFace_LoadTextureFace[]

Definition at line 92 of file PadlockRedFace.c.

92 {
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_E5ECF0, 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};

◆ Entity_PadlockRedFace_RenderBody

Gfx Entity_PadlockRedFace_RenderBody[]

Definition at line 105 of file PadlockRedFace.c.

105 {
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_E5E730, 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_E5E730[1], 1, 1),
124 gsSPVertex(&D_0A000000_E5E730[17], 1, 2),
125 gsSPVertex(&D_0A000000_E5E730[23], 1, 3),
126 gsSPVertex(&D_0A000000_E5E730[27], 2, 4),
127 gsSPVertex(&D_0A000000_E5E730[30], 11, 6),
128 gsSPVertex(&D_0A000000_E5E730[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_E5E730[6], 1, 0),
141 gsSPVertex(&D_0A000000_E5E730[9], 1, 1),
142 gsSPVertex(&D_0A000000_E5E730[19], 4, 2),
143 gsSPVertex(&D_0A000000_E5E730[24], 3, 6),
144 gsSPVertex(&D_0A000000_E5E730[29], 1, 9),
145 gsSPVertex(&D_0A000000_E5E730[41], 9, 10),
146 gsSPVertex(&D_0A000000_E5E730[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_E5E730[50], 4, 0),
157 gsSPVertex(&D_0A000000_E5E730[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};
Gfx Entity_PadlockRedFace_LoadTextureBody[]

◆ Entity_PadlockRedFace_RenderMain

Gfx Entity_PadlockRedFace_RenderMain[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFace_RenderFace[]
Gfx Entity_PadlockRedFace_RenderKeyhole[]
Gfx Entity_PadlockRedFace_RenderBody[]

Definition at line 165 of file PadlockRedFace.c.

165 {
166 gsSPDisplayList(Entity_PadlockRedFace_RenderBody),
167 gsSPDisplayList(Entity_PadlockRedFace_RenderFace),
169 gsSPEndDisplayList(),
170};

◆ Entity_PadlockRedFace_Render

Gfx Entity_PadlockRedFace_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFace_RenderShackle[]
Gfx Entity_PadlockRedFace_RenderMain[]

Definition at line 172 of file PadlockRedFace.c.

172 {
173 gsSPDisplayList(Entity_PadlockRedFace_RenderMain),
175 gsSPEndDisplayList(),
176};