Thursday, January 26, 2017

GLUT with Visual Studio C Express Edition

GLUT with Visual Studio C Express Edition


OpenGL is one of the most popular graphics library nowadays, we may even say that it is already a standard. This article below explains how to use GLUT with Visual Studio C++ Express Edition:

This document details the steps to get GLUT working along with Visual C++ Express Edition.
  1. Download and install Visual C++ Express Edition from http://msdn.microsoft.com/vstudio/express/visualc/default.aspx
  2. The default install of Visual C++ Express Edition builds for the .Net platform. Well need to build for the Windows platform since OpenGL and GLUT are not yet fully supported under .Net. For this well need the Microsoft Platform SDK.
  3. Download and install Microsoft Platform SDK. Visual C++ Express Edition will need to be configured to build for Windows platform. All these instructions are available here: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ (no longer valid, use http://msdn2.microsoft.com/en-us/express/aa700755.aspx instead)
  4. Now, well need GLUT. Download and unzip Nate Robins Windows port of GLUT from here: http://www.xmission.com/~nate/glut.html
  5. Add glut.h to the GL directory in the platform SDK/include.
  6. In your Visual C++ Express Edition project properties -> Additional Linker Directories add the directory which has glut.lib
  7. Add the glut.dll to the Windows System32 directory.
  8. Your program which uses GLUT or OpenGL should compile under Visual C++ Express Edition now.

Say thanks to Ashwin Nanjappa!

Microsoft Visual C# 2005 Express Edition Programming for the Absolute Beginner Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition) OpenGL(R) SuperBible: Comprehensive Tutorial and Reference (4th Edition) 

Available link for download