Update main.cpp

But also don't introduce incorrect arguments...
This commit is contained in:
Aaron Oostdijk 2025-08-29 15:53:38 +02:00 committed by GitHub
parent 64f4830e23
commit 8332975080
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,8 +15,6 @@ int main() {
sf::Clock deltaClock; sf::Clock deltaClock;
while (window.isOpen()) while (window.isOpen())
{ {
float deltaTime = deltaClock.restart().asSeconds();
// Event Polling // Event Polling
while (const std::optional event = window.pollEvent()) while (const std::optional event = window.pollEvent())
{ {
@ -28,7 +26,7 @@ int main() {
} }
// Update // Update
ImGui::SFML::Update(window, deltaTime); ImGui::SFML::Update(window, deltaClock.restart());
// ImGui::ShowDemoWindow(); // ImGui::ShowDemoWindow();
// Render // Render