CSE313:  Computer Graphics




Fall 06

X. Sharon Huang

Computer Science and Engineering Department

Lehigh University


Course Information




Blackboard Resources

·       Announcements

·       Lecture notes

·       Assignments

·       Email lists

·       Discussion board

Equipment and Facilities

You will be using C or C++ under Windows on any computer that supports the OpenGL and GLUT libraries.  Completed programs will be submitted through the Blackboard site, generally by attaching them to the assignment description on the site.  The submitted programs will be evaluated using the Visual C++ compiler on a WindowsXP workstation in 502 Packard Lab. The program source code will be read.  Source code documentation and organization should make your program easy to read, and convey your understanding of the techniques your program demonstrates.


Note that Microsoft Visual Studio (including Visual C++) is available via “Install Software” on the WIRED LAN.  And students may also borrow a copy from the Fairchild Martindale Library Circulation Desk to install on their own computers.


Setting Up OpenGL using VC++ and Running a Test Program

Once you have installed VC++ 6.0 on your computer, start VC++, follow the steps below to set up the OpenGL environment and run the test program:

  • Create a new Win32 console application.
  • Go to Project, Settings, then click on the LINK tab. Under “Object/Library Modules”, at the beginning of the line, add “OpenGL32.lib Glu32.lib GLaux.lib Glut.lib Glut32.lib”.  Click on OK once you are done.  Save your project settings.  Now you are ready to write an OpenGL program.
    • Note:  all the .lib files should be in the directory $Your_VC_path\Lib\, and all corresponding .dll files should be in the SYSTEM path, e.g. C:\WINDOWS\SYSTEM.  If you find any file missing, download it from online, and put it under the appropriate path.
  • Add the test program (courtesy of F. S. Hill, Jr.) to your new project.  Build the project and run it.  Once you see an OpenGL window with a rotating Rosette, press the following keys and observe what happens!
    • n:   
    • N: 
    • r:
    • R:
    • q: exit             


Other Resources