home.social

#sdl3 — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #sdl3, aggregated by home.social.

  1. Juha 'capehill' Niemimäki has released version 3.4.8 and version 2.32.10 of the SDL multimedia library for AmigaOS 4.

    amiga-news.de/en/news/AN-2026-

    amiga-news.de/en/news/AN-2026-

  2. RE: mastodon.gamedev.place/@Smohc_

    After four months, I've finally worked out all the audio bugs and all I had to do was completely rewrite my entire code base.

    Instead of focusing on X11, I decided to just let SDL3.0 handle all the cross-compatibility nonsense. Now I have access to Windows, Linux, Android and WebGL implementations.

    My triangle wave generator was broken though. Nothing on stack overflow worked. Here's the REAL formula I used to fix it: mathworld.wolfram.com/Triangle

    #programming #solodev #indiedev #devlog #SDL3

  3. RE: mastodon.gamedev.place/@Smohc_

    After four months, I've finally worked out all the audio bugs and all I had to do was completely rewrite my entire code base.

    Instead of focusing on X11, I decided to just let SDL3.0 handle all the cross-compatibility nonsense. Now I have access to Windows, Linux, Android and WebGL implementations.

    My triangle wave generator was broken though. Nothing on stack overflow worked. Here's the REAL formula I used to fix it: mathworld.wolfram.com/Triangle

    #programming #solodev #indiedev #devlog #SDL3

  4. When you're working with SDL3 there are extra headers that aren't included. Image, mixer, ttf, and net are seperated out. These are official extensions to the library, so I'm a little curious why. Except for ttf, everything is under the zlib license so it's not that. Maybe someone out there has more information...

    #programming #solodev #devlog #sdl3

  5. One common issue I see online is that people don't always have the package for SDL that matches mingw. I see a lot of complaints about the problems but no one has a general solution.

    32-bit windows exe:
    mingw-w64-i686-gcc
    mingw-w64-i686-sdl3

    64-bit windows exe:
    mingw-w64-x86_64-gcc
    mingw-w64-x86_64-sdl3

    64-bit windows ucrt (for when your using native windows cmd):
    mingw-w64-ucrt-x86_64-gcc
    mingw-w64-ucrt-x86_64-sdl3

    #programming #solodev #devlog #sdl3

  6. Today I ran into two issues with the SDL3 documentation.

    First is the intro to mingw. It guides the user to ucrt. Works great for x86_64 but the i386 libraries don't exist. Compiling with -m32 everything breaks.

    So you might as well compile SDL yourself. Great... except you have to know the secret to debloat the executable.

    Check this link out for more info:
    voxelmanip.se/2024/12/14/sdl-l

    #programming #sdl3 #devlog #solodev

  7. to sum up my past two weeks on my personal projects (aka why I've gotten even less done than normal)

    #sdl3 #imgui #fltk #programming #indiedev #gamedev #tooldev

  8. So some of you might write a "failure to initialize SDL" conditional like this...

    if( SDL_Init( SDL_INIT_VIDEO ) < 0 )
    { printf("failure"); }

    This isn't the right and proper way because SDL_Init returns a boolean.

    I thought "Now is a great time to do the right thing."

    So I wrote this, went to sleep and lost hours of my life debugging. See if you can spot the problem.

    if( SDL_Init( SDL_INIT_VIDEO ))
    { printf("failure"); }

    #programming #sdl3 #devlog #solodev

  9. I have an important update!

    The trick I used to get Make to compile the static libraries for SDL3 without CMake only seems to work for windows.

    As per the readme, the linux static sdl3 library does not appear to exist. If you're a linux user like me, you'll probably be used to shared libraries anyway.

    #programming #sdl3 #devlog #solodev

  10. I have important news!

    When you try to look for ways to statically link SDL3 using Make, all of the search results point to the cmake example here:
    wiki.libsdl.org/SDL3/README-cm

    Say good bye to the bloated build files because you don't have to use cmake at all!

    Instead you can just run:
    gcc <Source File> --static `pkg-config --cflags --libs SDL3 --static` -o <Output File>

    #programming #sdl3 #devlog #solodev

  11. Long shot, but is there anyone here who has used SDL3 and Emscripten or is familiar with building Emscripten from source?

    I had to get SDL3_TTF from a PR, and managed to build it with embuilder but so far when I try to build with -sUSE_SDL_TTF=3 it doesn't seem to acknowledge the option and if just complaining that it can't find SDL3/SDL_ttf.h

    What am I missing?

    (also if you don't know, sharing is caring)

    #sdl #sdl3 #emscripten #c #gamedev #programming

  12. So, for my vala game framework "Veggies" I have made a bit more complex sample game.

    This is "Shape Blaster" a very old 2013 demo from 'EnvatoTuts+' that was original med in XNA. So I converted it to my framework to test. Its not a full conversion, but good enough.

    I think this proves that a rather decent tiny game with extra oomph can be done in this framework 😀.

    Check out Veggies if you are curious:
    codeberg.org/edwood-grant/vegg

    #Vala #gamedev #engine #framework #indiedev #indiegame #SDL3 #sdl

  13. So, for my vala game framework "Veggies" I have made a bit more complex sample game.

    This is "Shape Blaster" a very old 2013 demo from 'EnvatoTuts+' that was original med in XNA. So I converted it to my framework to test. Its not a full conversion, but good enough.

    I think this proves that a rather decent tiny game with extra oomph can be done in this framework 😀.

    Check out Veggies if you are curious:
    codeberg.org/edwood-grant/vegg

    #Vala #gamedev #engine #framework #indiedev #indiegame #SDL3 #sdl

  14. So, for my vala game framework "Veggies" I have made a bit more complex sample game.

    This is "Shape Blaster" a very old 2013 demo from 'EnvatoTuts+' that was original med in XNA. So I converted it to my framework to test. Its not a full conversion, but good enough.

    I think this proves that a rather decent tiny game with extra oomph can be done in this framework 😀.

    Check out Veggies if you are curious:
    codeberg.org/edwood-grant/vegg

    #Vala #gamedev #engine #framework #indiedev #indiegame #SDL3 #sdl

  15. So, for my vala game framework "Veggies" I have made a bit more complex sample game.

    This is "Shape Blaster" a very old 2013 demo from 'EnvatoTuts+' that was original med in XNA. So I converted it to my framework to test. Its not a full conversion, but good enough.

    I think this proves that a rather decent tiny game with extra oomph can be done in this framework 😀.

    Check out Veggies if you are curious:
    codeberg.org/edwood-grant/vegg

    #Vala #gamedev #engine #framework #indiedev #indiegame #SDL3 #sdl

  16. So, for my vala game framework "Veggies" I have made a bit more complex sample game.

    This is "Shape Blaster" a very old 2013 demo from 'EnvatoTuts+' that was original med in XNA. So I converted it to my framework to test. Its not a full conversion, but good enough.

    I think this proves that a rather decent tiny game with extra oomph can be done in this framework 😀.

    Check out Veggies if you are curious:
    codeberg.org/edwood-grant/vegg

    #Vala #gamedev #engine #framework #indiedev #indiegame #SDL3 #sdl

  17. Here's a cool ting I managed to do for #gamedev in #vala with #sdl3

    Here's a screenshot of a simple SDL3 hello world. I know it doesn't look like much but the cool thing is that I managed to this from Vala, emitting C code, and then compiling with emcc.

    Now, there are caveats:

    1. Used "profile=libc" so it strips glib.h from the code.
    2. Used -DSDL_MAIN_USE_CALLBACKS when compiling, the SDL3 callback structure. This allows me to avoid empcripten binding (you could create one tho)

  18. Before jumping into more complex tasks (like stuff that I'd need to actually design, lol) I decided to implement a simple fog of war. Not too pretty, but works!

    I think FoW is one of the things that is actually easier to implement when not working with an engine, since you don't have to figure out layers and depths and such, just draw a bunch of black rectangles and that's it.

    #gamedev #sdl #sdl3

  19. So I ended up not doing traditional collision checking at all, but relying on flocking to keep the units from colliding and it's actually working pretty nicely!

    (re: working on a simple RTS game with C and SDL3)

    #gamedev #sdl #sdl3 #gameprogramming

  20. Hi stranger on the internet
    I'm learning #sdl, with C lang and I think it's pretty good, but I'm still new to #sdl3.
    Do you have any suggestions for me as a master of SDL?
    #code #suggestion #advice #programmer #programming #help #c #cpp #clang #gcc