> You might have a better experience with Futhark - > <https://github.com/PMunch/futhark> It's a tool that generates complete > bindings to C libraries automagically.
I just tried this and it works like a charm! I replaced both stb_image and stb_truetype with this, had to rewrite the code a bit (lots of ugly casting and things like that), but it works. Now it's up to me to write a wrapper to get rid of all the ugliness I guess.