ADD: UI/picking manager

This commit is contained in:
2025-12-16 15:56:51 +09:00
parent b882d5e181
commit ac83f8dc48
15 changed files with 1174 additions and 452 deletions

View File

@@ -434,7 +434,7 @@ bool SceneManager::pick(const glm::vec2 &mousePosPixels, RenderObject &outObject
return false;
}
VkExtent2D dstExtent = swapchain->windowExtent();
VkExtent2D dstExtent = swapchain->swapchainExtent();
if (dstExtent.width == 0 || dstExtent.height == 0)
{
return false;
@@ -584,7 +584,7 @@ void SceneManager::selectRect(const glm::vec2 &p0, const glm::vec2 &p1, std::vec
}
SwapchainManager *swapchain = _context->getSwapchain();
VkExtent2D dstExtent = swapchain->windowExtent();
VkExtent2D dstExtent = swapchain->swapchainExtent();
if (dstExtent.width == 0 || dstExtent.height == 0)
{
return;