Lines Matching refs:cube
115 MyCubeObj cube[NUM_CUBES]; member
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()
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);
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()
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()