SDL2 sources, progress and ports
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    I am missing the SDL_ttf.h in the SDK.
    Did I miss something?
    regards
    eliot
  • »23.02.21 - 20:41
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    Oh.... sorry

    I fix that and upload new archive

    Missing SDL_mixer.h, SDL_net.h, SDL2_ttf.h, SDL2_image.h and SDL2 gfx... mm


    Quote:

    eliot a écrit :
    I am missing the SDL_ttf.h in the SDK.
    Did I miss something?
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »23.02.21 - 21:49
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Perfect, thx!
    regards
    eliot
  • »23.02.21 - 21:56
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    IngaSdl2 Engine is working well with your sdl2 port:
    inga1.png
    inga2.png

    What is worth to mention from my side:
    1. SDL_CreateRenderer with SDL_RENDERER_ACCELERATED or SDL_RENDERER_PRESENTVSYNC did not work. I needed to use SDL_RENDERER_SOFTWARE.

    2. SDL_GetBasePath did not add the path separator at the end
    see documentation:
    * This returns an absolute path in UTF-8 encoding, and is guaranteed to
    * end with a path separator ('\\' on Windows, '/' most other places).

    Thx again beworld for the SDL2 port!

    [ Edited by eliot 25.02.2021 - 08:28 ]
    regards
    eliot
  • »25.02.21 - 09:27
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    You can use 0, SDL2 chooses the first RENDERER available

    I take note of your remarks, thank you
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »25.02.21 - 14:16
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    @beworld:

    just one more remark:
    SDL_SetCursor and SDL_ShowCursor do not have any effect on morphos currently.
    On Linux and Max the cursor changes when running Ermentrud, but on mos the mouse cursor does not change.
    regards
    eliot
  • »26.02.21 - 11:26
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    @eliot

    What do you send to SDL_CreateCursor ?

    do you have any sample code that i can reproduce the problem?

    Thanks
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »26.02.21 - 11:49
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Inga is using a surface, see:
    https://github.com/eliot-exdev/inga-sdl-1/blob/master/sources/Cursor.c

    But maybe there is something else wrong, I will have a look into it.
    On other systems it's working, but this means nothing.
    regards
    eliot
  • »26.02.21 - 11:56
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    ok i check if i see something...


    [ Edité par beworld 26.02.2021 - 17:46 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »26.02.21 - 15:23
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 502 from 2013/5/29
    Quote:

    eliot escribió:
    @beworld:

    just one more remark:
    SDL_SetCursor and SDL_ShowCursor do not have any effect on morphos currently.
    On Linux and Max the cursor changes when running Ermentrud, but on mos the mouse cursor does not change.


    I think I had the same problem when trying to port protracker clone.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »26.02.21 - 18:29
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    I dont have this problem with OpenTTD and ScummVM here.
    Maybe .bmp is wrong format, i dont know for now....
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »26.02.21 - 18:56
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    I dont have this problem with OpenTTD and ScummVM here.
    Maybe .bmp is wrong format, i dont know for now....
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »26.02.21 - 18:56
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Hm, strange.
    Which format are you using in Scumm and Openttd?
    regards
    eliot
  • »26.02.21 - 19:41
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    After some time, i think you right, we have a bug with no-system cursor.....
    I try to see with BSzili if we can fix that.

    In ScummVM or OpenTTD, they dont use directly SDL_CreateCursor...
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »26.02.21 - 21:30
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    From which branch you are currently bulding the
    libs and the sdk? Maybe I can have a look
    into that.
    regards
    eliot
  • »26.02.21 - 22:30
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    all code is here :

    https://github.com/BSzili/SDL/tree/mos-sdl2/src/video/amiga


    When you call SDL_CretaCursor, all seem pass here :
    https://github.com/BSzili/SDL/blob/mos-sdl2/src/video/amiga/SDL_amigamouse.c#L55

    I try to look in SDK, we have an example in Intuition "argbpointer.c"

    Thanks
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »27.02.21 - 06:37
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Hi,
    yes the call seems to be ok, but nothing happens (mouse pointer does not change).
    I will also have a look into the code.
    regards
    eliot
  • »27.02.21 - 07:30
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    Yeah !!! i think i find :

    https://github.com/BSzili/SDL/blob/mos-sdl2/src/video/amiga/SDL_amigamouse.c#L61

    In SDK example, it's not same, i try to use Object and it's working now :-)
    Need more test, and i update repository
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »27.02.21 - 07:44
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Yeah, sounds great!
    regards
    eliot
  • »27.02.21 - 09:40
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    Ok you can find on storage new archive with fix.
    Thanks again
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »28.02.21 - 07:33
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Thx beworld,you are the man! It's working fine now with Ermentrud/Inga.
    regards
    eliot
  • »28.02.21 - 10:09
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    New Package with SDL 2.0.14 version is available.

    News:
    - somes fixes for SDL2
    - add OPENGL RENDERER in state (with transparency buggy.. but not affect all exist ports)
    - lot of update of dependencies of SDL2_mixer, SDL2_image, SDL_ttf

    more on readme/changelogs

    Available on MorphOS-Storage.net
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »20.04.21 - 11:11
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 564 from 2004/4/15
    Hi all,

    I just had a try to use new OpenGl feature together with Inga engine (Ermentrud).

    Sadly Timo is using one big texture where everything is rendered into:

    Code:

    prerenderTexture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, SCREEN_WIDTH, SCREEN_HEIGHT);
    ...
    SDL_SetRenderTarget(renderer, prerenderTexture);
    ....



    this seems currently not supported by SDL/OpenGl:
    SDL_CreateTexture: Render targets not supported by OpenGL

    Is there any chance to get this feature working on MorphOs port?
    It would really be nice to have the OpenGl renderer, because it's much faster than sw renderer.

    regards
    eliot
    regards
    eliot
  • »26.08.21 - 19:22
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 590 from 2010/2/10
    From: FRANCE
    Hi,

    Tinygl has no FBOs, so there's nothing that can be done on the SDL side.

    BeWorld
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »27.08.21 - 08:54
    Profile Visit Website