Using Display Lists

A display list is a group of OpenGL functions that has been stored for subsequent execution. The glNewList function begins the creation of a display list, and glEndList ends it. With few exceptions, OpenGL functions called between glNewList and glEndList are appended to the display list. (See glNewList for a list of the functions that you can't store and execute from within a display list.) To trigger the execution of a list or set of lists, use glCallList or glCallLists and supply the identifying number of a particular list or lists. You manage the indexes used to identify display lists with glGenLists, glListBase, and glIsList. To delete a set of display lists, use glDeleteLists.