microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.57k stars 511 forks source link

App and DeviceResources #336

Closed dudedude1234 closed 2 years ago

dudedude1234 commented 2 years ago

Is it okay to delete this because DeviceResources for UWP doesn't have anything form this

`void App::OnDpiChanged(DisplayInformation^ sender, Object^ args) { // Note: The value for LogicalDpi retrieved here may not match the effective DPI of the app // if it is being scaled for high resolution devices. Once the DPI is set on DeviceResources, // you should always retrieve it using the GetDpi method. // See DeviceResources.cpp for more details. m_deviceResources- (sender->LogicalDpi); game->CreateWindowSizeDependentResources(); }

void App::OnOrientationChanged(DisplayInformation^ sender, Object^ args) { m_deviceResources->GetOrientationTransform3D(sender- ); game->CreateWindowSizeDependentResources(); }`

walbourn commented 2 years ago

See the directx-vs-template for examples of how to handle this:

https://github.com/walbourn/directx-vs-templates/blob/main/d3d11game_uwp_dr/Main.cpp