PDA

View Full Version : Objective-C SDL Bindings and Windows?


Blacktiger
2006.04.02, 01:56 PM
So I was talking to a guy about writing a game this summer and we would want to make it available for windows and mac os x (and maybe linux). I was thinking we should use SDL, but I'm trying to figure out if porting would require us to write code in C++ for Windows and Objective-C for Mac OS X.

Would we have to do that? Could all of the code be in C++? What about writing all of the code in Objective-C and using the SDL Objective-C bindings on both Mac OS X and Windows? Thanks in advance...

...Michael Martz

Taxxodium
2006.04.02, 02:12 PM
For greater portability and less frustration, use C++. Or just C, as some members will tell you.

You can use Objective C on the Mac for the front end, ie GUI stuff for setting up Graphics, Controls, etc and make the game code in C/C++

But if you use SDL, stick with C/C++, that would be the best option.