quit button for shutting down the application
This commit is contained in:
@@ -129,6 +129,11 @@ void Application::Run() {
|
|||||||
ImGui::Text("counter = %d", counter);
|
ImGui::Text("counter = %d", counter);
|
||||||
|
|
||||||
ImGui::Text("Application avg %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
|
ImGui::Text("Application avg %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
|
||||||
|
|
||||||
|
if (ImGui::Button("Quit")) {
|
||||||
|
SetRunningState(false);
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
|
|
||||||
// Rendering
|
// Rendering
|
||||||
|
|||||||
Reference in New Issue
Block a user