LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Misterpin on March 07, 2018, 18:23:20

Title: How to add new bindings to LWJGL 3? [solved]
Post by: Misterpin on March 07, 2018, 18:23:20
Hello! Can I make bindings in lwjgl myself?
Thank you!
Title: Re: How to add new bindings to LWJGL 3?
Post by: spasi on March 07, 2018, 19:07:34
Yes, you can. This is (https://github.com/LWJGL/lwjgl3/commit/84364eecb89469711cdf405d7d803cbab5eaa749) the latest commit that adds a new binding. It should give you a feel of how much work is needed and which files must change in LWJGL.

Some kinds of bindings are more difficult than others, and may require more elaborate setup. My advice is: find an existing binding that is similar to the one you want to add, copy its structure and slowly adjust it to the new binding, while monitoring the generated output. It will give you a good feel of what changes in the Kotlin templates produce what C/Java output.

Finally, I'm always available on slack (https://slack.lwjgl.org/) if you need help with anything.
Title: Re: How to add new bindings to LWJGL 3?
Post by: Misterpin on March 07, 2018, 19:39:07
Thank you!