C /C++ and OpenGL

profx

ill never 4get watsisname
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/compsci372s1c/assignments/Ass2/Ass2Sources.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!
 
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.
 
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
 
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
those all have angle brackets around them but this forum wont display them ... argh


but for mac??

once i have these i think i will be set


ALL help appeciated!!
 
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.
 
You will find an example how to use OpenGL in Mac OS X on the Apple Developer Side, watch the CubePuzzle...

Regards Winn
 
Back
Top