Expose ui scaling and orientation
This commit is contained in:
@@ -69,6 +69,8 @@ namespace OpenVulkano::Vulkan
|
||||
{
|
||||
currentImageId = context.swapChain.AcquireNextImage();
|
||||
scene->GetCamera()->SetSize(context.window->GetWidth(), context.window->GetHeight());
|
||||
scene->GetCamera()->SetContentScaleFactor(context.window->GetContentScale());
|
||||
scene->GetCamera()->SetInterfaceOrientation(context.window->GetInterfaceOrientation());
|
||||
Render();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user