Here are some brief instructions for setting up OpenGL and GLUT for Microsoft Windows assuming Microsoft Visual Studio 6.0. For Visual Studio.NET go to the neighboring directory. Installation: ------------- In the following you will need to know the following two directories: $(WinDir) = Windows system directory (e.g., C:\WINNT or C:\WINDOWS) $(VCPP) = Visual C++ directory (e.g., C:\Program Files\MicroSoft Visual Studio\VC98). OpenGL comes as part of Microsoft Windows. (You can verify this for your system, by checking that files named "opengl32.dll" and "glu32.dll" can be found in "C:\$(WinDir)\SYSTEM32" or "C:\$(WinDir)\SYSTEM".) 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. (Look for a link with the name "glut-3.7.6-bin.zip", and download and expand the resulting bundle.) Then copy: glut32.dll to $(WinDir)\SYSTEM32 or $(WinDir)\SYSTEM glut32.lib to $(VCPP)\lib, and glut.h to $(VCPP)\include\GL. (where $(WinDir) and $(VCPP) are given above.) Compiling and Running this Sample Program: ------------------------------------------ * Launch Microsoft Visual C++ * Select "File --> Open Existing Workspace" menu item in Visual C++. * Navigate to this directory and select the sample1.dsw file. (Jump to the directions below for compiling and executing) Creating a new project in Microsoft Visual C++: ----------------------------------------------- * Launch Microsoft 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. For example "sample1" in this directory. (Select "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. Compile and Execute your Program: --------------------------------- * 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.