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