Getting Started with OpenGL - Mac - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Getting Started with OpenGL - Mac (/thread-7236.html)
Getting Started with OpenGL - Mac - ThrottleMonkey - Mar 10, 2003 03:30 PM
I've been looking around the internet for quite some time. OpenGL.org has great tutorials and whatnot on how to get started... learning to code in OpenGL... but the Apple website (IMO) is crap when it comes to explaining how/where to get/download GLUT and OpenGL for OSX.
Would someone be kind enough to point a total newbie in the right direction?
Getting Started with OpenGL - Mac - macboy - Mar 10, 2003 03:36 PM
Click the "idg faq" button at the top then on the iDevGames site, look at some of the examples and such.
Getting Started with OpenGL - Mac - skyhawk - Mar 10, 2003 03:43 PM
standard nehe.gamedev.net plug applies
 fixed site jabber
Getting Started with OpenGL - Mac - Mark Levin - Mar 10, 2003 04:40 PM
GLUT is provided as a framework included with the dev tools. Throw it into the project, write a new main.c, and it should be good to go.
The next harder thing to learn is AGL, which is closely tied to the window manager, but you'll need it for Carbon work without GLUT.
Getting Started with OpenGL - Mac - OneSadCookie - Mar 10, 2003 05:22 PM
Just to explicitly say it, GLUT and OpenGL come with Mac OS X. There's nothing you need to install but the developer tools.
Getting Started with OpenGL - Mac - kelvin - Mar 10, 2003 05:46 PM
For glut, my suggestion would be just too pick apart Apple's sample code:
if you're not interested in glut, and are looking for a more non-portable option, I'd suggest looking into working with OpenGL in Cocoa. If you have any questions about Cocoa and OpenGL I'll be happy to answer.
Getting Started with OpenGL - Mac - Josh - Mar 10, 2003 08:34 PM
Quote:Originally posted by skyhawkI perfer nehe.gamedev.net
Getting Started with OpenGL - Mac - Feanor - Mar 10, 2003 08:39 PM
Was not there a bunch of stuff on the OpenGL list lately about GLUT being incomplete in the distribution and you had to compile it yourself to get it to work correctly? I know the framework that is installed is functional...
ThrottleMonkey, don't forget to tell us what OS version you are using and what developer tools you have chosen. In any case you have to link to the correct libraries/frameworks, and how you do that depends on the IDE. But I'll ditto OSC that you don't have to download or install anything. Also, if you have the Apple developer tools installed on OS X, there are a pile of AGL, NSGL and GLUT sample applications.
I recommend OS X, and either Project Builder (free) or CodeWarrior ($$) to develop with. You will probably get more help from those of us around here who like Apple's tools because they are free and work pretty darn well. If you are using GLUT, you also need to link to the Cocoa frameworks on OS X because they are used to implement GLUT. From there, either NeHe examples or, do yourself a favour, read the OpenGL Programming Guide. It's for sale in stores at v1.2, and free online for v1.1.
I have added some of this to the FAQ. If this is somehow redundant... then the FAQ needs reorganization.
Getting Started with OpenGL - Mac - ThrottleMonkey - Mar 10, 2003 10:59 PM
I have OSX 10.2.4 and CodeWarrior.
I really want to begin programming, but... well... I kinda need a mentor.
Preferably someone that is patient with someone (me) who asks lots of questions.
NEHE looks great, only the Tutorial on OpenGL is very vague as with which program you're supposed to be putting all that code in... is it CodeWarrior, GLUT? what?
I thank you all for your input. I'm just getting very frustrated at running around in circles in the past, trying to find good help, examples, tolerant people (who are tolerant of coders just starting out... total newbies like me).
Oh, and what's the Project Builder download link? I keep going to apples' dev site and only get the "run around" links... not some place i can actually download it.
Getting Started with OpenGL - Mac - OneSadCookie - Mar 11, 2003 01:08 AM
If you got a new Mac with 10.2 installed, there's a dev tools installer in /Applications/Installers/. It's not the most up-to-date, but it should do you to begin.
If you bought 10.2 retail, the dev tools came on an extra CD. Again, not the most recent version...
If you go to http://connect.apple.com/, you can sign up to be an online member of the Apple Developer Connection (free), this lets you download the latest developer tools (250-300MB).
Getting Started with OpenGL - Mac - Josh - Mar 11, 2003 06:27 AM
Quote:Originally posted by ThrottleMonkeyAre you new to programming in general or just OpenGL?
Getting Started with OpenGL - Mac - Feanor - Mar 11, 2003 07:03 AM
Quote:Originally posted by ThrottleMonkey
The NeHe Tutorials were originally written to work with Windows -- you'll see "#include <windows.h>" at the beginning of the example files. However, there are GLUT versions available for download. Also, note there are almost forty tutorials, from the absolute simplest all the way to quite complicated games.
Question: Are you already familiar with the C programming language? (Note to self: finish "ChooseYourEnvironment" in FAQ.)
Getting Started with OpenGL - Mac - sealfin - Mar 11, 2003 07:51 AM
Insert neheX plug here.
Insert guilt for not having finished the site yet here.
Getting Started with OpenGL - Mac - ThrottleMonkey - Mar 11, 2003 09:30 AM
Thank you Cookie. I'm downloading the Dev Tools right now. A whopping 300 Mb.
To answer the other questions, I'm only a couple weeks into C++, but I'm not a complete stranger to programming. Well, if you really call QBasic, HTML and FileMakerPro programming.
I've already written MUD-like text-based games in C++ to get used to the idea of programming for games and I'm wanting to make the graphical "leap".
I'm dedicated and highly motivated (sounds like a resume) but I'm the kind of guy that needs the initial spoon feeding and push in the right direction.
Thanks for everyone's comments so far, it's more help than I've gotten from the CodeWarriorU.com site.
Getting Started with OpenGL - Mac - BobbyWatson - Mar 11, 2003 09:58 AM
Instead of dealing with AGL for creating OpenGL contexts in windows or fullscreen, you may want to check out SDL (http://www.libsdl.org), a very nice little library which can create a context for you very easily (the way to do it is written in the documentation, it only takes a few function calls instead of the two pages of code Apple provides as a sample) and works pretty well from what I've seen.