Lines Matching refs:i

247     u32             i;  in DrawInit()  local
286 for ( i = 0 ; i < NUM_CUBES ; ++i ) in DrawInit()
288 sc->cube[i].pos = CubeIniData[i*3]; in DrawInit()
289 sc->cube[i].vel = CubeIniData[i*3+1]; in DrawInit()
290 sc->cube[i].axis = CubeIniData[i*3+2]; in DrawInit()
291 sc->cube[i].deg = 0.0F; in DrawInit()
294 for ( i = 0 ; i < NUM_TORI ; ++i ) in DrawInit()
296 sc->torusAngle[i] = 0; in DrawInit()
352 if ( sc->cube[i].pos.cmp < - BOUNDARY ) \
353 sc->cube[i].vel.cmp = fabsf(sc->cube[i].vel.cmp); \
354 if ( sc->cube[i].pos.cmp > BOUNDARY ) \
355 sc->cube[i].vel.cmp = - fabsf(sc->cube[i].vel.cmp);
359 u32 i; in AnimTick() local
375 for ( i = 0 ; i < NUM_CUBES ; ++i ) in AnimTick()
378 sc->cube[i].deg += 5; in AnimTick()
379 if ( sc->cube[i].deg > 720 ) in AnimTick()
381 sc->cube[i].deg -= 720; in AnimTick()
385 VECAdd(&sc->cube[i].pos, &sc->cube[i].vel, &sc->cube[i].pos); in AnimTick()
394 for ( i = 0 ; i < NUM_TORI ; ++i ) in AnimTick()
396 sc->torusAngle[i] += (i+1); in AnimTick()
397 if ( sc->torusAngle[i] > 360 ) in AnimTick()
399 sc->torusAngle[i] -= 360; in AnimTick()
416 u32 i; in DrawModels() local
472 for ( i = 0 ; i < NUM_CUBES ; ++i ) in DrawModels()
474 MTXTrans(mt, sc->cube[i].pos.x, sc->cube[i].pos.y, sc->cube[i].pos.z); in DrawModels()
478 MTXRotAxisDeg(mr, &sc->cube[i].axis, sc->cube[i].deg); in DrawModels()
485 GXSetChanMatColor(GX_COLOR0A0, ColorArray[i]); in DrawModels()
705 u32 i; in PrepareDL() local
716 for ( i = 0 ; i < NUM_DLS ; ++i ) in PrepareDL()
718 Effects[i].dlPtr = dlArray[i].ptr; in PrepareDL()
719 Effects[i].dlSize = dlArray[i].byteLength; in PrepareDL()
727 u32 i; in PrepareDL()
730 for ( i = 0 ; i < NUM_EFFECTS ; ++i ) in PrepareDL()
732 Effects[i].dlPtr = OSAlloc(EFFECTDL_SIZE_MAX); in PrepareDL()
733 ASSERTMSG(Effects[i].dlPtr, "Memory allocation failed.\n"); in PrepareDL()