dx-OnWindowResize

- Added dxGraphicsContext::OnWindowResize
This commit is contained in:
Light 2021-06-21 18:09:28 +04:30
parent f8b35c9572
commit 0801ced371

View file

@ -35,6 +35,10 @@ namespace Light {
m_SharedContext = std::make_shared<dxSharedContext>(m_Device, m_DeviceContext, m_SwapChain, m_RenderTargetView);
}
void dxGraphicsContext::OnWindowResize(const WindowResizedEvent& event)
{
SetResolution(event.GetSize());
}
void dxGraphicsContext::SetupDeviceAndSwapChain(GLFWwindow* windowHandle)
{