Rendering an object in more than one place

How do I Render an object in more than one place and rotated to different angles,

Lets assume that we start from origin (0, 0, 0)…

glPushMatrix();
glTranslate(somewhere);
glRotate(angle1);
drawObject();
glPopMatrix(); // back to origin

glPushMatrix();
glTranslate(somewhere else);
glRotate(angle2);
drawObject();
glPopMatrix(); // again, back to origin

…and so forth.

  • Niko

Originally posted by niko:
[b]Lets assume that we start from origin (0, 0, 0)…
…and so forth.

  • Niko[/b]

Thankyou