Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

How to install GLUT & OpenGL in Visual C++ 6

Setup OpenGL GLUT in Visual C++ 6.0 of Windows


OpenGL GLUT provides the graphics interface and other useful utilities for running OpenGL in Windows. Here are the steps to set up OpenGL GLUT in Visual C++ of Windows. 1. Go to http://www.cse.univdhaka.edu/~cse102/ and download "glut-3.7.6bin.zip". 2. Unzip "glut-3.7.6-bin.zip". This generates four files: "glut.h", "glut32.lib", "glut32.dll", and "readMe.txt". Note that you must choose the file view option to view all files (including system files). Otherwise "glut32.dll" will not show up. 3. Do following copies: o copy "glut.h" to C:\..\..\VC98\include\GL (Visual C++ include directory) (For example: C:\Program Files\Microsoft Visual Studio\VC98\Include\GL) o copy "glut32.lib" to C:\..\..\VC98\lib (Visual C++ library directory) o copy "glut32.dll" to C:\WINDOWS\SYSTEM or C:\WINNT\SYSTEM32 (for NT), where your system files are located. Then you are ready to run OpenGL codes in Visual C++ Studio.

How to run skeleton program of OpenGL


Skeleton Program: 1. Download the file: skeleton.cpp from the course website page. 2. Open the program using Visual C++ 6, compile and run the program.

You might also like