Well this Girl is willing to admit when she is wrong.
Over the last few days I made some comments and I know other reviewers have made similar comments that sdl wasn’t ready for the iphone, that it was hard to use and had limited functionality.
Well I think I will have to retract that.
The more I use sdl the more I like it, will it replace open gl for my game coding, no not entirely, I’ve recently started playing with opengles2 and think there are huge performance increases.
But for porting projects from linux such as those based on ffmpeg or games that I want to be cross platform SDL works beautiful, it may even be worth the 100.00 license fee, except I have a tendency to want to share my code.
One issue I had was I couldn’t find any samples of mixing iphone sdk with sdl, welll I still can’t, but thats probably because sdl is not widely used now on the iphone or used mostly for highly graphical games and simulations that might not have a ui.
As usual I just set out and put together some samples myself.
My first attempt was rather crude, I copy the uikit folder from the sdl distribution and in xcode excluded it from their, than I created a selectot in a viewcontroller to launch my c program. This worked but seemed a lot like a hack.
Then I encountered a app that was ported some time ago and was converted for full screen sdl, I wanted to add a ui to it, but for the life of me I couldn’t find what options they used to compile it. all I knew was that it was sdl 1.3 revision 4404.
So this time I pulled the appdelegate from the svn, copied it into my project along with a few required headers, And as I though when I ran my project it picked up my modified app delegate which had a navigation controller which immediately took you into a tabbed menu system.
All in all, it worked beautifully and I had the best of both the sdk and sdl worlds.
Buttom line, to do anything sdkish in sdl all you have to do is get hold of the uikitappdelegate.
I will reiterate one thing I said before and that is SDL is one of those frameworks you either hate or love.
I think my relationship has gone from hate to Love.
Congratulations on a very cool implementation. Once you learn to use it that is.
If sdl has any really lacking, its that there very little documentation aimed at the mobile platforms, but than again what package does have that.
That platform is constantly in flux right now.