Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 14, 2007, 03:41 PM   #1
Saiko
macrumors newbie
 
Join Date: Jan 2007
OpenGL

I'm using Xcode and I was trying to implament OpenGL but it seems that I didn't have the libraries and headers for it so I downloaded the "OpenGL CFM SDK" from apple and got it opened up but It just gives me files and does not tell me where I need to place them in order to use them so any help on how to install this SDK?
Saiko is offline   0 Reply With Quote
Old Jan 14, 2007, 04:09 PM   #2
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
You probably don't want the CFM SDK. CFM is pretty old school! You might want this if you are writing a Carbon app targeting OS9 and OSX I suppose...

Personally I'd just use the Framework already installed in the normal location. At /System/Library/Frameworks. In this case /System/Library/Frameworks/OpenGL.framework

It contains all the headers I remember being required, but I've not used OpenGL for 8 or 9 years!
robbieduncan is offline   0 Reply With Quote
Old Jan 14, 2007, 05:14 PM   #3
MrFrankly
macrumors regular
 
Join Date: Jan 2006
Quote:
Originally Posted by Saiko View Post
I'm using Xcode and I was trying to implament OpenGL but it seems that I didn't have the libraries and headers for it so I downloaded the "OpenGL CFM SDK" from apple and got it opened up but It just gives me files and does not tell me where I need to place them in order to use them so any help on how to install this SDK?
You first need to include the frameworks as said above and then include the include files from their Mac OS X specific paths <OpenGL/gl.h> or if you want glut use <GLUT/glut.h>. It should work then.
MrFrankly is offline   0 Reply With Quote
Old Jan 15, 2007, 04:03 AM   #4
lazydog
macrumors 6502a
 
Join Date: Sep 2005
Location: Cramlington, UK
Send a message via MSN to lazydog
There are quite a few example projects in /Developer/Examples/OpenGL you can look at and base your own projects on. These projects should open up and compile without problems in XCode. The GLUT examples are probably a good place to start.

b e n
lazydog is offline   0 Reply With Quote
Old Jan 15, 2007, 09:24 AM   #5
bronxbomber92
macrumors regular
 
Join Date: Nov 2006
Here are some CocoaGL tutorials: http://zerobyzero.ca/~ktatters/
bronxbomber92 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
OpenGL 4.0 MagnusVonMagnum OS X Mavericks (10.9) 2 Jan 1, 2014 09:44 PM
OpenGL 3.2?! Itzamna OS X 10.8 Mountain Lion 1 Jun 10, 2013 05:37 PM
OS X OpenGL 4 foijord Wasteland 7 Jul 19, 2012 06:09 PM
OpenGL Versioning? Michael Goff OS X 16 Jul 13, 2012 08:36 PM

Forum Jump

All times are GMT -5. The time now is 04:38 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC