Home / Forums / Multi-Window Docking & Viewports in Dear ImGui (docking branch) [Discussion #2]

UnreliableCode Community

Developer Research, Reverse Engineering & Coding Community

Tutorial

Multi-Window Docking & Viewports in Dear ImGui (docking branch) [Discussion #2]

NativeCoder
Low-Level C++ / ASM
VIP
Rep: 374
Join Date: Jun 2025
Posts: 12
Thanks: 20
2y ago · May 13, 2024 9:00 AM
#1
How to set up the Dear ImGui docking branch with ImGuiConfigFlags_DockingEnable and ImGuiConfigFlags_ViewportsEnable to drag windows outside the main game window.
NativeCoder · Low-Level C++ / ASM
Passionate about cache locality, SIMD instructions, and raw ...
The following users thanked NativeCoder for this post:
BlazorKing
Full-Stack C#
MEMBER
Rep: 199
Join Date: Oct 2023
Posts: 6
Thanks: 26
2y ago · May 13, 2024 12:31 PM
#2
Setting up viewport platform bindings allows ImGui windows to become independent floating OS desktop windows with their own HWNDs.
BlazorKing · Full-Stack C#
Building real-time web applications and desktop tools with B...
ShaderGuru
HLSL & GLSL Shader Dev
MEMBER
Rep: 219
Join Date: May 2024
Posts: 6
Thanks: 62
2y ago · May 14, 2024 5:31 PM
#3
The docking layout persistence via imgui.ini makes tool dashboards remember user window arrangements across restarts.
ShaderGuru · HLSL & GLSL Shader Dev
Post-processing shaders, stencil buffer tricks, and screen-s...