Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
MacBook Pro (15-inch Core 2 Duo) - am I able to run OpenGL 1.3? pajhonka MacBook Pro 2 Jul 25, 2011 11:24 AM
OpenGL or OpenGL ES First? MorphingDragon iPhone/iPad Programming 0 Aug 2, 2010 06:58 AM
OpenGL - Which book to learn cocoa opengl? Janglo iPhone/iPad Programming 2 Dec 19, 2009 10:00 PM
Linux OpenGL Game -- any ideas for porting j763 Games 1 May 27, 2002 08:09 AM
OpenGL Beej Mac Help/Tips 4 Apr 1, 2002 10:46 PM


All times are GMT -5. The time now is 05:11 AM.

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

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