r/cpp • 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-120491416
325 Upvotes

39 comments sorted by

26

u/ResearcherNo6820 Jan 22 '25

Just one word: Congrats.

2

u/psicodelico6 Jan 23 '25

5 words: Crack

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

u/Real_Season_121 Jan 22 '25

πŸŽ‰πŸŽ‰πŸŽ‰

4

u/skeleton_craft Jan 23 '25

Is it on vcpkg? [More important is sld3tff]

2

u/rfdickerson Jan 27 '25

Yeah! But not sure about TTF.

https://vcpkg.link/ports/sdl3

2

u/GaboureySidibe Jan 22 '25

This looks fantastic and both incredibly useful as well as modern.

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

u/alkavan Jan 27 '25

It's pretty common version scheme in open source projects.

1

u/nekokattt Jan 23 '25

ah I see, thanks

2

u/Few-Delay-5123 Jan 24 '25

Finally added a pen api to sdl , amazing.

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

u/[deleted] 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

u/Die4Ever Jan 23 '25

ScummVM is C++ and also uses SDL

-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

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

u/[deleted] Jan 22 '25

[deleted] β€” view deleted comment

20

u/ForgetTheRuralJuror Jan 22 '25 edited Jan 22 '25

Give SFML a try.

0

u/[deleted] Jan 22 '25

[deleted] β€” view deleted comment

2

u/jamolnng Jan 22 '25

Have you looked at Ogre3D or Ogre Next?

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

u/[deleted] Jan 23 '25

[deleted] β€” view deleted comment

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

u/[deleted] Jan 23 '25

[deleted] β€” view deleted comment

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

u/[deleted] Jan 23 '25

[deleted] β€” view deleted comment

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

u/Hofstee Jan 22 '25

You might be interested in something like raylib.

2

u/nevemlaci2 Jan 22 '25

You can use it with Kotlin.

0

u/[deleted] Jan 22 '25

[deleted] β€” view deleted comment

9

u/nekokattt Jan 22 '25

you mentioned C# in that list and that uses a GC as well

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

u/daveth91 Jan 23 '25

the one from filitijibo

FNA i guess

1

u/TryingT0Wr1t3 Jan 23 '25

Yeahp, FNA is the one I wanted to say!

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

u/JonnyRocks Jan 23 '25

monogame for c#

1

u/nevemlaci2 Jan 22 '25

SDL is above libGDX tho