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