Hello,
Last time I tried it out the iPhone port was usable, once compiled, but
somewhere along the line compilation issues were introduced that I’ve
still got to fix.
The port (so far as I know) is only found in the SDL 1.3 SVN.
http://www.libsdl.org/svn.php
To get a sense of what can be done, I suggest checking out the code and
reading the iPhoneOS readme file. There are also iPhone SDL demos in
the directory XCodeiPhoneOS/Demos.
When deciding what to use to build your game, you might want to consider
these things:
SDL 1.3 and SDL for iPhone is still a work in progress.
If you’re planning on doing an iTunes app store release, then you’d have
to get a commercial license for SDL, since the iPhone port uses static
linking (due to terms of iPhone SDK agreement) but the normal SDL
license (LGPL) doesn’t really allow this. You can talk to Sam Lantinga
about this.
Like you mentioned, it’s possible to do the OpenGL ES coding yourself.
Take a look at apple’s OpenGL ES application template – you might find
it can be easily adapted to your needs. For 2D there is also the option
of using CoreGraphics for your drawing.
Lorcan Hamill wrote:> Hi All,
Some quick questions:
What is the status of the iPhone port of SDL? Is it usable?
Is it just in the CVS version, or is there an official release yet?
Thanks in advance, for any info.
Background:
I’ve been out of touch with SDL for a year or two - just rejoined
the mailing list a couple of days ago. I’m thinking of developing
an iPhone game, probably using OpenGLES, and wondering if SDL
support for the iPhone is at a stage where I could use it.
I have the iPhone SDK, and am registered as a developer. I could
just work with the native OpenGLES API, but I’m hoping that SDL
would make life easier. I saw an earlier posting on the list which
suggested that not all of the code was available due to the Apple NDA,
but that has been lifted now.
So, I’m just wondering what the current status is. Any links to
sample code, etc, would be much appreciated, too.
Regards,
Lorcan Hamill
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org