From 0777badbe0722a01f97d00365fbbe5376488bea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Sun, 11 Jul 2021 11:18:01 +0200 Subject: [PATCH] Examples/PhysicsDemo: Remove useless code --- examples/PhysicsDemo/main.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/examples/PhysicsDemo/main.cpp b/examples/PhysicsDemo/main.cpp index ef0045145..08ff56140 100644 --- a/examples/PhysicsDemo/main.cpp +++ b/examples/PhysicsDemo/main.cpp @@ -190,7 +190,6 @@ int main() Nz::PidController upController(1.f, 0.f, 0.1f); bool showColliders = false; - bool rebuildCommandBuffer = false; while (window.IsOpen()) { Nz::UInt64 now = Nz::GetElapsedMicroseconds(); @@ -208,10 +207,7 @@ int main() case Nz::WindowEventType::KeyPressed: if (event.key.virtualKey == Nz::Keyboard::VKey::A) - { basicMat.EnableAlphaTest(!basicMat.IsAlphaTestEnabled()); - rebuildCommandBuffer = true; - } else if (event.key.virtualKey == Nz::Keyboard::VKey::B) { showColliders = !showColliders; @@ -233,7 +229,6 @@ int main() registry.patch(entity); } } - rebuildCommandBuffer = true; } break; @@ -253,14 +248,6 @@ int main() break; } - case Nz::WindowEventType::Resized: - { - Nz::Vector2ui windowSize = window.GetSize(); - //viewerInstance.UpdateProjectionMatrix(Nz::Matrix4f::Perspective(Nz::DegreeAnglef(70.f), float(windowSize.x) / windowSize.y, 0.1f, 1000.f)); - //viewerInstance.UpdateTargetSize(Nz::Vector2f(windowSize)); - break; - } - default: break; } @@ -319,8 +306,6 @@ int main() window.Display(); - rebuildCommandBuffer = false; - fps++; if (secondClock.GetMilliseconds() >= 1000)