I've created two repositories up on Github with my Mac OS X ports of Handmade Hero. They incorporate Casey's code as of Friday, although I have to finish fixing up a few things and clean up some sections of code. The goal is to be able to take Casey's daily platform independent code, and drop it right into the project so it compiles and runs unchanged.
As Casey is not releasing the game source publicly yet, I won't update the platform-independent code (handmade.cpp and whatever that turns into) much more on Github, but I'll try to make sure the OS X specific code stays updated to support the ongoing development.
I used native OS X libraries for the port:
- CoreAudio for sound
- OpenGL for graphics
- HID for joystick input
- CVDisplayLink for frame timing
So far for input support, I've only tested a dusty old Logitech gamepad controller that I found in my closet, so I'm interested to see if anyone has luck with other controllers.
The main Github repository is a standard-looking Xcode project:
https://github.com/itfrombit/osx_handmade
The second repository is basically the same code, along with some extra plumbing to demonstrate how to create the app completely programmatically without a nib file or using an Xcode project.
https://github.com/itfrombit/osx_handmade_minimal
This second version works, but it's not a good Mac app citizen at the moment. It needs some additional work to assemble it into a standard Mac application bundle, but that's easy to do. The minimal version is mostly a technology demonstration, so you're probably better off following the standard Xcode-based app repository.