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

Go to the source code of this file.

Functions

 INCLUDE_IMG ("entity/model/BlueSwitch_tex.png", D_0A0005D0_E63F90)
 
 INCLUDE_PAL ("entity/model/BlueSwitch_tex.pal", D_0A0006D0_E64090)
 
 INCLUDE_IMG ("entity/model/BlueSwitch_exclamationMark.png", D_0A000978_E64338)
 

Variables

Gfx Entity_BlueSwitch_LoadTexture []
 
Gfx Entity_BlueSwitch_LoadExclMark []
 
Mtx Entity_BlueSwitch_mtxExclMark
 
Mtx Entity_BlueSwitch_mtxBlueBubble
 
Gfx Entity_BlueSwitch_RenderBlueBubble []
 
Gfx Entity_BlueSwitch_RenderRotatedBlueBubble []
 
Gfx Entity_BlueSwitch_RenderExclMark []
 
Gfx Entity_BlueSwitch_RenderRotatedExclMark []
 
Gfx Entity_BlueSwitch_RenderBase2 []
 
Gfx Entity_BlueSwitch_RenderBase []
 
Gfx Entity_BlueSwitch_RenderBaseMain []
 
Gfx Entity_BlueSwitch_RenderMain []
 
Gfx Entity_BlueSwitch_Render []
 

Function Documentation

◆ INCLUDE_IMG() [1/2]

INCLUDE_IMG ( "entity/model/BlueSwitch_tex.png" ,
D_0A0005D0_E63F90  )

◆ INCLUDE_PAL()

INCLUDE_PAL ( "entity/model/BlueSwitch_tex.pal" ,
D_0A0006D0_E64090  )

◆ INCLUDE_IMG() [2/2]

INCLUDE_IMG ( "entity/model/BlueSwitch_exclamationMark.png" ,
D_0A000978_E64338  )

Variable Documentation

◆ Entity_BlueSwitch_LoadTexture

Gfx Entity_BlueSwitch_LoadTexture[]
Initial value:
= {
gsDPSetTextureLUT(G_TT_RGBA16),
gsDPLoadTLUT_pal256(D_0A0006D0_E64090),
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_0A0005D0_E63F90, G_IM_FMT_CI, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 11 of file BlueSwitch.c.

11 {
12 gsDPSetTextureLUT(G_TT_RGBA16),
13 gsDPLoadTLUT_pal256(D_0A0006D0_E64090),
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_0A0005D0_E63F90, G_IM_FMT_CI, G_IM_SIZ_8b, 16, 16, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 4, G_TX_NOLOD, G_TX_NOLOD),
19 gsDPSetTexturePersp(G_TP_PERSP),
20 gsDPSetTextureFilter(G_TF_BILERP),
21 gsSPEndDisplayList(),
22};

◆ Entity_BlueSwitch_LoadExclMark

Gfx Entity_BlueSwitch_LoadExclMark[]
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_0A000978_E64338, G_IM_FMT_IA, 16, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
gsDPSetTexturePersp(G_TP_PERSP),
gsDPSetTextureFilter(G_TF_BILERP),
gsSPEndDisplayList(),
}

Definition at line 25 of file BlueSwitch.c.

25 {
26 gsDPSetTextureLUT(G_TT_NONE),
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_4b(D_0A000978_E64338, G_IM_FMT_IA, 16, 32, 0, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, 4, 5, G_TX_NOLOD, G_TX_NOLOD),
32 gsDPSetTexturePersp(G_TP_PERSP),
33 gsDPSetTextureFilter(G_TF_BILERP),
34 gsSPEndDisplayList(),
35};

◆ Entity_BlueSwitch_mtxExclMark

Mtx Entity_BlueSwitch_mtxExclMark
Initial value:
1.000000, 0.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000, 6.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 37 of file BlueSwitch.c.

◆ Entity_BlueSwitch_mtxBlueBubble

Mtx Entity_BlueSwitch_mtxBlueBubble
Initial value:
1.000000, 0.000000, 0.000000, -0.026597,
0.000000, 1.000000, 0.000000, 5.000000,
0.000000, 0.000000, 1.000000, 0.609116,
0.000000, 0.000000, 0.000000, 1.000000
)

Definition at line 44 of file BlueSwitch.c.

◆ Entity_BlueSwitch_RenderBlueBubble

Gfx Entity_BlueSwitch_RenderBlueBubble[]

Definition at line 51 of file BlueSwitch.c.

51 {
52 gsDPPipeSync(),
53 gsDPSetCycleType(G_CYC_1CYCLE),
54 gsDPSetRenderMode(G_RM_AA_ZB_XLU_SURF, G_RM_AA_ZB_XLU_SURF2),
55 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
56 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
57 gsSPClearGeometryMode(G_LIGHTING),
58 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
59 gsSPVertex(D_0A0003D0_E63D90, 30, 0),
60 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
61 gsSP2Triangles(3, 2, 4, 0, 3, 4, 5, 0),
62 gsSP2Triangles(1, 6, 7, 0, 1, 7, 2, 0),
63 gsSP2Triangles(2, 7, 8, 0, 2, 8, 4, 0),
64 gsSP2Triangles(4, 8, 9, 0, 4, 9, 10, 0),
65 gsSP2Triangles(5, 4, 10, 0, 5, 10, 11, 0),
66 gsSP2Triangles(12, 13, 6, 0, 12, 6, 1, 0),
67 gsSP2Triangles(13, 14, 15, 0, 13, 15, 6, 0),
68 gsSP2Triangles(6, 15, 16, 0, 6, 16, 7, 0),
69 gsSP2Triangles(17, 18, 19, 0, 17, 19, 20, 0),
70 gsSP2Triangles(17, 20, 16, 0, 17, 16, 15, 0),
71 gsSP2Triangles(17, 15, 14, 0, 17, 14, 21, 0),
72 gsSP2Triangles(7, 16, 20, 0, 7, 20, 8, 0),
73 gsSP2Triangles(22, 12, 1, 0, 22, 1, 0, 0),
74 gsSP2Triangles(23, 24, 13, 0, 23, 13, 12, 0),
75 gsSP2Triangles(24, 21, 14, 0, 24, 14, 13, 0),
76 gsSP2Triangles(25, 23, 12, 0, 25, 12, 22, 0),
77 gsSP2Triangles(8, 20, 19, 0, 8, 19, 9, 0),
78 gsSP2Triangles(26, 27, 24, 0, 26, 24, 23, 0),
79 gsSP2Triangles(28, 29, 27, 0, 28, 27, 26, 0),
80 gsSP2Triangles(29, 18, 17, 0, 29, 17, 27, 0),
81 gsSP2Triangles(27, 17, 21, 0, 27, 21, 24, 0),
82 gsSP2Triangles(10, 9, 29, 0, 10, 29, 28, 0),
83 gsSP2Triangles(9, 19, 18, 0, 9, 18, 29, 0),
84 gsSPVertex(&D_0A0003D0_E63D90[10], 2, 0),
85 gsSPVertex(&D_0A0003D0_E63D90[23], 1, 2),
86 gsSPVertex(&D_0A0003D0_E63D90[25], 2, 3),
87 gsSPVertex(&D_0A0003D0_E63D90[28], 1, 5),
88 gsSPVertex(&D_0A0003D0_E63D90[30], 2, 6),
89 gsSP2Triangles(6, 5, 4, 0, 6, 4, 7, 0),
90 gsSP2Triangles(7, 4, 2, 0, 7, 2, 3, 0),
91 gsSP2Triangles(1, 0, 5, 0, 1, 5, 6, 0),
92 gsSPEndDisplayList(),
93};

◆ Entity_BlueSwitch_RenderRotatedBlueBubble

Gfx Entity_BlueSwitch_RenderRotatedBlueBubble[]
Initial value:
= {
gsSPMatrix(&Entity_BlueSwitch_mtxBlueBubble, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Mtx Entity_BlueSwitch_mtxBlueBubble
Definition BlueSwitch.c:44
Gfx Entity_BlueSwitch_RenderBlueBubble[]
Definition BlueSwitch.c:51

Definition at line 95 of file BlueSwitch.c.

95 {
96 gsSPMatrix(&Entity_BlueSwitch_mtxBlueBubble, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
98 gsSPPopMatrix(G_MTX_MODELVIEW),
99 gsSPEndDisplayList(),
100};

◆ Entity_BlueSwitch_RenderExclMark

Gfx Entity_BlueSwitch_RenderExclMark[]
Initial value:
= {
gsDPPipeSync(),
gsDPSetCycleType(G_CYC_1CYCLE),
gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
gsSPSetGeometryMode(G_CULL_BACK),
gsSPVertex(D_0A000390_E63D50, 4, 0),
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_LoadExclMark[]
Definition BlueSwitch.c:25

Definition at line 102 of file BlueSwitch.c.

102 {
103 gsDPPipeSync(),
104 gsDPSetCycleType(G_CYC_1CYCLE),
105 gsDPSetRenderMode(G_RM_AA_ZB_TEX_EDGE, G_RM_AA_ZB_TEX_EDGE2),
106 gsSPDisplayList(Entity_BlueSwitch_LoadExclMark),
107 gsSPClearGeometryMode(G_LIGHTING | G_SHADING_SMOOTH),
108 gsSPSetGeometryMode(G_CULL_BACK),
109 gsSPVertex(D_0A000390_E63D50, 4, 0),
110 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
111 gsSPEndDisplayList(),
112};

◆ Entity_BlueSwitch_RenderRotatedExclMark

Gfx Entity_BlueSwitch_RenderRotatedExclMark[]
Initial value:
= {
gsSPMatrix(&Entity_BlueSwitch_mtxExclMark, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
gsSPPopMatrix(G_MTX_MODELVIEW),
gsSPEndDisplayList(),
}
Mtx Entity_BlueSwitch_mtxExclMark
Definition BlueSwitch.c:37
Gfx Entity_BlueSwitch_RenderExclMark[]
Definition BlueSwitch.c:102

Definition at line 114 of file BlueSwitch.c.

114 {
115 gsSPMatrix(&Entity_BlueSwitch_mtxExclMark, G_MTX_PUSH | G_MTX_MUL | G_MTX_MODELVIEW),
116 gsSPDisplayList(Entity_BlueSwitch_RenderExclMark),
117 gsSPPopMatrix(G_MTX_MODELVIEW),
118 gsSPEndDisplayList(),
119};

◆ Entity_BlueSwitch_RenderBase2

Gfx Entity_BlueSwitch_RenderBase2[]
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_0A000300_E63CC0, 9, 0),
gsSP2Triangles(0, 1, 2, 0, 3, 0, 2, 0),
gsSP2Triangles(2, 1, 4, 0, 2, 4, 5, 0),
gsSP2Triangles(2, 5, 6, 0, 7, 2, 6, 0),
gsSP2Triangles(8, 3, 2, 0, 7, 8, 2, 0),
gsSPEndDisplayList(),
}

Definition at line 121 of file BlueSwitch.c.

121 {
122 gsDPPipeSync(),
123 gsDPSetCycleType(G_CYC_1CYCLE),
124 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
125 gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
126 gsSPTexture(0x0080, 0x0080, 0, G_TX_RENDERTILE, G_OFF),
127 gsSPClearGeometryMode(G_LIGHTING),
128 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
129 gsSPVertex(D_0A000300_E63CC0, 9, 0),
130 gsSP2Triangles(0, 1, 2, 0, 3, 0, 2, 0),
131 gsSP2Triangles(2, 1, 4, 0, 2, 4, 5, 0),
132 gsSP2Triangles(2, 5, 6, 0, 7, 2, 6, 0),
133 gsSP2Triangles(8, 3, 2, 0, 7, 8, 2, 0),
134 gsSPEndDisplayList(),
135};

◆ Entity_BlueSwitch_RenderBase

Gfx Entity_BlueSwitch_RenderBase[]

Definition at line 137 of file BlueSwitch.c.

137 {
138 gsDPPipeSync(),
139 gsDPSetCycleType(G_CYC_1CYCLE),
140 gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
141 gsSPDisplayList(Entity_BlueSwitch_LoadTexture),
142 gsSPClearGeometryMode(G_LIGHTING),
143 gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
144 gsSPVertex(D_0A000000_E639C0, 30, 0),
145 gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
146 gsSP2Triangles(4, 5, 1, 0, 4, 1, 0, 0),
147 gsSP2Triangles(3, 2, 6, 0, 3, 6, 7, 0),
148 gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
149 gsSP2Triangles(12, 13, 9, 0, 12, 9, 8, 0),
150 gsSP2Triangles(11, 10, 14, 0, 11, 14, 15, 0),
151 gsSP2Triangles(16, 17, 18, 0, 16, 18, 19, 0),
152 gsSP2Triangles(20, 21, 17, 0, 20, 17, 16, 0),
153 gsSP2Triangles(19, 18, 22, 0, 19, 22, 23, 0),
154 gsSP2Triangles(7, 6, 24, 0, 7, 24, 25, 0),
155 gsSP2Triangles(15, 14, 26, 0, 15, 26, 27, 0),
156 gsSP2Triangles(28, 29, 21, 0, 28, 21, 20, 0),
157 gsSPVertex(&D_0A000000_E639C0[4], 2, 0),
158 gsSPVertex(&D_0A000000_E639C0[12], 2, 2),
159 gsSPVertex(&D_0A000000_E639C0[22], 26, 4),
160 gsSP2Triangles(12, 24, 25, 0, 12, 25, 13, 0),
161 gsSP2Triangles(13, 25, 1, 0, 13, 1, 0, 0),
162 gsSP2Triangles(14, 26, 27, 0, 14, 27, 15, 0),
163 gsSP2Triangles(15, 27, 3, 0, 15, 3, 2, 0),
164 gsSP2Triangles(16, 28, 11, 0, 16, 11, 10, 0),
165 gsSP2Triangles(5, 4, 17, 0, 5, 17, 21, 0),
166 gsSP2Triangles(9, 8, 18, 0, 9, 18, 19, 0),
167 gsSP2Triangles(19, 18, 26, 0, 19, 26, 14, 0),
168 gsSP2Triangles(20, 29, 28, 0, 20, 28, 16, 0),
169 gsSP2Triangles(21, 17, 29, 0, 21, 29, 20, 0),
170 gsSP2Triangles(22, 23, 24, 0, 22, 24, 12, 0),
171 gsSP2Triangles(7, 6, 23, 0, 7, 23, 22, 0),
172 gsSPEndDisplayList(),
173};
Gfx Entity_BlueSwitch_LoadTexture[]
Definition BlueSwitch.c:11

◆ Entity_BlueSwitch_RenderBaseMain

Gfx Entity_BlueSwitch_RenderBaseMain[]
Initial value:
= {
gsSPDisplayList(Entity_BlueSwitch_RenderBase),
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_RenderBase[]
Definition BlueSwitch.c:137
Gfx Entity_BlueSwitch_RenderBase2[]
Definition BlueSwitch.c:121

Definition at line 175 of file BlueSwitch.c.

175 {
176 gsSPDisplayList(Entity_BlueSwitch_RenderBase),
177 gsSPDisplayList(Entity_BlueSwitch_RenderBase2),
178 gsSPEndDisplayList(),
179};

◆ Entity_BlueSwitch_RenderMain

Gfx Entity_BlueSwitch_RenderMain[]
Initial value:
= {
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_RenderBaseMain[]
Definition BlueSwitch.c:175
Gfx Entity_BlueSwitch_RenderRotatedBlueBubble[]
Definition BlueSwitch.c:95
Gfx Entity_BlueSwitch_RenderRotatedExclMark[]
Definition BlueSwitch.c:114

Definition at line 181 of file BlueSwitch.c.

181 {
182 gsSPDisplayList(Entity_BlueSwitch_RenderBaseMain),
185 gsSPEndDisplayList(),
186};

◆ Entity_BlueSwitch_Render

Gfx Entity_BlueSwitch_Render[]
Initial value:
= {
gsSPDisplayList(Entity_BlueSwitch_RenderMain),
gsSPEndDisplayList(),
}
Gfx Entity_BlueSwitch_RenderMain[]
Definition BlueSwitch.c:181

Definition at line 188 of file BlueSwitch.c.

188 {
189 gsSPDisplayList(Entity_BlueSwitch_RenderMain),
190 gsSPEndDisplayList(),
191};