Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: iPhone SDL demos

  1. #1

    iPhone SDL demos

    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.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  2. #2

    iPhone SDL demos

    OMG.. the spacecraft-thingy in the first vid is unbelievable. :shock: 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:
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  3. #3

    iPhone SDL demos

    Looks like I'm learning Objective C then :lol:

  4. #4

  5. #5

    Re: iPhone SDL demos

    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?

  6. #6

    Re: iPhone SDL demos

    Quote Originally Posted by wagenheimer
    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
    Code:
    {$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.
    Freeze Development | Elysion Game Framework | Twitter: @Stoney_FD
    Check out my new book: Irrlicht 1.7.1 Realtime 3D Engine Beginner's Guide (It's C++ flavored though)

    Programmer: A device for converting coffein into software.

  7. #7

    Re: iPhone SDL demos

    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

  8. #8

    Re: iPhone SDL demos

    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.
    http://3das.noeska.com - create adventure games without programming

  9. #9

    Re: iPhone SDL demos

    Quote Originally Posted by noeska
    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.
    Freeze Development | Elysion Game Framework | Twitter: @Stoney_FD
    Check out my new book: Irrlicht 1.7.1 Realtime 3D Engine Beginner's Guide (It's C++ flavored though)

    Programmer: A device for converting coffein into software.

  10. #10

    Re: iPhone SDL demos

    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
    Freeze Development | Elysion Game Framework | Twitter: @Stoney_FD
    Check out my new book: Irrlicht 1.7.1 Realtime 3D Engine Beginner's Guide (It's C++ flavored though)

    Programmer: A device for converting coffein into software.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •