Hybrid View

glut in Visual Studio 2012

Hi everyone,
I'm new at openGL. I want to install glut on it, I tried everything but I couldn't install it. My windows is 64 bit and I use visual studio 2012. However I still get this error:" Cannot open include file: 'GL/glut.h': No such file or directory". How can I install glut?

Ok!
First of all you have to put the file glut.h in the folder GL of your project.
Usually, if the project name is AAA, you put in in AAA/AAA/GL, or simply just find your main file and then create a folder there name it GL and copy glut.h in it.

Then, go to Tools>Options>VC++ Folders .
There you have to add the file glut.h to the include.
Do the same thing for the 2 other glut files (put one int the binary and the other one in the bin part)