AGL / Carbon documentation

Member
Posts: 46
Joined: 2008.10
Post: #1
Good morning,

I would like to find better documentation for using AGL in a C++ / Carbon environment for a game I will be porting (and, in the future, several games native to my Mac). ADC seems to be sorely lacking, and the O'Reilly Carbon book barely mentions it at all. Any tips or advice?

Thanks,
Quote this message in a reply
Member
Posts: 111
Joined: 2002.06
Post: #2
ADC provides some useful AGL information. The OpenGL Programming Guide for Mac OS X shows you how to draw into a Carbon window and how to draw fullscreen. There's also an AGL reference that lists all the function calls. I wrote a tutorial for iDevGames years ago on using AGL for writing fullscreen OpenGL programs. You can find the tutorial by clicking the link in my signature.

You should consider using SDL to port your game. SDL lets you use C++, lets you use OpenGL, and runs on Mac, Linux, and Windows.

Mark Szymczyk
http://www.meandmark.com
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
It is not recommended to begin using Carbon or AGL for new programs. As Mark says, SDL is a reasonable alternative, but using Cocoa directly isn't too difficult either.
Quote this message in a reply
Post Reply