On Monday, 31 August 2020 at 16:56:45 UTC, Danny Arends wrote:
On Monday, 31 August 2020 at 15:16:40 UTC, Ferhat Kurtulmuş wrote:
On Monday, 31 August 2020 at 14:04:19 UTC, Danny Arends wrote:
[...]

I have never tried, but this repo may help. I know that it supports d.

https://github.com/Dav1dde/glad

You can create your modules online too.
https://glad.dav1d.de/

Thanks, it seems to generate most of the bindings, even though the D branch of the repo is 5 years stale.

It doesn't provide an example on how to load them (only c and c++), and since the (generated) loader isn't implemented, but just an alias to some unknown function:

alias Loader = void* delegate(const(char)*);

I really love to have the bindings in bindbc, due to their nogc and nothrow attributes.

It might be a useful addition to make D more compatible with the android eco-system

Danny

If you have some super boring time to spent, you can convert derelict one to bind-bc. Once I did it for a relatively small library (derelict-nanovg -> bindbc-nanovg).

Reply via email to