open gl coding, animating an object
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.
how do i make them rotate to give them a better 3d feeling than just lighting and textures?