-
Notifications
You must be signed in to change notification settings - Fork 53
Description
Dear Imgui provides a win32 wndproc handler via ImGui_ImplWin32_WndProcHandler, which helps imgui integrate with a win32 event loop and support things like user input.
The Dear Imgui distribution disables that function with a #if 0 to avoid depending on windows.h at build time. There must be some reason why they haven't used void* and other equivalent types for it, but I'm certainly not knowledgeable enough to know it.
Though I think that with zig's build system, zgui might be able to provide that function for win32 targets, especially since there already is zwindows providing those types on the zig side. (It's on the CPP compilation side that I think complications arise :/ )
Has this been discussed before?
What options are there?
As it is, all zgui samples using a win32 event loop have a rather poor end user experience. Unless I'm missing something.