Combine coaca and sdl on the iphone - it does work!

The proof of concept isn’t much to look at , I will expand on this over the next few days to include tabs for all the sdl demos (rectangle etc.)

Now it only works with mixer.

I will publish the code in the next day or so too.

http://web.me.com/cannonwc/Site/Photos_7.html#grid

well there is nothing you can do in SDL you can’t do with opengl. So if your just programming for the iphone there is no advantange I can see to using SDL.

But if like me you want to develop for both the iphone and Android platform than sdl can potentially be a plus.

I say potential because the Android version of SDL needs work, but from what I understand is quite usable.

On the Iphone

I’m fairly certain I can get

Location to work, so location based games with overlayed HUD location displays should be easy

Borrowing some techniques from AR toolkit I believe I can get camera overlay to work to.

I’ve just started exploring the possibilities.

And as promised here is the POC.

[http://sol3.typepad.com/tagalong_developer_journa/2010/02/sdl-and-coaca-revisted.html

hello
before this gets any further, i want you to know that the correct term for
the iphone frameworks is COCOA, not “coaca”

hope this helps
Vittorio

Stephen Leacockhttp://www.brainyquote.com/quotes/authors/s/stephen_leacock.html

  • "I detest life-insurance agents: they always argue that I shall some
    day
    die, which is not so."On Tue, Feb 16, 2010 at 4:57 AM, michelleC wrote:

And as promised here is the POC.

[
http://sol3.typepad.com/tagalong_developer_journa/2010/02/sdl-and-coaca-revisted.html


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Sorry, I have a family so the only time I seem to find for my other passion developing is at some wee hour in the morning, my spelling is not the greatest than, I really just wanted to get this proof of concept into the wild.

Its not that great or impressive, but it does show a simple windows swaping technique that lets sdl and the uikit cooperate.

There may be better ways but I haven’t seen them yet.

so far every Iphone app I’ve seen with gui input resorts to some third party gui I am not sure.

This demo also shows some issues with having multiple sdl windows in the same app.

Going from info which is just a blank screen to the mixer tab and coming back is no problem.

Going from the info tab to rectangle, back to info is no problem

Going from info to mixer, from mixer to rectangle, the restored cocoa window is skewed vertically a bit. Not sure why yet, but don’t think other than simple demonstrations you want more than one sdl window.

Also not that once you destroy the window you do not call SDL_QUIT or leave the run loop, you let the environment destory the view when you leave the view controller, again I have to explore this a bit more.

There special steps to compile this demo, I will put a list of those up tonight, the major one is when you compile libSDLIphoneOS you need to exclude in your xcode project the SDL/video/uikit folder, you need to bring this into your app and you need some additional headers. The demo.zip has all the necessary headers for the latest svn of sdl.

Vittorio G. wrote:> hello

before this gets any further, i want you to know that the correct term for the iphone frameworks is COCOA, not "coaca"
hope this helps
Vittorio

Stephen Leacock (http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html) ?- “I detest life-insurance agents: they always argue that I shall some day die, which is not so.”

On Tue, Feb 16, 2010 at 4:57 AM, michelleC <@michelleC (@michelleC)> wrote:

  And as promised here is the POC.

[http://sol3.typepad.com/tagalong_developer_journa/2010/02/sdl-and-coaca-revisted.html (http://sol3.typepad.com/tagalong_developer_journa/2010/02/sdl-and-coaca-revisted.html)


SDL mailing list
SDL at lists.libsdl.org (SDL at lists.libsdl.org)
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org (http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)