CS 420 Computer Graphics


Lab 18
Dr. Tong Yu, Fall 2004

Display Lists

  • Login and open two windows, one for editing and one for compiling and executing programs. ( Tips of working like a computer scientist or engineer: Try to reduce the browser size so that it won't occupy the whole screen and you can observe a few things on the screen at the same time. )

  • Copy the program torus.cpp from the lecture notes. Compile and execute it. Press 'x' or 'y' to rotate the torus.

    Modify your program so that its color changes each time you rotate the torus.

  • Copy the program list.cpp from the lecture notes. Compile and run it.

    Modify the program so that it displays pentagons instead of triangles.