ImGui::Begin("Incorrect!");
@@ -320,102 +232,19 @@ for (int n = 0; n < 3; n++)
ImGui::End();
|
-
-
-// Window label has animating FPS counter
-// Window ID stays the same = hash of "MyGame"
-char buf[128];
-sprintf(buf, "My game (%.1f FPS)###MyGame", io.Framerate);
-ImGui::Begin(buf);
-
-// Label changes between "Enable" and "Disable"
-// ID stays the same = hash of ("MyGame", "MyButton")
-if (ImGui::Button(enabled ? "Disable###MyButton" : "Enable###MyButton", { -FLT_MIN, 0.0f }))
- enabled = !enabled;
-
-ImGui::End();
-
- |
-