|
#1
| ||||
| ||||
|
Hi, I am doing a Computer graphics course at university. We have to use micro$oft .net to develop our assignments. But we use no low level (hardware dependant) c or c++ commands. How would i go about changing the source of the assignment so it uses the mac osx GL, GLU and GLUT librarys? here is the source provided by the lecturer http://www.cs.auckland.ac.nz/compsci...ss2Sources.zip Can anyone help me to get this running on my mac? Any help appreciated!! Save me a trip into uni so i can use the lab computers!
__________________ | PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge |
|
#2
| ||||
| ||||
|
You will need the developer tools installed, and in your project you will need to link to the GLUT framework which is installed at /System/Library/Frameworks/GLUT.framework/ glut.h is at /System/Library/Frameworks/GLUT.framework/Versions/A/Headers/glut.h If you don't have that framework already listed, I think there's a way to add a new framework into the project and just tell it the path of the framework. I *think* the path for the opengl headers is already included in your project, but if not, you might have to do something similar to the above to link to the opengl framework.
__________________ MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet) Athlon 64 Windoze XP for school work (programming) 1GB RAM dferns@macosx.com |
|
#3
| ||||
| ||||
|
I have all the developer tools installed, im just not sure how to get the source to compile properly in project builder do i create a c/c++ tool or what? Thanks for the reply
__________________ | PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge |
|
#4
| ||||
| ||||
|
Yes, a C++ tool is what you want to create since it's a command line program.
__________________ MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet) Athlon 64 Windoze XP for school work (programming) 1GB RAM dferns@macosx.com |
|
#5
| ||||
| ||||
|
Ok so what are the .h file includes called in Mac OS X for windows: Code: #include windows.h #include gl/gl.h #include gl/glu.h #include gl/glut.h but for mac?? once i have these i think i will be set ALL help appeciated!!
__________________ | PowerBook G4 550 - 10.4 - 512Mb - 20Gb | 30Gb iPod Photo | 40x12x48 Fantom Drives CDRW (firewire) | Logitech Cordless Mouse MX700 | xBox with XBMC for movies and music in the lounge Last edited by profx; April 20th, 2003 at 07:03 AM. |
|
#6
| ||||
| ||||
|
I think the OpenGL headers are in the same location, and the GLUT ones are at GLUT/glut.h
__________________ MacBook Pro 2.16GHz Core2Duo 3GB RAM, G4 1.4GHz OSX Tiger 1.25GB RAM, Dual 2GHz G5 OSX Tiger 2GB RAM (freakin shweet) Athlon 64 Windoze XP for school work (programming) 1GB RAM dferns@macosx.com |
|
#7
| |||
| |||
|
#8
| ||||
| ||||
|
windows.h -> delete this line gl/gl.h -> OpenGL/gl.h gl/glu.h -> OpenGL/glu.h gl/glut.h -> GLUT/glut.h Also, glut.h already includes gl.h & glu.h so you could delete those lines too. |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| b85 and OpenGL | theNonsuch | Mac OS X System & Mac Software | 0 | October 5th, 2003 01:05 PM |
| configure.guess and configure.sub + Xdarwin + OpenGL | DarkPulse | Unix & X11 | 0 | November 29th, 2002 10:46 PM |
| Anybody using Codewarrior 8 and OpenGL | konan | Software Programming & Web Scripting | 2 | October 23rd, 2002 01:34 PM |
| DVD Playback messes up OpenGL screensaver | Dradts | Mac OS X System & Mac Software | 6 | January 14th, 2002 04:10 PM |
| "Rev. A" iMac w/ GameWizard, no OpenGL! | kommakazi | Hardware & Peripherals | 1 | January 13th, 2002 10:11 AM |