View Full Version : iPhone SDL demos
savage
10-07-2008, 07:40 PM
Here are some SDL demos running on an iPhone...
Example 1 :
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/th3__8ozNz0&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/th3__8ozNz0&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
Example 2 :
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/nsaTHM0R2Dw&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/nsaTHM0R2Dw&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
Example 3 :
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/jmT7dhfRjjU&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/jmT7dhfRjjU&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
The downside is that it is done using SDL 1.3, which is still in Alpha, last time I looked and I'm not aware of a FreePascal port for iPhones yet. Still very impressive though.
chronozphere
10-07-2008, 10:52 PM
OMG.. the spacecraft-thingy in the first vid is unbelievable. :shock: :D Didn't know the iphone had hardware for movement-detection.
Would be cool if we could get some pascal eye-candy workin on that thing. :razz:
jasonf
11-07-2008, 11:40 AM
Looks like I'm learning Objective C then :lol:
wagenheimer
16-01-2010, 04:15 AM
Any news on this?
Where can I download it do make some tests?
wagenheimer
17-01-2010, 10:43 PM
I have sucefully compiled some simple programs for the Iphone with the 2.4.0 Build o FreePascal for Iphone! =)
How can I get the SDL compatible with Iphone?
Stoney
17-01-2010, 11:24 PM
How can I get the SDL compatible with Iphone?
You need to download the latest SDL 1.3 SVN snapshot from http://www.libsdl.org/svn.php.
There is a directory called "XCode-iPhoneOS" compile the XCode project and you will get a static library called libSDLiphone.a
Now you need SDL 1.3 Pascal headers... the Hedgewars project has those, see http://hedgewars.org/. You need to checkout their SVN as well, the file you need is located /trunk/Hedgewars/SDLh.pas
Now you need to link against the static library using
{$link libSDLiphone.a}
and remove all references to the constant SDLLibname.
I haven't got around to test it myself yet, but I will try it as soon as I find the time.
KidPaddle
03-02-2010, 03:04 PM
I have successfully built the fpc logo sample and working on iPhone. But i couldn't get any xcode sdl sample working, like mixer or rectangle, it compiles and transferred to iphone, but after seeing sdl screen, i got always a black window.
Savage, has you any simple sdl sample project for iPhone, which only initialize sdl, shows a bitmap and quit on touch screen hit or this small button on bottom.
Thomas
noeska
03-02-2010, 06:18 PM
Is it possible to compile application for the iphone/ipod touch/ipad with fpc from an windows/linux pc? Also without an mac osx pc.
Stoney
03-02-2010, 06:33 PM
Is it possible to compile application for the iphone/ipod touch/ipad with fpc from an windows/linux pc?
Only if you have a virtual machine with Mac OS X installed.
Stoney
17-02-2010, 04:39 PM
I've made a quick how-to on how to set up a simple iPhone example using FreePascal and SDL and run it with the iPhone simulator.
http://www.youtube.com/v/Hm4UIPl1GqA&hl=de_DE&fs=1&hd=1
Please watch in HD if possible.
Video Link on Youtube: http://www.youtube.com/watch?v=Hm4UIPl1GqA
Video Link on Vimeo: http://www.vimeo.com/9522466
The example source code can be downloaded here: http://www.freeze-dev.de/files/SDLiPhoneFPC_Colors.zip
paul_nicholls
18-02-2010, 01:26 AM
I've made a quick how-to on how to set up a simple iPhone example using FreePascal and SDL and run it with the iPhone simulator.
http://www.youtube.com/v/Hm4UIPl1GqA&hl=de_DE&fs=1&hd=1
Please watch in HD if possible.
Video Link on Youtube: http://www.youtube.com/watch?v=Hm4UIPl1GqA
Video Link on Vimeo: http://www.vimeo.com/9522466
The example source code can be downloaded here: http://www.freeze-dev.de/files/SDLiPhoneFPC_Colors.zip
Nice work :)
I see you are doing all this on a Mac, is it at all possible to do ANY of the above video tutorial without using a Mac?
cheers,
Paul
Stoney
18-02-2010, 11:20 AM
Nice work :)
Thanks. :)
I see you are doing all this on a Mac, is it at all possible to do ANY of the above video tutorial without using a Mac?
That's a good question. I guess it might be possible on Linux with the iphone-dev project (http://code.google.com/p/iphone-dev/wiki/Building).
But Apple is doing everything to keep iPhone development Mac-only.
jdarling
18-02-2010, 10:40 PM
I see you are doing all this on a Mac, is it at all possible to do ANY of the above video tutorial without using a Mac?
That's a good question. I guess it might be possible on Linux with the iphone-dev project (http://code.google.com/p/iphone-dev/wiki/Building).
But Apple is doing everything to keep iPhone development Mac-only.
[/quote]
There is always WAX (http://www.mobileorchard.com/announcing-iphone-wax-native-uikit-iphone-apps-written-in-lua/). While I haven't tried it, you should be able to write apps on any platform (after all, Lua is a text based scripting language).
From what I've, read, tried, and done that's the only way to work outside a MAC.
paul_nicholls
18-02-2010, 10:56 PM
I see you are doing all this on a Mac, is it at all possible to do ANY of the above video tutorial without using a Mac?
That's a good question. I guess it might be possible on Linux with the iphone-dev project (http://code.google.com/p/iphone-dev/wiki/Building).
But Apple is doing everything to keep iPhone development Mac-only.
There is always WAX (http://www.mobileorchard.com/announcing-iphone-wax-native-uikit-iphone-apps-written-in-lua/). While I haven't tried it, you should be able to write apps on any platform (after all, Lua is a text based scripting language).
From what I've, read, tried, and done that's the only way to work outside a MAC.
[/quote]
Neato!
Of course 1 'small' hitch, would be that you couldn't create apps this way and send them to the Apple store, they would never accept them due to the Lua interpreter - no emulators, etc. allowed in iPhone apps!! D'OH!
cheers,
Paul
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.