ok i have this assignment which involes creating a asteroid field using glut/open gl
our current task is to present randomly placed asteroids which are textured and light, however i would like to go a bit further than that. i want the asteroids that i have created to spin/rotate in the program, but i have no idea how to get them to spin.
this is how the asteroid is drawn in screen in the renderscene function.
lPushMatrix();
glTranslatef(location1.getnumber(),location2.getnu mber),location3.getnumber());
glScalef(0.5,0.5,0.5);
glCallList(asteroid4pt);
glPopMatrix();
how do i make them rotate to give them a better 3d feeling than just lighting and textures?