01/22/2001
15-462 Computer Graphics I
5
Display Lists
•Encapsulate a sequence of drawing commands
•Optimize and store on server
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 */