
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

CSC 462: Advanced Undergraduate Computer Graphics CSC 562: Introduction to Graduate Computer Graphics
This document describes how to compile the example OpenGL program (available on the course web page) under Windows XP and Visual Studio .NET. The example program displays a wireframe cube and an XYZ axis in a window. A popup menu allows you to translate the cube about the X and Y axes, and rotate the cube about the X, Y, and Z axes. Once a transformation mode is chosen, hold down the left mouse button while moving the mouse left, right, up, and down to transform the cube.
You should be able to use this program as a template for designing your own assignments and projects. For a complete descrip- tion of the OpenGL and GLUT APIs, see the reference manuals:
When you begin a new project in Visual Studio .NET (our standard programming environment), you will need to perform the following steps to ensure your program can find and use the OpenGL and GLUT APIs:
The source code for the example program can be downloaded from the course web page. You are encouraged to copy it onto a machine in the Multimedia Lab, then compile and link it to make sure you can get an OpenGL/GLUT program running. You can also modify the program, to see how different OpenGL commands affect the appearance of the cube (for example, try switching from perspective projection to orthographic projection, and note how the display of the cube changes when you translate and rotate it).