Note for OpenGL

The easiest way to use OpenGL is through OpenGL Utility Toolkit (GLUT), which is "a window system independent toolkit for writing OpenGL programs."

Before using OpenGL on Windows, you will need to do what this page explains:
http://www.cs.csustan.edu/%7ersc/SDSU/GLUTinstall.html

Basically, it tells what files you need to put where to let Microsoft Visual C++ detect and use OpenGL libraries. For those who don't want to go there to read it, here is what it says:
With thanks to Kamil Saykali of the EdCenter:
This part will show how to install the glut libraries and dll's (to download it go to http://reality.sgi.com/opengl/glut3/glut3.html ) (Note: this link seemed to be broken at the time I checked. Get the files from here instead: http://www.opengl.org/resources/libraries/glut/glutdlls36.zip)

1. After you have downloaded the glut.zip file (you should get the latest ver 3.7) unzip it into a folder
2. Inside the folder you should have:
glut.dll
glut32.dll
glut.h
glut.lib
glut32.lib
3. Copy both glut.dll and glut32.dll into your windows directory (windows or winnt, depends on if you are using Windows95/98 or Windows NT)
4. Copy your glut.h to:
:\\include\GL\glut.h
*** put the drive where you installed VC++ instead of the ***
*** put the directory where you installed VC++ instead of the
5. Copy your glut.lib and glut32.lib to:
:\\lib\glut.lib
:\\lib\glut32.lib
*** put the drive where you installed VC++ instead of the ***
*** put the directory where you installed VC++ instead of the
6. That should be it for installed the glut libraries. The rest of this letter shows you how to setup VC++ so that you can use the glut libraries.
It also state some other steps but I found them unnecessary and work without performing them.
What you will get after all this are the pre-compiled libraries of OpenGL (GLUT v3.6).

For other operating systems, see the GLUT home page.

0 comments:

Post a Comment