vurtun / nuklear

A single-header ANSI C gui library
13.69k stars 1.11k forks source link

LWJGL's Nuklear bindings for Java #385

Open dustContributor opened 7 years ago

dustContributor commented 7 years ago

Hi! I see that you list Java bindings in your readme which seem to be outdated (updated a year ago).

LWJGL project (which has tons of bindings, like OpenGL, OpenAL, Vulkan, etc) has added Nuklear bindings a while ago, and they're updating frequently, it'd be nice if you could link to them too:

https://github.com/LWJGL/lwjgl3

vurtun commented 7 years ago

From a quick glance this seems like a big library with tons of different bindings of common C/C++ libraries and not specifically nuklear (I couldn't even find nuklear in this project). In general I don't have anything against linking to it as a reference but I don't know if I would classify it as a specific binding.

dumblob commented 7 years ago

We can always add another section to the README reading e.g. Other projects using Nuklear.

Spasi commented 7 years ago

I couldn't even find nuklear in this project

Hey @vurtun, I'm the maintainer of LWJGL. The Nuklear bindings are mentioned in the project root, in the table of Graphics libraries. Our build configurator lets you customize the LWJGL binaries to only include libraries you're interested in, you can find Nuklear there as well.

The bindings are here. They are written in Kotlin, which is used offline only to generate the Java and corresponding JNI code. They are reasonably up-to-date, much more so than nuklear4j.

Demos that use the Nuklear bindings are here.

The generated code is kept in a separate repo. Java code here and C code here.