How I can destroy imgui window by clicking X
void test::OnUIRender()
{
bool state;
ImGui::Begin("test_test", &state);
if (ImGui::Button("test"))
{
ImGui::DestroyContext();
}
ImGui::End();
}
How I can destroy imgui window by clicking X
void test::OnUIRender()
{
bool state;
ImGui::Begin("test_test", &state);
if (ImGui::Button("test"))
{
ImGui::DestroyContext();
}
ImGui::End();
}