Thank you, much appreciated! There's an OSX branch with a imgui_impl_osx.mm that implements the OSX side of things maybe useful to look at (ideally imgui_impl_osx.mm would combine with Metal/GL/Vulkan bindings) and some infohttps://github.com/ocornut/imgui/issues/1873 …
I think this is still very useful; it’s nice to have the IO stuff factored separately, and I think it’ll work nicely with the Metal renderer. My only concern is the coupling to NSOpenGLView; it doesn’t seem essential (could just be NSWindow)?
-
-
Yes this probably ought to be fixed. The whole _osx.mm codebase probably needs feedback from actual Apple users (it's not merged because unfinished and had no one looking at it, if it plugged nicely into e.g. your example I would merge it).
-
I created a metal-on-osx branch from my metal branch that incorporates impl_osx with some changes (flipped coords, removed ref to NSOpenGLView, small tweaks to mouse handling) and it’s looking viable. Feel free to pull and test (still WIP, though): https://github.com/warrenm/imgui/tree/metal-on-osx …
-
Thanks! Does the event handling design looks decent to you? As in, possible to plug in the http://osx.mm code in a casual codebase?
-
I think so. It requires you to wire up a tracking area for mouse events and a “local monitor” for key events, as shown in the example, but it’s not too much code.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.