News for hackers. Stuff that matters.
Re:SDL2 common mistakes and how to avoid them by jalino23 on Sunday January 08, 2023 @09:54AM (#34299567)
my problem with learning sdl2 is every article I’ve encountered already assumes I know sdl2. but I could hardly find documentation to grok it.

if I have to read the source code for it. what prereq knowledge do I need if I’m from a web dev background trying to build graphical desktop apps with sdl2

Re:SDL2 common mistakes and how to avoid them by krapp on Sunday January 08, 2023 @07:11PM (#34304933)
If you can get past the layout, one of the best online resources for learning SDL are Lazyfoo's tutorials[0] and maybe Parallel Realities[1].

But SDL is too low level to consider as a framework for GUI, it's basically a cross platform library for hardware (screen, graphics, input, audio) and event handling. You're still going to have to write everything yourself.

You should at least know C or C++, although there are ports to several languages, and several GUI frameworks like Dear ImGui and I think Pygame use SDL in the background.

[0]https://lazyfoo.net/tutorials/SDL/

[1]https://www.parallelrealities.co.uk/tutorials/

Re:SDL2 common mistakes and how to avoid them by jalino23 on Sunday January 08, 2023 @10:14PM (#34306279)
thank you so much for this!!! this is invaluable!