136 {
139 f32 temp_f22 = data->
unk_34;
140 s32 temp_s7 = data->
unk_38;
142 s32 temp_s6 = data->
unk_44;
144 Gfx* savedGfxPos;
145 Vtx_t* vtxTemp;
146 s32 i;
147
150
151 guScaleF(sp20, 0.01f, 0.01f, 0.01f);
155
157 G_MTX_PUSH | G_MTX_LOAD | G_MTX_MODELVIEW);
158 gDPSetPrimColor(
160 (
sin_deg(temp_s6 * 30) * 25.0f) + 225.0f,
161 (
sin_deg(temp_s6 * 30) * 25.0f) + 225.0f,
162 255,
163 primA
164 );
165
172 } else {
175 } else {
177 }
178
182 vtxTemp = (Vtx_t*) savedGfxPos;
183
184 for (i = 0; i < 16; i++) {
185 Vtx_t* vtx = &vtxTemp[i * 2];
186 s32 temp_s1 =
sin_deg(((temp_s6 * 10) + (i * 60)) + temp_s7) * 500.0f * temp_f22;
187 s32 temp_v0_3 = (i * 400) + (s32) (
sin_deg(((temp_s6 * 10) + (i * 6)) + temp_s7) * 200.0f * temp_f22);
188
189 vtx->ob[0] = temp_s1 - 3200;
190 vtx->ob[1] = temp_v0_3;
191 vtx->ob[2] = 0;
192 vtx->tc[0] = 0;
193 vtx->tc[1] = i * 128;
194 vtx++;
195
196 vtx->ob[0] = temp_s1 + 3200;
197 vtx->ob[1] = temp_v0_3;
198 vtx->ob[2] = 0;
199 vtx->tc[0] = 2048;
200 vtx->tc[1] = i * 128;
201 }
202
205
206 for (i = 0; i < 15; i++) {
207 s32 i2 = i * 2;
209 i2 , i2 + 2, i2 + 1, i2,
210 i2 + 1, i2 + 2, i2 + 3, i2);
211 };
212 }
213
216}
#define VIRTUAL_TO_PHYSICAL(addr)
DisplayContext * gDisplayContext