GLuint listName = glGenLists(1);
/* new name */
glNewList (listName, GL_COMPILE); /* new list */
glColor3f(1.0, 0.0,
1.0);
glBegin(GL_TRIANGLES);
glVertex3f(0.0, 0.0,
0.0);
...
glEnd();
glTranslatef(1.5, 0.0,
0.0); /* offset next object */
glEndList();
glCallList(listName); /* draw
one */