AGL / Carbon documentation
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,
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,
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.
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.
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.

