Sunday, October 29, 2006

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. We'll need to build for the Windows platform since OpenGL and GLUT are not yet fully supported under .Net. For this we'll 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, we'll need GLUT. Download and unzip Nate Robin's 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) 

15 comments:

  1. (Hidup Microsoft !!!) ???
    :D
    ReplyDelete
  2. ternyata aku dilink to,kakaku ini emang baek abis d
    plis dong deh,curhat keq skali-kali,jangan ngomongin bahasa planet melulu -emang kita beda planet gituh,hihih-

    mana paket bunga tulipnya?
    ReplyDelete
  3. hmmm... jadi gini... waktu mau nulis yang lucu2 disini kok kayaknya ga cocok. Aku bikin deh satu blog lagi. Trus mo nulis keluh kesah masalah sosial di Indonesia... that's another blog. Abis itu mo curhat juga? Wah... terlalu banyak blog... ga sanggup :P

    Paket bunga tulipnya menunggu aku nemu bunga tulip dulu... kayak apa sih??
    ReplyDelete
  4. Yo..yoo...yooo....salam dari manajer Sadigol-PSBL Gajah Lampung...:)
    ReplyDelete
  5. This comment has been removed by a blog administrator.
    ReplyDelete
  6. Actually you don't have to do "In your Visual C++ Express Edition project properties -> Additional Linker Directories add the directory which has glut.lib"

    you can just past the glut32.lib to "C:\Program Files\Microsoft Visual Studio 9.0\VC\lib" (assuming you have same installation directory as i do.)

    after that you can compile your OGL program.

    for windoze vista user, by default there is a opengl32.dll in the system32 directory, it is a new release i guess. so you do not have to put the opengl32.dll from http://www.xmission.com/~nate/glut.html to the directory.
    ReplyDelete
  7. GLUT can be configured to work with Visual C++.
    ReplyDelete
  8. It is also important to become updated with the latest SEO techniques to stay ahead in the competition.
    ReplyDelete
  9. GLUT has also resolved its compatability problems with C++ in which GLUT libraries are usable in applications.
    ReplyDelete
  10. I'm using Vista 64-bit and tried GLUT with the older version of Visual Studio. Fortunately, I'm works well without any trouble.
    ReplyDelete
  11. The OpenGL software is even used by consoles, but has shifted from Direct3D and DirectX.

    web design melbourne
    ReplyDelete
  12. This is a great software. I usually use this program to do homeworks and design projects.
    ReplyDelete
  13. Visual Studio C++ express ha the ability to configure and adapt to any programming language associated to it.
    ReplyDelete