-
This wrapper was created at a time when there was no working alternative for me and my project. Yet other projects also moved on, and so we have projects like https://github.com/cimgui/cimgui , which are based off of a generator using meta-data. Slight side-step: Most of us using And this is what I am wondering about While a curious idea to tinker on, this wrapper generator is probably nothing I'd do on my own. Yet with this question I am trying to seed this idea, which might be picked up by some - and by extend then gives answer to the original question: Is there continued need for this hand-crafted wrapper? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
I've been thinking about this for a while and have done a few experiments. It's definitely possible, and it would make it much easier to support all features, new features, and even some of the special branches (like docking)! Unfortunately, it's not the easiest generator to build. Some of the problems I've seen so far:
All can be solved, but I'm starting to think a hybrid approach might make sense; re-use large parts of |
Beta Was this translation helpful? Give feedback.
-
I've taken another look at this. Currently just investigating if it would be easy to replace all the What's great about this is that since it's the same imgui.cpp underneath, the migration doesn't have to be completed in a single change! |
Beta Was this translation helpful? Give feedback.
-
Looks like Allen Dang has made this in the meantime! |
Beta Was this translation helpful? Give feedback.
-
I finally had some time to play around with cimgui-go and looked at what's needed to replace The current implementation uses imgui's GLFW backend, so it comes with a hard dependency on GLFW. I've also rewritten the imgui-go-examples to use the new library, and the conversion is almost seamless ( |
Beta Was this translation helpful? Give feedback.
-
@ptxmac I'm trying to generate a convinient version of function with default arguments, seems like 90% of functions could be generated. |
Beta Was this translation helpful? Give feedback.
Looks like Allen Dang has made this in the meantime!
https://github.com/AllenDang/cimgui-go