Destroying the object in OpenGL

Hi all
I wonder if it is possible to create an object with something like glSolidCube() destroy it after some time and then redrawing it at different position and so on at some given coordinates?

Thank you
Rohit
glutSolidCube does not create an object. It only draws a cube. example:
1
2
3
4
5
6
7
8
9
static int timer = 0;
if(timer < 10000){
   glTranslate3f(0, 0, 0);
   glutSolidCube();
}else{
   glTranslate3f(10, 0, 0);
   glutSolidCube();
   timer++;
}
Topic archived. No new replies allowed.