Hello Guest

How to add new bindings to LWJGL 3? [solved]

  • 2 Replies
  • 287 Views
How to add new bindings to LWJGL 3? [solved]
« on: March 07, 2018, 18:23:20 »
Hello! Can I make bindings in lwjgl myself?
Thank you!
« Last Edit: March 15, 2018, 15:52:51 by Misterpin »

*

Offline spasi

  • *****
  • 2006
    • WebHotelier
Re: How to add new bindings to LWJGL 3?
« Reply #1 on: March 07, 2018, 19:07:34 »
Yes, you can. This is 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 if you need help with anything.

Re: How to add new bindings to LWJGL 3?
« Reply #2 on: March 07, 2018, 19:39:07 »
Thank you!