07 April, 2010

OpenGL ( glut ) Setup in Visual studio 2008

At first you have to install visual studio 2008 if it is not installed.
Windows comes with OpenGL, and Visual Studio comes with the OpenGL libraries, but neither of them comes with GLUT. So at first you have to collect glut package.
You can download this small glut package as .rar file.
Then extract it and follow the steps :
1. Copy and pest glut32.dll in C:\Windows\System32
2.
Copy and pest glut.h in
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL (note: you'll have to create the GL folder)
3. Copy and pest glut32.lib in C:\Program Files\Microsoft Visual Studio 9.0\VC\lib

Then your visual studio 2008 is ready for compiling and running opengl source code
written in c/c++.

No comments:

Post a Comment