ImGui.NET icon indicating copy to clipboard operation
ImGui.NET copied to clipboard

ImGui Viewports (Multi-Windows)

Open Pastor111 opened this issue 3 years ago • 6 comments

Hi, i would like to ask if someone knows how to take advantage of the imgui viewports with imgui

Pastor111 avatar May 25 '21 17:05 Pastor111

Checkout the docking branch.

zaafar avatar May 25 '21 21:05 zaafar

Thank you for the suggestion, it almost worked but for some reason i get a System.AccesViolation

Pastor111 avatar May 26 '21 15:05 Pastor111

I just cloned the repository on a newly installed windows and changed to the docking branch and compiled/executed the ImGui.NET.SampleProgram application. Everything is working fine.

zaafar avatar May 27 '21 17:05 zaafar

I'm confused by this... the master branch does have docking support (after enabling the ImGuiConfigFlags.DockingEnable flag, or via the demo window), but viewport support doesn't work for me. The docking branch has both working right out of the box without touching anything... so which branch is the preferred one? I know the docking branch has been the preferred one in vanilla imgui for years now, but if ImGui.NET supports docking in master, does it make any sense to have both branches anymore?

benblo avatar May 11 '22 09:05 benblo

@benblo Right, there's no difference in the native bindings between the master branch and the docking branch anymore, and the version in the NuGet package supports both docking and multiple viewports by default. The only remaining difference is that the Veldrid renderer in the docking branch supports multiple viewports, and in the master branch it doesn't.

mellinoe avatar May 12 '22 04:05 mellinoe

@mellinoe cool! I'm working off of the docking branch now, and everything is peachy. Please see PR #321 for more info.

benblo avatar May 13 '22 16:05 benblo