Lines Matching refs:i

250     u32             i;  in DrawInit()  local
289 for ( i = 0 ; i < NUM_CUBES ; ++i ) in DrawInit()
291 sc->cube[i].pos = CubeIniData[i*3]; in DrawInit()
292 sc->cube[i].vel = CubeIniData[i*3+1]; in DrawInit()
293 sc->cube[i].axis = CubeIniData[i*3+2]; in DrawInit()
294 sc->cube[i].deg = 0.0F; in DrawInit()
297 for ( i = 0 ; i < NUM_TORI ; ++i ) in DrawInit()
299 sc->torusAngle[i] = 0; in DrawInit()
355 if ( sc->cube[i].pos.cmp < - BOUNDARY ) \
356 sc->cube[i].vel.cmp = fabsf(sc->cube[i].vel.cmp); \
357 if ( sc->cube[i].pos.cmp > BOUNDARY ) \
358 sc->cube[i].vel.cmp = - fabsf(sc->cube[i].vel.cmp);
362 u32 i; in AnimTick() local
378 for ( i = 0 ; i < NUM_CUBES ; ++i ) in AnimTick()
381 sc->cube[i].deg += 5; in AnimTick()
382 if ( sc->cube[i].deg > 720 ) in AnimTick()
384 sc->cube[i].deg -= 720; in AnimTick()
388 VECAdd(&sc->cube[i].pos, &sc->cube[i].vel, &sc->cube[i].pos); in AnimTick()
397 for ( i = 0 ; i < NUM_TORI ; ++i ) in AnimTick()
399 sc->torusAngle[i] += (i+1); in AnimTick()
400 if ( sc->torusAngle[i] > 360 ) in AnimTick()
402 sc->torusAngle[i] -= 360; in AnimTick()
419 u32 i; in DrawModels() local
475 for ( i = 0 ; i < NUM_CUBES ; ++i ) in DrawModels()
477 MTXTrans(mt, sc->cube[i].pos.x, sc->cube[i].pos.y, sc->cube[i].pos.z); in DrawModels()
481 MTXRotAxisDeg(mr, &sc->cube[i].axis, sc->cube[i].deg); in DrawModels()
488 GXSetChanMatColor(GX_COLOR0A0, ColorArray[i]); in DrawModels()
708 u32 i; in PrepareDL() local
719 for ( i = 0 ; i < NUM_DLS ; ++i ) in PrepareDL()
721 Effects[i].dlPtr = dlArray[i].ptr; in PrepareDL()
722 Effects[i].dlSize = dlArray[i].byteLength; in PrepareDL()
730 u32 i; in PrepareDL()
733 for ( i = 0 ; i < NUM_EFFECTS ; ++i ) in PrepareDL()
735 Effects[i].dlPtr = OSAlloc(EFFECTDL_SIZE_MAX); in PrepareDL()
736 ASSERTMSG(Effects[i].dlPtr, "Memory allocation failed.\n"); in PrepareDL()