Lesson 17: Display Lists
- Summary
- *
- Text version
- *
- Exercises
- *
- Download source
- Instead of drawing just one rotating cube, draw 42 identical rotating cubes (in positions of your choice) using one display list, a display list for the cube.
- Rework the previous exercise to use a display list for drawing the cubes that calls the display list for the cube 42 times.
- Take the program from the previous exercise and make it so that if the user presses the space bar (' '), the cubes change to some other shape, and if the user presses the space bar again, they change back. Do this by altering the display list for drawing the cube. (You can use glNewList to replace the contents of an existing display list.)
- Change the program for the lesson on color to use three display lists, one for each polygon. Use only one call to glGenLists.
Next is "Lesson 18: Normalizing Normals".