Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example app/lib for using the .json metadata #40

Open
ocornut opened this issue Sep 14, 2023 · 3 comments
Open

Example app/lib for using the .json metadata #40

ocornut opened this issue Sep 14, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@ocornut
Copy link
Member

ocornut commented Sep 14, 2023

It feels that one thing which is lacking in this project is an actual example app/framework for using the JSON output and creating a backend out of it.

It'd be interesting an interesting experiment to confirm confirm that cimgui.h could be regenerated exactly the same from the JSON output.

Ideally that example may be a defactor framework to start working from to create other bindings.

In such scenario, for clarity I imagine the folder structure might be reworked, e.g. examples_app/ vs examples_binding_generator/.

@ocornut ocornut added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 14, 2023
@ShironekoBen
Copy link
Collaborator

Yeah, I like that idea. I'd been wondering about doing a C# wrapper as an experiment (and because I occasionally find myself wanting one), so that might make a good test-case.

@Ldash4
Copy link

Ldash4 commented Sep 20, 2023

In case it is useful as a reference, here's a bindings generator that I've written for Odin: https://gitlab.com/L-4/odin-imgui
It's reasonably fully featured, and supports both docking and master. This project has been extremely useful!
In particular you may be interested in gen_odin.py and imgui/imgui.odin.
I can say from experience that we're still a bit away from being able to reconstruct cimgui.h char for char, in particular I've had to reimplement comment alignment, which obviously then isn't the same as in the source.

@ocornut
Copy link
Member Author

ocornut commented Sep 21, 2023

(FYI added a wiki page https://github.com/dearimgui/dear_bindings/wiki/Software-using-Dear-Bindings to list this and others as we find them + added link in readme)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants