Update main.cpp
But also don't introduce incorrect arguments...
This commit is contained in:
parent
64f4830e23
commit
8332975080
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue