ohai.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A cozy, fast and secure Mastodon server where everyone is welcome. Run by the folks at ohai.is.

Administered by:

Server stats:

1.8K
active users

#sdl

1 post1 participant0 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.

FLOWBLADE 2.20 released. This powerful video editor now uses SDL2 video playback for Flatpak on all systems with MLT 7.30 or higher. But video playback for native Wayland without XWayland or for GTK4 does not currently seem possible with 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.

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.

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.