View Full Version : Carbon Tutorials?
Duane
2004.07.06, 12:09 PM
I'd like to find some Carbon tutorials, as I would like to get programing, and I know C, not Objectve-C.
kberg
2004.07.06, 03:16 PM
Here you go (http://www.mactech.com/macintosh-c/online.html). These, along with some sample code from apple, were excellent learning tools for me.
FCCovett
2004.07.06, 03:19 PM
This is not quite what you are asking, but I am selling the full source code of my game Pharaoh's Gold, which is a 2D game engine that uses OpenGL, Quartz, XML, and CoreAudio. The source code is failry commented, it uses a mix of C and C++, and I am available online most of the week to provide support.
Pharaoh's Gold is a simple game (review on MacWorld Aug. 04, pp.52), but the engine can be easily extended to support full 3D games, and you'll find there all the base code to create an OpenGL context (windowed or full-screen), grab events with Carbon Events Manager, and play multiple sounds (AIFF) with independent pan and volume controls for a number of channels you can assign.
DanLabGames is using that same base structure for their latest games (except for the audio player because he's got a license for FMOD), and I've got the source code licensed to another developer as well.
http://store.eSellerate.net/s.asp?s=STR199707875
Duane
2004.07.08, 11:56 AM
the link was fine, but when I tried to compile it in the terminal, it spat out that it couldnt find Carbon.h
i used
#include <Carbon.h>, just in case you were wondering. :p
ThemsAllTook
2004.07.08, 01:00 PM
Try "#include <Carbon/Carbon.h>". Also, make sure you're passing "-framework Carbon" to gcc.
Duane
2004.07.16, 05:29 PM
cool. thanx!:D
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.