Instructions for using OpenGL and GLUT

rodscarletSoftware and s/w Development

Dec 14, 2013 (3 years and 4 months ago)

110 views

Instructions for using OpenGL and GLUT for Windows XP machines with
Microsoft Visual Studio.Net 2003


If you are using OpenGL on your computer at home:



All Windows systems since Windows 98 have OpenGL preinstalled.



Download GLUT. Go to the CSCI 4250 page
s web site
(
http://www.mtsu.edu/~csjudy/4250
) and visit the “Links to OpenGL sites”. You
will find a site for downloading GLUT.



When you down load it, it will be a zip file. You will have to unzip it.
Then
place the
glut32.dll

file in the
windows
\
system
32

directory.



If your system is configured like the ones at MTSU, you will need to place the
glut.h

file in the
\
Program Files
\
Microsoft Visual Studio .Net

2003
\
vc7
\
PlatformSDK
\
I
nclude
\

GL
folder and the
glut32.lib

file in the
Program Files
\
Microsoft Visual Studio .Net

2003
\
vc7
\
PlatformSDK
\
L
ib
folder.


To use Microsoft Visual
Studio.Net

2003
:



Warning: You will probably need something other than a floppy disk on which to
keep your project because a complet
e project takes up too much space. The .cc
files and .h files will fit on a floppy with no trouble but you cannot
build

a project
on a floppy.



Start Microsoft Visual C++
--

click on
Start
,
Programs, Microsoft Visual
Studio .Net

2003
, Microsoft Visual St
udio .Net

2003



Create a new project by selecting
F
ile

乥w

Project…

Visual C++ Projects


坩n㌲⁐r潪ec琮t
G
ive your project a name (use your last name followed by
the
number of the project

for the name of the project), select the appropriate disk or
hard dri
ve, and click on
OK.
On the subsequent window, select
Application
Settings
. In the next window, select
Empty Project
and

Console Application

then click on
Finish.



To create the files that should be placed in the project, you should select
Project,
Add Ne
w Item,
and then select the type of files that you are creating
.



To create an executable, compile
Build


Bu楬d S潬o瑩潮 ⁂u楬d


剥bu楬d
S潬o瑩潮

(Compiles and Links.)



You can then run your executable by typing
(CTRL + F5)
or selecting
Debug


S瑡t琠坩t
h潵琠tebu杧楮g