dearimgui / dear_bindings

C header (and language binding metadata) generator for Dear ImGui
MIT License
221 stars 12 forks source link

Add support for imgui_internal.h #9

Open ocornut opened 2 years ago

ocornut commented 2 years ago

Untested but Ben mentions this is still WIP

ocornut commented 1 year ago

Errors preventing cimgui_internal.h to be parsed (this is before attempting to compile cimgui_internal.cpp)

ZimM-LostPolygon commented 9 months ago

Was this abandoned? If not, is there any way to test it out? Doesn't seem like headers for imgui_internal.h are generated as of now

ocornut commented 9 months ago

The idea is that you’d need to run dear bindings on this specific header rather than imgui.h.

It doesn’t work yet. IMHO this is the most important feature ahead but this is being developed in spare time. Feel free to help fixing things if you can.

Extra thought: due to the nature of internals i guess the generator could be tweaked to not emit the non-Ex/Ex functions.

ZimM-LostPolygon commented 9 months ago

Extra thought: due to the nature of internals i guess the generator could be tweaked to not emit the non-Ex/Ex functions.

Had the same thought. The non-Ex/Ex split makes it right more annoying, since C# supports default arguments just fine, and the variant with implied default values won't probably even be referenced by the wrapper.

ocornut commented 8 months ago

Did you meant to close this? I guess it's part of #47 ? When #47 makes progress it may make sense to enable it on CI ?

ShironekoBen commented 8 months ago

Oops, no, I didn't notice it's linked to #46 as well so when I merged that it got closed. I'll reopen until we get #47 all sorted out!