How do I generate bindings for a GLFW fork?

Started by Cosmo0, November 24, 2016, 11:05:34

Previous topic - Next topic

Cosmo0

Hello,
I've been doing some work on a private fork of GLFW and I was wondering how I could use the LWJGL source generator to generate java bindings for it. Is this fairly straightforward?

Thanks for the help!

spasi


Cosmo0

Yeah there are a few new functions added to glfw3.h

spasi

The easiest solution would be to modify the existing bindings. Most of the API is defined in GLFW.kt. Try to add the new functions there and if you have any trouble, reply here or join our slack team and PM me.

Now that LWJGL is modular, you can simply replace the GLFW classes and shared libraries with your own, while using the official release for the rest.