I would advise glancing then ignoring 'viewport' branch for now, because it really makes things a little more complicated, and having a working Metal renderer in 'master' would be immediately and readily useful as a first step.
-
-
Here’s a look at my Metal renderer’s progress. Will support iOS and macOS with the same source soon. https://github.com/warrenm/imgui/blob/metal/examples/imgui_impl_metal.mm …pic.twitter.com/myOMT4eEGl
3 replies 2 retweets 28 likes -
I tidied up the project directories a bit and got to feature parity on iOS. I’m not thrilled with the API (context is tightly bound to a single layer, Render takes two additional params…), but we’re getting there.pic.twitter.com/iZCAvUnsl8
1 reply 0 retweets 3 likes -
Thanks! Can't comment on Metal usage. The ideal is to maximize the amount of stuff that people can reuse directly (aka imgui_impl_metal) in their existing codebase, so additional params are totally ok, probably better to be explicit if it provides more flexibility?
1 reply 0 retweets 1 like -
Do think imgui_impl_osx.mm is not useful then? or hadn't had time to look at it? (I'll ditch the icons and replace them with empty and optimized PNG files before squashing+merging so it doesn't get added to git repo size, they are not needed)
1 reply 0 retweets 0 likes -
In my rush to get my renderer feature-complete, I haven’t had time to take a look, but I’ll do so now.
1 reply 0 retweets 1 like -
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)?
1 reply 0 retweets 0 likes -
Replying to @warrenm
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).
1 reply 0 retweets 0 likes -
Replying to @ocornut
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 …
1 reply 0 retweets 0 likes -
Replying to @warrenm
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?
2 replies 0 retweets 0 likes
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.
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.