-
As I understand it, using multiple viewports is kind-of shaky in imgui, especially in linux, but I'd really like to do it anyway. Unfortunately, it isn't very clear to me how I can actually achieve this. I've been trying to glue something together via Currently, my approach is as follows: imgui.IO.SetConfigFlags(*imgui.CurrentIO(), imgui.ConfigFlagsViewportsEnable) Then, at the end of the main loop, do this: imgui.UpdatePlatformWindows()
imgui.RenderPlatformWindowsDefault() I believe that the crucial parts missing here, at least according to the GLFW-backend examples of how to do this in I'm also unsure whether the backend is platform-dependent; while I am on Linux, the tools I am building are for people who run Windows and MacOS, so perhaps I will need to call different functions depending on the platform? Guidance would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Generally you shouldn't need all of that as |
Beta Was this translation helpful? Give feedback.
Generally you shouldn't need all of that as
ViewportsEnable
is set by default in glfw backend