Lines Matching refs:i
192 u32 i; in DrawInit() local
222 for ( i = 0 ; i < NUM_CUBES ; ++i ) in DrawInit()
224 sc->cube[i].pos = CubeIniData[i*3]; in DrawInit()
225 sc->cube[i].vel = CubeIniData[i*3+1]; in DrawInit()
226 sc->cube[i].axis = CubeIniData[i*3+2]; in DrawInit()
227 sc->cube[i].deg = 0.0F; in DrawInit()
277 if ( sc->cube[i].pos.cmp < - BOUNDARY ) \
278 sc->cube[i].vel.cmp = fabsf(sc->cube[i].vel.cmp); \
279 if ( sc->cube[i].pos.cmp > BOUNDARY ) \
280 sc->cube[i].vel.cmp = - fabsf(sc->cube[i].vel.cmp);
284 u32 i; in AnimTick() local
289 for ( i = 0 ; i < NUM_CUBES ; ++i ) in AnimTick()
292 sc->cube[i].deg += 5; in AnimTick()
293 if ( sc->cube[i].deg > 360 ) in AnimTick()
295 sc->cube[i].deg -= 360; in AnimTick()
299 VECAdd(&sc->cube[i].pos, &sc->cube[i].vel, &sc->cube[i].pos); in AnimTick()
320 u32 i; in DrawCubes() local
333 for ( i = 0 ; i < NUM_CUBES ; ++i ) in DrawCubes()
335 MTXTrans(mt, sc->cube[i].pos.x, sc->cube[i].pos.y, sc->cube[i].pos.z); in DrawCubes()
339 MTXRotAxisDeg(mr, &sc->cube[i].axis, sc->cube[i].deg); in DrawCubes()
346 GXSetChanMatColor(GX_COLOR0A0, ColorArray[i]); in DrawCubes()