#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) #define _CRT_SECURE_NO_WARNINGS #endif #include #include bool _running = false; void debug_window(void) { if (!_running) return; ImGui::Begin("Hello, World!", &_running, ImGuiWindowFlags_NoCollapse); ImGui::Text("Welcome to Dear ImGui!"); ImGui::End(); } void open_window(void) { _running = true; }