Professional Documents
Culture Documents
Thisshouldtakesometimetodownloadandinstall(approx90megs),sobepatient. YOUSHOULDBEUSINGVS2008EXPRESSEDITIONORTHEUNIVERSITYOF PITTSBURGHVS2005INSTALLATION,IFYOUAREUSINGANEARLIERVERSION YOUWILLHAVETODOWNLOADANDINSTALLTHEWINDOWSPLATFORMSDK (MICROSOFTWINDOWSSDK)TOOBTAINTHENECESSARYOPENGLLIBRARIES ANDHEADERFILESTOCONTINUE.VS2008ANDTHEFULLINSTALLATIONOF VS2005INCLUDESTHESEFILESANDOBTAININGTHEMISNOTNECESSARY. Oncevisualstudiohasfinishedinstalling,youmusteitherobtainacopytheGLUT binariesorcompileGLUTforyourownmachine.Boththebinariesandthesource forGLUTcanbefoundathttp://www.xmission.com/~nate/glut.html.I recommenddownloadingthebinariesforall32bitinstallationsofwindows 2000/XP/Vista.Anyoneusinga64bitversionofoneoftheseoperatingsystems willhavetocompileGlutfortheircomputer(Seebelowforinstructionson compilingGlutforyourcomputer).Onceyouhaveeitherdownloadedthebinaries orcompiledthenecessaryfilesforyourcomputer,placethefilesasfollows glut32.dllto"Windows\System glut32.libto"ProgramFiles\MicrosoftVisualStudio9.0\VC\lib"
Youcannowcopyandpastetheassignmentcodeintothisfile.
Inordertoaddtheexistingcodefile,youshouldfirstplacethecodefileintoyour projectdirectory(N.b.thisismainlytokeepyourfilesorganized.Youcanaddafile fromanylocationonyourlocaldrivesalthoughitisrecommendedthatyouplaceit inyourprojectdirectoryfirst).Thedefaultprojectlocationis"My Documents\VisualStudio2008\Project\ProjectName\ProjectName".Copythe assignmentcodefileintothisdirectory. Now,intheVisualStudioEnvironment,rightclickonthesourcefolderandchoose "existingdocument"fromthe"add"option.Thedefaultlocationofthisboxisthe projectdirectory,soifyoumovedyourfileintothisdirectory,clickonitandthen clickadd.Otherwise,locateyourfilefirstusingthefilebrowserandthenclickonit andchoosetoaddtoyourproject. N.B.INVISUALSTUDIO,MAKESURETHATYOURINCLUDESTATEMENTFOR GLUT.HISAFTERYOURINCLUDESTATEMENTFORSTDLIB.H.GLUT.HREDEFINES ONEOFTHECODESEGMENTSFOUNDINSTDLIB.HANDIFGLUT.HISPLACED FIRSTYOUWILLGETANDLINKINGERRORANDBEUNABLETOCOMPILEYOUR PROJECT.