115 {
119 s32 unk_24 = data->
unk_24;
120 u32 alpha;
121 s32 idx;
124 s32 i;
125
128
133
137
139 if (idx < 0) {
140 idx = 0;
141 }
142
144
147
148 for (i = 0; i < 10; i++) {
149 s32 temp1;
150 f32 temp2;
151 f32 temp3;
152
153 if (i < 5) {
154 temp1 = i * 12;
155 } else {
156 temp1 = i * 12 + 4;
157 }
158
159 temp2 = i * 0.1f;
160 temp3 = unk_24 * (1.0f - temp2) * 2.0f;
161
162 if (temp3 > 255.0f) {
163 temp3 = 255.0f;
164 }
165
168 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_8b, 8, 0, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
170 gDPLoadTile(
gMainGfxPos++, G_TX_LOADTILE, 0, temp1 * 4, 254, (temp1 + 15) * 4);
172 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_4b, 8, 0, G_TX_RENDERTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
173 gDPSetTileSize(
gMainGfxPos++, G_TX_RENDERTILE, 0, temp1 * 4, 508, (temp1 + 15) * 4);
174 gDPSetTileSize(
gMainGfxPos++, G_TX_RENDERTILE, 0, temp2 * 128.0f * 4.0f, 2000, 2000);
176 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_8b, 8, 0x80, G_TX_LOADTILE, 0, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
178 gDPLoadTile(
gMainGfxPos++, G_TX_LOADTILE, 0, temp1 * 4, 254, (temp1 + 15) * 4);
180 gDPSetTile(
gMainGfxPos++, G_IM_FMT_CI, G_IM_SIZ_4b, 8, 0x80, 1, 1, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14, G_TX_NOMIRROR | G_TX_CLAMP, 7, 14);
181 gDPSetTileSize(
gMainGfxPos++, 1, 0, temp1 * 4, 508, (temp1 + 15) * 4);
182 gDPSetTileSize(
gMainGfxPos++, 1, 0, temp2 * 128.0f * 4.0f, 2000, 2000);
183
184 switch (i) {
185 case 0:
186 gSP2Triangles(
gMainGfxPos++, 0, 1, 2, 0, 0, 2, 3, 0);
187 break;
188 case 1:
189 gSP2Triangles(
gMainGfxPos++, 1, 4, 5, 0, 1, 5, 2, 0);
190 break;
191 case 2:
192 gSP2Triangles(
gMainGfxPos++, 4, 6, 7, 0, 4, 7, 5, 0);
193 break;
194 case 3:
195 gSP2Triangles(
gMainGfxPos++, 6, 8, 9, 0, 6, 9, 7, 0);
196 break;
197 case 4:
198 gSP2Triangles(
gMainGfxPos++, 8, 10, 11, 0, 8, 11, 9, 0);
199 break;
200 case 5:
201 gSP2Triangles(
gMainGfxPos++, 10, 12, 13, 0, 10, 13, 11, 0);
202 break;
203 case 6:
204 gSP2Triangles(
gMainGfxPos++, 12, 14, 15, 0, 12, 15, 13, 0);
205 break;
206 case 7:
207 gSP2Triangles(
gMainGfxPos++, 14, 16, 17, 0, 14, 17, 15, 0);
208 break;
209 case 8:
210 gSP2Triangles(
gMainGfxPos++, 16, 18, 19, 0, 16, 19, 17, 0);
211 break;
212 case 9:
213 gSP2Triangles(
gMainGfxPos++, 18, 20, 21, 0, 18, 21, 19, 0);
214 break;
215 }
216
218 }
219
221}
Vtx D_09004040_3C5BE0[][22]
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext