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

Thread: Android Support

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Android Support

    Here is the first experiment with Android where I mixed Java(creating main view and attaching GLSurfaceView) and Pascal(changing OpenGL ES states, rendering, etc.). Simple demo shows green rectangle with red border. On photo you can see Eclipse 3.7.1, FreePascal 2.5.1, Lazarus 0.9.31 and dirty LG Optimus One in my hands


    Unfortunately there are many problems and FreePascal still not ready for Android(but I hope I will change my mind ). Just including some Unix-units will crash your app(and this prevent me to use timers, file operations, etc.), using cthreads will fail your linking stage. I will continue my work, but full port won't be soon, I guess.

  2. #2

  3. #3
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Can't we just write some bindings to borrow the C++ libraries? Or, drop to root on android and build fpc from source on android itself?
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  4. #4
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Very cool. Any consideration towards Oxygene 5 support in ZenGL?

    You could get on their beta by contacting Marc Hoffman on their site.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5
    Any consideration towards Oxygene 5 support in ZenGL?
    ZenGL isn't a simple library, so it will be too hard to make such a port because Oxygene just a "Java with Pascal face" and this is not enough. Also I didn't find any information about integration with Eclipse(only with Visual Studio under Windows... O_o and where is my Linux support? )

    // spam-bots... they like to post in my threads, or their invisible messages are everywhere?
    Last edited by Andru; 05-11-2011 at 07:31 AM.

  6. #6
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    // spam-bots... they like to post in my threads, or their invisible messages are everywhere?
    In theory, it is not possible for you to see those posts - interesting. To be honest, deleting them makes my job a tad harder as for some reason the selection button doesn't work properly every time otherwise. Can't be helped I guess - I end up taking care of 30 odd posts a day whenever my Internet connection decides to play ball, but as the modem is dyeing (doesn't sync above 2.1meg and decreasing) things aren't looking as good as they could be...

    only with Visual Studio under Windows
    Thats a surprise - a LOT of development nowadays is done under Mac and Linux - especially for a linux target like android.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  7. #7
    More improvements:
    - now multi-threaded resource loading works
    - ZenGL will not check EGL(no need in it)

    Still don't know what to do with "OpenGL context lost"... I don't like an idea to reload every texture...

  8. #8
    I am going to try to make a simple game like "Whack-A- Mole" with this. Works pretty smooth with LG GT540 - Android 2.1

  9. #9

  10. #10
    I returned to Android development and implemented virtual kayboard A bit updated old demo is here. It uses the same scene with penguins, plays music in separate thread and shows virtual keyboard(with handling text input) after tapping on blue square. All changes can be found in latest svn revision of ZenGL.
    Last edited by Andru; 16-03-2012 at 05:22 PM.

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
  •  
Comodo SSL