I have a very simple question, I am trying to rotate some vertex's around an arbitrary axis. basically I want to use glRotatef and glTranslatef to rotate a space ship I have drawn on the screen. here is my code of my ship. what it does do is rotate around the origin when I use the arrow keys left and right.
void drawShip()
{
glPushMatrix();
glColor3f(255.0f, 0.0f, 0.0f);
glTranslatef(-50.0f, 0.0f, 0.0f);
glRotatef(rotateship, 0.0f, 0.0f, 1.0f);
glBegin(GL_LINE_LOOP);
glVertex3f(50.0f, 0.0f, 0.0f);
glVertex3f(45.0f, -5.0f, 0.0f);
glVertex3f(50.0f, 10.0f, 0.0f);
glVertex3f(55.0f, -5.0f, 0.0f);
glEnd();
glTranslatef(50.0f, 0.0f, 0.0f);
glPopMatrix();
}