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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/PadlockRedFrame_keyhole.png", D_0A000540_E5D2C0)
 
 INCLUDE_PAL ("entity/model/PadlockRedFrame_keyhole.pal", D_0A000D40_E5DAC0)
 
 INCLUDE_IMG ("entity/model/PadlockRedFrame_face.png", D_0A000FE8_E5DD68)
 
 INCLUDE_PAL ("entity/model/PadlockRedFrame_face.pal", D_0A0013E8_E5E168)
 

Variables

Gfx Entity_PadlockRedFrame_LoadTextureKeyhole []
 
Gfx Entity_PadlockRedFrame_LoadTextureFace []
 
Mtx Entity_PadlockRedFrame_mtxShackle
 
Gfx Entity_PadlockRedFrame_RenderShackleMain []
 
Gfx Entity_PadlockRedFrame_RenderShackle []
 
Gfx Entity_PadlockRedFrame_RenderKeyhole []
 
Gfx Entity_PadlockRedFrame_RenderFace []
 
Gfx Entity_PadlockRedFrame_RenderBody []
 
Gfx Entity_PadlockRedFrame_RenderMain []
 
Gfx Entity_PadlockRedFrame_Render []
 

Function Documentation

◆ INCLUDE_IMG() [1/2]

INCLUDE_IMG ( "entity/model/PadlockRedFrame_keyhole.png" ,
D_0A000540_E5D2C0  )

◆ INCLUDE_PAL() [1/2]

INCLUDE_PAL ( "entity/model/PadlockRedFrame_keyhole.pal" ,
D_0A000D40_E5DAC0  )

◆ INCLUDE_IMG() [2/2]

INCLUDE_IMG ( "entity/model/PadlockRedFrame_face.png" ,
D_0A000FE8_E5DD68  )

◆ INCLUDE_PAL() [2/2]

INCLUDE_PAL ( "entity/model/PadlockRedFrame_face.pal" ,
D_0A0013E8_E5E168  )

Variable Documentation

◆ Entity_PadlockRedFrame_LoadTextureKeyhole

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

Definition at line 11 of file PadlockRedFrame.c.

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

◆ Entity_PadlockRedFrame_LoadTextureFace

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

Definition at line 26 of file PadlockRedFrame.c.

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

◆ Entity_PadlockRedFrame_mtxShackle

Mtx Entity_PadlockRedFrame_mtxShackle
Initial value:
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 0.000000,
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 39 of file PadlockRedFrame.c.

Referenced by entity_PadlockRedFrame_init().

◆ Entity_PadlockRedFrame_RenderShackleMain

Gfx Entity_PadlockRedFrame_RenderShackleMain[]

Definition at line 46 of file PadlockRedFrame.c.

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

◆ Entity_PadlockRedFrame_RenderShackle

Gfx Entity_PadlockRedFrame_RenderShackle[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFrame_RenderShackleMain[]

Definition at line 95 of file PadlockRedFrame.c.

95 {
97 gsSPEndDisplayList(),
98};

Referenced by entity_PadlockRedFrame_init().

◆ Entity_PadlockRedFrame_RenderKeyhole

Gfx Entity_PadlockRedFrame_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_0A000240_E5CFC0, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFrame_LoadTextureKeyhole[]

Definition at line 100 of file PadlockRedFrame.c.

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

◆ Entity_PadlockRedFrame_RenderFace

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

Definition at line 112 of file PadlockRedFrame.c.

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

◆ Entity_PadlockRedFrame_RenderBody

Gfx Entity_PadlockRedFrame_RenderBody[]
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 | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(D_0A000000_E5CD80, 32, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSP2Triangles(1, 4, 5, 0, 1, 5, 6, 0),
gsSP2Triangles(7, 8, 2, 0, 7, 2, 9, 0),
gsSP2Triangles(4, 10, 11, 0, 4, 11, 8, 0),
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
gsSP2Triangles(20, 21, 22, 0, 20, 22, 23, 0),
gsSP2Triangles(24, 25, 26, 0, 24, 26, 27, 0),
gsSP2Triangles(28, 29, 30, 0, 28, 30, 31, 0),
gsSPEndDisplayList(),
}

Definition at line 124 of file PadlockRedFrame.c.

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

◆ Entity_PadlockRedFrame_RenderMain

Gfx Entity_PadlockRedFrame_RenderMain[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFrame_RenderKeyhole[]
Gfx Entity_PadlockRedFrame_RenderFace[]
Gfx Entity_PadlockRedFrame_RenderBody[]

Definition at line 145 of file PadlockRedFrame.c.

145 {
146 gsSPDisplayList(Entity_PadlockRedFrame_RenderBody),
147 gsSPDisplayList(Entity_PadlockRedFrame_RenderFace),
149 gsSPEndDisplayList(),
150};

◆ Entity_PadlockRedFrame_Render

Gfx Entity_PadlockRedFrame_Render[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_PadlockRedFrame_RenderShackle[]
Gfx Entity_PadlockRedFrame_RenderMain[]

Definition at line 152 of file PadlockRedFrame.c.

152 {
153 gsSPDisplayList(Entity_PadlockRedFrame_RenderMain),
155 gsSPEndDisplayList(),
156};