Results 1 to 6 of 6

Thread: Version 2.2 of SDL2-for-Pascal Units Released

  1. #1

    Version 2.2 of SDL2-for-Pascal Units Released

    EDIT: It would be great, if you could publish the following text. If you like, you could use the article image from Attention, the text there is not identical. Best regards, Matthias.

    Version 2.2 of the SDL2-for-Pascal Units got released. It took nearly two and a half years to update the SDL2-for-Pascal Units to be quite up-to-date with the latest version of SDL2. We got a really updated package now. For you this means, there is no good reason not to start using SDL2 in Pascal to realize your (game) projects, be it with Free Pascal or Delphi, on Linux, Windows or MacOS. ;-) – Other compilers and OS’es work too, probably. Feel invited to craft some patches to make it work with your compiler/OS, too.

    I’d like to thank all contributors for their efforts. I’d also like to thank suve aka SuperVegeta, the co-maintainer and long-term PGD member, for the great cooperation, without which some large improvements would be missing in this release and some serious mistakes wouldn’t have been caught before merging the code :-)! I'd like to thank AthenaOfDelphi for hosting the repo on the PGD GitHub Account (and preparing the SDL3-for-Pascal repo already!)

    Here are the offical release notes:

    • SDL2 unit is up-to-date with at least version 2.0.14 of the SDL2 library (exception
    • many aliases got replaced by typed enums
    • add single and double pointers for all types (thanks furious-programming)
    • update SDL_ttf.pas to latest version 2.21.0
    • replace data types by c data types (see PR #29)
    • add folder structure (see PR #27)
    • many bugfixes

    Happy New Year and Happy Coding!
    Last edited by SilverWarior; 03-01-2024 at 07:48 AM. Reason: Added external image link before promoting to News article

  2. #2
    Impressive work on maintaining SDL2 headers for pascal with latest version of SDL2. From what I have read here and there there were quite a lot of changes made on SDL v2.2 which meant a lot for work for you guys maintaining headers up to date.

    PS: I have promoted your thread into News article

  3. #3
    Thanks for your words and thanks a lot for publishing!

  4. #4
    Well, that are good news. I hope I can now compile on macOS on Apple Silicon. Never got an answer to my post:
    Now I am on macOS Sonoma - still no success in compiling. But maybe with the new Units? I will try it in the next few days.

    EDIT: Still doesn't work. It is claimed that the units work with FPC and macOS. But how?
    Last edited by Cybermonkey; 14-01-2024 at 07:10 PM.
    Best regards,

  5. #5
    Cybermonkey, вероятнее всего, на это вопрос вам ответят только сами разработчики SDL.

    Google translate:
    Cybermonkey, most likely, only the SDL developers themselves will answer this question for you.

  6. #6
    Where to download the (correct version) .dll files

    "SDL2 unit is up-to-date with at least version 2.0.14 of the SDL2 library"

    SDL 2.0.14 on github does only have source for download.

    The first release with assets other than source is 2.0.18

    Containing SDL2.dll, perhaps other dll's were merged into it?

    Nah... still asking for SDL2_ttf.dll

    Thatd be in another github repo releases:

    Oh... "Update SDL_ttf.pas to latest version 2.21.0"

    The closest would then be

    I got things working with the above logic but have no idea if it is correct or not. First release after or the latest. Can one download SDL3 dlls and SLDforPascal 2.2 headers will work with them?
    Last edited by Thyandyr; 21-04-2024 at 05:10 PM.

Tags for this Thread


Posting Permissions

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