dx-OnWindowResize
- Added dxGraphicsContext::OnWindowResize
This commit is contained in:
parent
f8b35c9572
commit
0801ced371
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue