This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The DockBuilder API is still marked as experimental, include Dear ImGui's internal header to pull the functions in: | |
#include "imgui_internal.h" | |
// [...] | |
// Beginning of main loop | |
// 1. DockBuilder functions only need to run once to take effect. | |
// This state variable will let us check for the first frame of the app. | |
static bool firstLoop = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CHANGES MADE: | |
// Added more clarifying comments inside the function. | |
// Removed MSVC warning C6011 - null pointer dereference. | |
// Fixed a slight grammar error - "This demo app only demonstrate" => "This demo app only demonstrates" | |
// Demonstrate using DockSpace() to create an explicit docking node within an existing window. | |
// Note: You can use most Docking facilities without calling any API. You DO NOT need to call DockSpace() to use Docking! | |
// - Drag from window title bar or their tab to dock/undock. Hold SHIFT to disable docking. | |
// - Drag from window menu button (upper-left button) to undock an entire node (all windows). | |
// About dockspaces: |