static void Animate(atlantisstruct * ap) { int i; for (i = 0; i < ap->num_sharks; i++) { SharkPilot(&(ap->sharks[i]), ap->sharkspeed); SharkMiss(ap, i); } WhalePilot(&(ap->dolph), ap->whalespeed, ap->whaledir); ap->dolph.phi++; WhalePilot(&(ap->momWhale), ap->whalespeed, ap->whaledir); ap->momWhale.phi++; WhalePilot(&(ap->babyWhale), ap->whalespeed, ap->whaledir); ap->babyWhale.phi++; }
static void Animate(void) { int i; for (i = 0; i < NumSharks; i++) { SharkPilot(&sharks[i]); SharkMiss(i); } WhalePilot(&dolph); dolph.phi++; glutPostRedisplay(); WhalePilot(&momWhale); momWhale.phi++; WhalePilot(&babyWhale); babyWhale.phi++; }
void Atlantis_Animate(void) { int i; for (i = 0; i < NUM_SHARKS; i++) { SharkPilot(&sharks[i]); SharkMiss(i); } WhalePilot(&dolph); dolph.phi++; //glutPostRedisplay(); WhalePilot(&momWhale); momWhale.phi++; WhalePilot(&babyWhale); babyWhale.phi++; }