mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Marked the weird IMGUI_ONCE_UPON_A_FRAME helper macro as obsolete. prefer using the more explicit ImGuiOnceUponAFrame. Removed the broken __LINE__ from IMGUI_ONCE_UPON_A_FRAME
This commit is contained in:
@ -308,14 +308,11 @@ void ImGui::ShowTestWindow(bool* p_open)
|
||||
ImGui::EndTooltip();
|
||||
}
|
||||
|
||||
// Testing IMGUI_ONCE_UPON_A_FRAME macro
|
||||
// Testing ImGuiOnceUponAFrame helper.
|
||||
//static ImGuiOnceUponAFrame once;
|
||||
//for (int i = 0; i < 5; i++)
|
||||
//{
|
||||
// IMGUI_ONCE_UPON_A_FRAME
|
||||
// {
|
||||
// ImGui::Text("This will be displayed only once.");
|
||||
// }
|
||||
//}
|
||||
// if (once)
|
||||
// ImGui::Text("This will be displayed only once.");
|
||||
|
||||
ImGui::Separator();
|
||||
|
||||
|
Reference in New Issue
Block a user