feat: add imguizmo + trigger buxfix
This commit is contained in:
+13
-3
@@ -170,6 +170,14 @@ void App::run()
|
||||
|
||||
if (!isRunning) break;
|
||||
|
||||
if (window.IsMinimized())
|
||||
{
|
||||
// The surface is 0x0 while minimized, there is nothing to render or present to
|
||||
accumulator = 0.0f;
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(16));
|
||||
continue;
|
||||
}
|
||||
|
||||
// Consume SDL events before updating the base camera so held and
|
||||
// newly pressed inputs are applied in the same frame.
|
||||
camera.Update(dt);
|
||||
@@ -290,11 +298,13 @@ if (!isRunning) break;
|
||||
continue;
|
||||
}
|
||||
|
||||
spdlog::info("Recreating swapchain to size: {}x{}", w, h);
|
||||
|
||||
{
|
||||
ZoneScopedN("Recreate Swapchain");
|
||||
gfxDevice.recreateSwapchain(w, h);
|
||||
if (!gfxDevice.recreateSwapchain(w, h))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
spdlog::info("Recreated swapchain at {}x{}", w, h);
|
||||
imguiPass.onSwapchainRecreated();
|
||||
onWindowResize(w, h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user