123456789
static int timer = 0; if(timer < 10000){ glTranslate3f(0, 0, 0); glutSolidCube(); }else{ glTranslate3f(10, 0, 0); glutSolidCube(); timer++; }