I started working on these bindings for a personal project, and maybe they could be of help to someone.
I still need to make a better wrapper, but it’s starting to work.
I tried to use crystal_lib to generate the bindings, and even though it generated 90% of the bindings, in this case it didn’t get some structs and typedefs that I fixed/added. Is there an alternative generator?
Repo: GitHub - guidipolito/nuklear-cr: Nuklear Crystal lang bindings for SDL3 backend · GitHub
Awesome! May be a good idea to repost it on this GUI dev thread
Good suggestion, I didn’t see that thread, I’m making some changes, and soon I think I should have some better screenshots/prototypes to show since I could get it working well with SDL3 and Opengl 3 and also made bindings for CGltf.
If I’m lucky, I’ll also have a prototype working on Webgl.
Update: I’m still working on the wrapper (I’ve made some progress) and I have also started writing the documentation at Nuklear-cr .
For supporting multiple backends, my plan is to provide separate requires for each backend that would link to different .libs.
For example, if you’re building an application with OpenGL 3, you would use:
require "nuklear/libnuklear_sdl3_opengl3"
If you’re using the SDL3 Renderer backend instead, you would use:
require "nuklear/libnuklear_sdl3_renderer"
Print on opengl and also using the cgltf binding I started