r/cpp • u/grafikrobot OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 • Jan 22 '25
SDL3 is officially released! It's version 3.2.0 stable.
https://www.patreon.com/posts/sdl3-is-released-12049141626
6
u/germandiago Jan 23 '25
Congrats, this lib is amazing, I have been using it for years and it has served me very well, particularly when it comes to different platforms support.
16
4
2
2
u/nekokattt Jan 22 '25
Was 3.1 not stable?
10
u/gmes78 Jan 23 '25
They do the thing where odd minor release numbers are development releases and even minor release numbers are stable releases.
2
1
2
4
u/lingua_franca Jan 22 '25
isn't it a C lib?
73
u/STL MSVC STL Dev Jan 22 '25
Yes, but it's important enough to C++ that I'm going to rule this as on-topic.
41
u/ForgetTheRuralJuror Jan 22 '25 edited Jan 23 '25
It's probably used by most games written in C++ that don't use an engine, at least for windowing / events. I know I've already been playing around with SDL3. Very excited
16
Jan 22 '25
It is and it isnβt, itβs used by Valve in all of their major games (which are mostly written in C++).
6
-8
u/germandiago Jan 23 '25
This is a Rust and C forum, didn't you notice lately? :D
JK. C libs can be consumed from C++ so I guess it is relevant enough.
1
u/sapphirefragment Jan 23 '25
The audio changes are really nice, but I can't help but wonder if opening multiple logical audio devices on a single physical device will introduce additional latency because of an implicit mixing buffer.
1
u/finleybakley Jan 23 '25
Oh this looks absolutely fantastic. I've been excited since development was announced but had decided to wait until official release to look into the new additions. The file dialog API alone sold me.
But the built in event callbacks? Absolutely brilliant addition. It'll be great for designing GUIs with SDL. I wonder if there will be an SDL-specific Bind function to bind functions to these event callbacks, similar to event callback handling in wxWidgets π€
1
1
u/ReDr4gon5 Jan 23 '25
Does SDL have a C++ api with overloads of operators like Raylib recently added? Or is it pure C?
0
Jan 22 '25
[deleted]
20
u/ForgetTheRuralJuror Jan 22 '25 edited Jan 22 '25
Give SFML a try.
0
Jan 22 '25
[deleted]
2
1
u/julien-j Jan 23 '25
Axmol maybe? It has those nice features (spritesheets, animations, particles, etc.) Its design suffers a bit from the excess of OOP but you can somewhat use it as a tool in your game rather than shoehorning your game in the tool.
17
u/GaboureySidibe Jan 22 '25
Why are you in an SDL release thread complaining that everything is too low level for you? No one is telling you to use this. I'm not going in to an FPGA forum and posting comments about how I don't want to make my own circuits.
Go try out love2d
0
Jan 23 '25
[deleted]
2
u/GaboureySidibe Jan 23 '25
No one is offended, you are just selfishly off topic.
Go to a subreddit about grilling meat and post "this isn't for me, I'm a vegan, anyone know any vegan recipes and vegan foods?" and people would probably wonder why you thought that was a good idea too.
0
Jan 23 '25
[deleted]
2
u/GaboureySidibe Jan 23 '25
Yes, it's off-topic for an SDL release thread,
So do it somewhere else, stop wondering why you got downvoted, stop calling people "offended" and move on.
The question might have been better suited for /r/gamedev,
The question could have been fine in /r/cpp if it was its own thread.
I enjoy C++ and was looking for a C++ based thing on C++ subreddit.
You realize you can post your own threads right?
0
Jan 23 '25
[deleted]
3
u/GaboureySidibe Jan 23 '25
I don't know why you're digging in so much and getting so upset, just learn from this and move on.
4
2
2
u/TryingT0Wr1t3 Jan 22 '25
Monogame or the one from filitijibo - I don't remember how to spell the username and forgot the name but someone will say it.
1
2
u/FrostWyrm98 Jan 22 '25
You can call C/C++ code from C#, Unity uses C++ under the hood for example. A library like P/Invoke does that
There are nuget packages for SDL2 that wrap those calls so you can use it easier as well
https://github.com/flibitijibibo/SDL2-CS
Was one example I found off Google, I remember seeing a lot more when I searched nuget (package manager) a few years ago
1
1
29
u/genpfault Jan 22 '25
https://github.com/libsdl-org/SDL/releases/tag/release-3.2.0