main update animation

// each geometry update
 geoList[g_geometrymode]->update(elapsedTime);
 if (geoList[g_geometrymode]->IsAnimationDone())
 {
  g_geometrymode++;
  if (g_geometrymode == 8)
  {
     g_geometrymode = 0;
     for (int i = 0; i < 8; i++) 
   geoList[i]->reset();
  }
  geoList[g_geometrymode]->activate();
  startTime = glutGet(GLUT_ELAPSED_TIME);
  printf(“geoList[%d] animation is activate\n”, g_geometrymode);
 }

Leave a Reply

Your email address will not be published. Required fields are marked *