How do I use IMGUI with multiple GLFW windows? I know Dear IMGUI already has a virtual viewport system going in the viewport branch but I found that to be lacking a bit on how to use this new system.

To accomplish this would you share a single GLFWwindow context and using that for a single IMGUI context? Would there be any disadvantages to using this approach?

  • \$\begingroup\$ I haven't tried this but I would start by making an ImGuiContext for each and initialising with the GLFWwindow per gui context. It looks like the major factor is font resources across contexts. \$\endgroup\$ – Jay Jan 19 at 3:40
  • \$\begingroup\$ You wouldn't share a unique window context to imgui if you have multiple GLFWwindows. You would probably need to create a unique Imgui context and share it between windows \$\endgroup\$ – Gabriele Vierti Jan 19 at 7:37

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.