How do you install GLUT and OpenGL in Visual Studio 2012?

前端 未结 11 2093
悲哀的现实
悲哀的现实 2020-11-30 20:43

I just installed Visual Studio 2012 today, and I was wondering how can you install GLUT and OpenGL on the platform?

11条回答
  •  悲&欢浪女
    2020-11-30 20:48

    Download the GLUT library. At first step Copy the glut32.dll and paste it in C:\Windows\System32 folder.Second step copy glut.h file and paste it in C:\Program Files\Microsoft Visual Studio\VC\include folder and third step copy glut32.lib and paste it in c:\Program Files\Microsoft Visual Studio\VC\lib folder. Now you can create visual c++ console application project and include glut.h header file then you can write code for GLUT project. If you are using 64 bit windows machine then path and glut library may be different but process is similar.

提交回复
热议问题