filipehd
filipehd

Reputation: 930

Compile and Debug GLUT under Visual Studio

I am developing an application which makes use of OpenGL. In order to do so, I'd really like to dig and debug GLUT in order to see the source code that is called under each function of GLUT and debug it.

I've downloaded the source files of GLUT, which come with a Makefile, however Visual Studio 2010, when trying to convert it fails. I've googled for this but no one seems to explain how to do it, with the disadvantage that GLUT is quite old.

Does anybody know how can I add GLUT as a project into Visual Studio (I prefer 2010) in order to debug it while running applications which make use of GLUT functions?

Upvotes: 1

Views: 1372

Answers (2)

Andrew
Andrew

Reputation: 1784

I would recomend moving away from glut and freeglut. GLFW is much more modern and easier to understand. Is more commonly used than GLUT and is supported on more platforms. If you download the binaries from their site you will be able to link and include it as normal. Otherwise use can use premake4 to generate a vs2010 project to build it.

Also which loading library are you using?

Edit. If you download the glsdk. You will be able to generate a vs2010 project using premake4. You will then be able to run the example projects. Both GLUT and GLFW examples are provided and will run right out the box.

Upvotes: 3

Vertexwahn
Vertexwahn

Reputation: 8172

Use freegult - it comes with a Visual Studio 2008 and Visual Studio 2010 solution and project files. So it should be rathter easy for you to integrate it into your project. Freegult provides the same API as the original GLUT lib written by Mark Kilgard.

Upvotes: 3

Related Questions