mastodon.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
The original server operated by the Mastodon gGmbH non-profit

Administered by:

Server stats:

351K
active users

#sdl3

2 posts2 participants0 posts today

So I just moved the #SDL3 #vala vapis to @Codeberg migrating from Github was actually pretty easy!

codeberg.org/edwood-grant/sdl3

I also added a new GPU rotating colored cube example. So this makes the whole thing a bit more complete 😛.

I will probably just make the github repo either a mirror or just leave a message on top pointing the the actual repo in codeberg.

I mean it makes sense to have this project outside of big tech. I feel that, at least for me, is important.

I was thinking of moving the #sdl3 #vala vapis onto ether sourcehut or codeberg...

I mean if the main objective is to really divest as much as possible from big tech, github must be one of those.

I was thinking to leave codeberg for public projects and pay of sourcehut for private repos. Makes sense in general.

I would probably leave a github mirror for the vapis for the sake of availability, but in the end just trying to divest as much as possible from US hosted tech.

Muahahaha! Working on the #sdl3 #vala Vapis

So, after changing a bunch of things in the vapis, pulling my hair understanding the SDL3 GPU (is this one of the easy ones? by the gods!), and ensuring things are actually working in the vapi.

But I finally did it. I got the SDL TTF GPU test program work on vala! It needs a ton of cleanup and put in comments, but it works!!! 🎉.

It took me a while because Graphics are hard to grasp, and also real life. I'll upload it as soon as I can. #gamedev #sdl

Woot! Managed to compile and run the first GPU sample in #sdl3 and #vala

It took me a while to fix some structs and stuff in the binding and understand better ownership of everything in vala, especially when pasing things like structs to arrays and whatnot.

But at least it works now! Not sure about leaks but oh well, I'll check later.

I'm going to rest now and later clean it all up and upload to the repo, but feel accomplished in making it work. 😀

I'm getting clobbered trying to implement the #sdl3 #vala bindings GPU samples. I'm adapting/stealing them from TheSpyDog's SDL GPU samples github.

Not a graphics programmer and relatively new to vala, so its been interesting.

Was getting a crash and I forgot that I can debug the executables with GDB on terminal, which is nice.

Ran GDB, one look at the stack and the line of code and the solution was obvious lol. This happens because I'm a caveman and I rarely use a debugger.

A bunch of more news! From the #sdl3 #vala bindings workshop!

SDL_ttf has been implemented! 🎉

I even added a simple example that shows fallback emoji fonts!

This needs more examples though to really show how to use SDL_ttf on Vala with better feature like test engines, GPU and more.

Check it out here: github.com/edwood-grant/sdl3-v

Vala bindings for SDL3. Contribute to edwood-grant/sdl3-vapi development by creating an account on GitHub.
GitHubGitHub - edwood-grant/sdl3-vapi: Vala bindings for SDL3Vala bindings for SDL3. Contribute to edwood-grant/sdl3-vapi development by creating an account on GitHub.

Ok! Three things about the #SDL3 #vala vapi bindings.

1. I updated it with some fixes and decisions made around some enums that have some aliases and "break" the to_string () method.

2. SDL_Image was released a while ago!

3. It was actually easy to implement in the vapi! This means that SDL3_Image is now implemented as a new vapi file!!

You can use SDL Image by adding the sdl3-image package and use the SDL3.Image namespace.

You can check that out now!

github.com/edwood-grant/sdl3-v

Vala bindings for SDL3. Contribute to edwood-grant/sdl3-vapi development by creating an account on GitHub.
GitHubGitHub - edwood-grant/sdl3-vapi: Vala bindings for SDL3Vala bindings for SDL3. Contribute to edwood-grant/sdl3-vapi development by creating an account on GitHub.

Folks! Finally! I have published the #sdl3 #vala bindings! I'm a bit scared, I have never released bindings to the public. github.com/edwood-grant/sdl3-v

There are samples, some tests have been made, and some paltry docs can be generated.

Is this perfect? Not at all, is likely having tons of problems somewhere within many calls I haven't tested at all.

But it's usable, at least for the basic SDL3 samples. Any contributions, issues, PR, whatever your mind can think of are very welcome.

Vala bindings for SDL3. Contribute to edwood-grant/sdl3-vapi development by creating an account on GitHub.
GitHubGitHub - edwood-grant/sdl3-vapi: Vala bindings for SDL3Vala bindings for SDL3. Contribute to edwood-grant/sdl3-vapi development by creating an account on GitHub.

Last week on the stream, I wired up #SDL3 to #DotNet and got my podcast application, #FeedzApp, playing audio on every platform SDL supports (read: all of them).

Tonight, at roughly 8:30 PM Eastern, I'll be putting together an #AvaloniaUi view to control the audio playback, again, live on stream!

twitch.tv/b4ux1t3

And since it's been asked on the stream: No, I don't use any LLM-based tools, at all. Literally zero. Not even as a search aid.

Every bit of code you see on the screen is code I wrote myself, and I'm happy to explain any line!

Twitchb4ux1t3 - TwitchA software developer and gamer of pretty freaking average proportions!

The writing of the whole #sdl3 Vapi for #vala is done!

Now, is it working? Well I started to port the SDL3 examples browser to find out.

There were some snags about truly learning about CCode attributes (oh, so that's why SimpleType and Compact exist! Or my favorite: I forgot to put has_type_id=false everywhere!)

But the goods news is that the render examples are all complete! I need to check more stuff and finish the current samples but it's very close to release!

Got news! The #sdl3 #vala VAPI is going well!

Only two files left to translate: SDL_audio.h and SDL_gpu.h admittedly the newer stuff. I feel this is getting close to finally release it somewhere.

Is it perfect? No way, it's highly likely borked in places. But it's a start to begin fixing things and receive help from more capable people 😀.

Not sure where to put this... I know Gnome has a GitLab… or maybe just on GitHub? Not sure about it.

Anyway, feeling good about this one.

In my work creating the #SDL3 bindings for #vala, I noticed for example stdinc.h. It's huge! And some of it makes little sense to adapt to #vala.
I understand the goal, and it's to provide a full translation of the standard c library so you can compile SDL even in places where there is no std. Thus to bring truly full portability.
But it makes little sense in vala. It already has glibc behind. But then what would be a really necessary addition? It can be complex to do it right. 1/2
#sdl #gamedev

#AvaloniaUI folks: have you ever played audio from your Avalonia application?

I need to find a library that works on every platform that Avalonia supports (except, I guess, taizen).

I'm leaning toward #SDL3, since I know there are semi-official bindings and I have experience with it in c++ land, but I'm open to hearing what other folks have used.