yoyo_card/game/src/debug.cpp

23 lines
No EOL
408 B
C++

#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <imgui.h>
#include <cmath>
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;
}