Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: sdl2 windows and android

  1. #11
    Kotai the sdl2 4 android use java the graphics ,audio and input is build on java and not native look the source codes you need jni to start the sdl and java to pass the android pointers macos linux and windows use opengl and windows api
    your code is fine 4 all you systems but 4 android you need eclipse to create the android apk or the command (android)

    look this code

    https://bitbucket.org/ntlucas/sdl2/s...ava?at=default
    Last edited by djoker; 20-11-2013 at 04:41 PM.
    Never underestimate the power of Delphi.
    <br />There's those who play games,...and then there's who make games...

  2. #12
    Hi again.

    I found next site on Paul Foster shared his experiences working with External Java libraries on Android with XE5 :

    http://www.pclviewer.com/android/

    and PDF: http://www.pclviewer.com/android/XE5.pdf

    Do you think with this information would be used SDL2 on Android with Delphi XE5?

    Thanks.
    www.kotai.es
    www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
    www.miniracingonline.com

  3. #13
    Hi @joker


    I found how use java in Android from DelphiXE5


    I see your demo of SDL2 on Android for FPC in first message of this post, but I do not undertstand it.
    Please, can you send me a simple example in FPC for make this:


    Code:
    program SDL2Test;
    uses
      System.SysUtils;
    
    
      function SDL_Init(flags: UInt32): LongInt cdecl; external 'libSDL2.so' name 'SDL_Init';
    
    
    begin
         try
            if SDL_Init(0) < 0 then
               Writeln('Can not Init SDL')
            else
               Writeln('SDL Init OK');
         except
            on E: Exception do
               Writeln(E.ClassName, ': ', E.Message);
         end;
         repeat
         until False;
    end.
    Please if you need other files (libraries .so or java) add it.
    I would port my games make with DelphiXE5+SDL2 to Android.

    Thanks.
    www.kotai.es
    www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
    www.miniracingonline.com

  4. #14
    Hi @joker

    please can you put or send me a simple example in FPC for make this:


    Code:
    program SDL2Test;
    uses
      System.SysUtils;
    
    
      function SDL_Init(flags: UInt32): LongInt cdecl; external 'libSDL2.so' name 'SDL_Init';
    
    
    begin
         try
            if SDL_Init(0) < 0 then
               Writeln('Can not Init SDL')
            else
               Writeln('SDL Init OK');
         except
            on E: Exception do
               Writeln(E.ClassName, ': ', E.Message);
         end;
         repeat
         until False;
    end.

    Thanks.
    www.kotai.es
    www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
    www.miniracingonline.com

  5. #15
    hi KOTAI , plz don't waste time using sdl2 with delphix5, delphixe5 build android full projects this way its not possible use sdl2 or sdl1 , sdl its not full NATIVE (so) sdl use java
    and 2 use sdl you need android full project with(AndroidManifest.xml,project.properties, and the most important SDLActivity.java) SDLActivity.java is all the magic.
    KOTAI try the fcpcross with delphi7 .
    Never underestimate the power of Delphi.
    <br />There's those who play games,...and then there's who make games...

Page 2 of 2 FirstFirst 12

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
  •