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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/PadlockBlueFace_face.png", D_0A000700_E60C50)
 
 INCLUDE_IMG ("entity/model/PadlockBlueFace_keyhole.png", D_0A000978_E60EC8)
 
 INCLUDE_PAL ("entity/model/PadlockBlueFace_keyhole.pal", D_0A001178_E616C8)
 
 INCLUDE_IMG ("entity/model/PadlockBlueFace_body.png", D_0A001420_E61970)
 
 INCLUDE_PAL ("entity/model/PadlockBlueFace_body.pal", D_0A001820_E61D70)
 

Variables

Gfx Entity_PadlockBlueFace_LoadTextureFace []
 
Gfx Entity_PadlockBlueFace_LoadTextureKeyhole []
 
Gfx Entity_PadlockBlueFace_LoadTextureBody []
 
Mtx Entity_PadlockBlueFace_mtxShackle
 
Gfx Entity_PadlockBlueFace_RenderShackleMain []
 
Gfx Entity_PadlockBlueFace_RenderShackle []
 
Gfx Entity_PadlockBlueFace_RenderKeyhole []
 
Gfx Entity_PadlockBlueFace_RenderFace []
 
Gfx Entity_PadlockBlueFace_RenderBody []
 
Gfx Entity_PadlockBlueFace_RenderMain []
 
Gfx Entity_PadlockBlueFace_Render []
 

Function Documentation

◆ INCLUDE_IMG() [1/3]

INCLUDE_IMG ( "entity/model/PadlockBlueFace_face.png" ,
D_0A000700_E60C50  )

◆ INCLUDE_IMG() [2/3]

INCLUDE_IMG ( "entity/model/PadlockBlueFace_keyhole.png" ,
D_0A000978_E60EC8  )

◆ INCLUDE_PAL() [1/2]

INCLUDE_PAL ( "entity/model/PadlockBlueFace_keyhole.pal" ,
D_0A001178_E616C8  )

◆ INCLUDE_IMG() [3/3]

INCLUDE_IMG ( "entity/model/PadlockBlueFace_body.png" ,
D_0A001420_E61970  )

◆ INCLUDE_PAL() [2/2]

INCLUDE_PAL ( "entity/model/PadlockBlueFace_body.pal" ,
D_0A001820_E61D70  )

Variable Documentation

◆ Entity_PadlockBlueFace_LoadTextureFace

Gfx Entity_PadlockBlueFace_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_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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 10 of file PadlockBlueFace.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_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};

◆ Entity_PadlockBlueFace_LoadTextureKeyhole

Gfx Entity_PadlockBlueFace_LoadTextureKeyhole[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A001178_E616C8),
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_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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 24 of file PadlockBlueFace.c.

24 {
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};

◆ Entity_PadlockBlueFace_LoadTextureBody

Gfx Entity_PadlockBlueFace_LoadTextureBody[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A001820_E61D70),
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_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),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 39 of file PadlockBlueFace.c.

39 {
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};

◆ Entity_PadlockBlueFace_mtxShackle

Mtx Entity_PadlockBlueFace_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 PadlockBlueFace.c.

Referenced by entity_PadlockBlueFace_init().

◆ Entity_PadlockBlueFace_RenderShackleMain

Gfx Entity_PadlockBlueFace_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_E60BB0, 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 PadlockBlueFace.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_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};

◆ Entity_PadlockBlueFace_RenderShackle

Gfx Entity_PadlockBlueFace_RenderShackle[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockBlueFace_RenderShackleMain[]

Definition at line 75 of file PadlockBlueFace.c.

75 {
77 gsSPEndDisplayList(),
78};

Referenced by entity_PadlockBlueFace_init().

◆ Entity_PadlockBlueFace_RenderKeyhole

Gfx Entity_PadlockBlueFace_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_E60B70, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Gfx Entity_PadlockBlueFace_LoadTextureKeyhole[]

Definition at line 80 of file PadlockBlueFace.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_E60B70, 4, 0),
88 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
89 gsSPEndDisplayList(),
90};

◆ Entity_PadlockBlueFace_RenderFace

Gfx Entity_PadlockBlueFace_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_E60B10, 6, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
gsSPEndDisplayList(),
}
Gfx Entity_PadlockBlueFace_LoadTextureFace[]

Definition at line 92 of file PadlockBlueFace.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_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};

◆ Entity_PadlockBlueFace_RenderBody

Gfx Entity_PadlockBlueFace_RenderBody[]

Definition at line 105 of file PadlockBlueFace.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_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};
Gfx Entity_PadlockBlueFace_LoadTextureBody[]

◆ Entity_PadlockBlueFace_RenderMain

Gfx Entity_PadlockBlueFace_RenderMain[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockBlueFace_RenderBody[]
Gfx Entity_PadlockBlueFace_RenderFace[]
Gfx Entity_PadlockBlueFace_RenderKeyhole[]

Definition at line 165 of file PadlockBlueFace.c.

165 {
166 gsSPDisplayList(Entity_PadlockBlueFace_RenderBody),
167 gsSPDisplayList(Entity_PadlockBlueFace_RenderFace),
169 gsSPEndDisplayList(),
170};

◆ Entity_PadlockBlueFace_Render

Gfx Entity_PadlockBlueFace_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockBlueFace_RenderShackle[]
Gfx Entity_PadlockBlueFace_RenderMain[]

Definition at line 172 of file PadlockBlueFace.c.

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