Lighthouse3d.com

Please send me your comments
Display Lists Tutorial

Index

Introduction
Without Display Lists
Creating a DL
The Greedy Approach
Using Nested Display Lists
Other Considerations

Visual C++ project

[Previous: Using Nested Display Lists] [Next]

Other Considerations


One of the main advantages has already been presented in this tutorial: a considerable performance gain may be achievable when the implementation is optimized for display lists.

Display lists are to a certain extent immutable, i.e. there is no way to change the settings for a particular command after it is inserted in a display list. However when a display list is nested only a reference to the display list is included. This means that if the inner display list is modified then the outer display list gets changed.

If you no longer need a particular display list then you can delete it with the function glDeleteLists. This function allows you to display a contiguous range of lists.


    
void glDeleteLists(GLuint listID, GLsizei numberOfLists);



[Previous: Using Nested Display Lists] [Next]