Here are some brief instructions for setting up OpenGL and GLUT for Visual C++. Installation: ------------- OpenGL is already installed with Visual C++. To install GLUT, go to Nate Robins GLUT page http://www.xmission.com/~nate/glut.html and download the GLUT dll, lib, and header files. Then copy: glut32.dll to $(WinDir)\System or $(WinDir)\System32 glut32.lib to $(VCPP)\lib, and glut.h to $(VCPP)\include\GL. where: $(WinDir) = Windows system directory (e.g., C:\WINNT) $(VCPP) = Visual C++ directory (e.g., C:\Program Files\MicroSoft Visual Studio\VC98). Creating a new project in Visual C++: ------------------------------------- * Select "File --> New" menu item in Visual C++. * Select "Project" tab and select "Win32 Console Application". * Specify desired location and project (executable) name. (Create an "Empty Project") * Press OK. * Select "Project --> Settings" menu item. * Select "All configurations" from "Settings for" list box. * Select "Link" tab. * In the "Object/library modules" field, add the following to the end of the list: opengl32.lib glu32.lib glut32.lib You are now ready to develop your OpenGL application. If you have source files already prepared, you can add them to the project with: * Select "Project --> Add to project --> Files" * Enter the names of your source files or select "->" to browse your directories for the source files. To compile and execute use: * Select "Build --> Build your-file.exe" (or function key F7) to compile. * Select "Build --> Execute your-file.exe" (or control-F5) to execute. A few notes: ------------ Visual C++ creates a command window for your use for debug input and output. Note that keyboard and mouse input to your program only generate callbacks when your graphics window is active. After execution the command window hangs around until you hit some key. You cannot compile a new version until you kill this window.