| Combine coaca and sdl on the iphone - it does work! |
|
michelleC
|
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 |
|||||||||||
|
|
||||||||||||
|
michelleC
|
And as promised here is the POC.
[http://sol3.typepad.com/tagalong_developer_journa/2010/02/sdl-and-coaca-revisted.html |
|||||||||||
|
|
||||||||||||
| Combine coaca and sdl on the iphone - it does work! |
|
Vittorio G.
Guest
|
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 - "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:
|
|||||||||||||
|
|
||||||||||||||
| Re: Combine coaca and sdl on the iphone - it does work! |
|
michelleC
|
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.
|
|||||||||||||||
|
|
||||||||||||||||

