-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add support for imgui_internal.h #9
Comments
Errors preventing cimgui_internal.h to be parsed (this is before attempting to compile cimgui_internal.cpp)
#ifndef ImQsort
CIMGUI_API void cImQsort(void* base, size_t count, size_t size_of_element, int (* IMGUI_CDECL compare_func)(void const*, void const*));
#endif // #ifndef ImQsort For now I've removed this function (the "right" fix would be to remove both
// Helper: ImGuiTextIndex<>
// Maintain a line index for a text buffer. This is a strong candidate to be moved into the public API.
typedef struct ImGuiTextIndex_t
{
ImVector<int> LineOffsets;
int
EndOffset
} ImGuiTextIndex; Removed the type, however the "right" fix here would be to emit a
CIMGUI_API explicit ImVec2ih_ImVec2ih(ImVec2ih* self, ImVec2 rhs);` I hackily removed this however it seems to be parsing error chocking on |
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 |
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. |
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. |
Closing this as #47 implements |
Untested but Ben mentions this is still WIP
The text was updated successfully, but these errors were encountered: