Move dx interface into graphics module.

This commit is contained in:
jmsgrogan 2023-01-11 11:02:03 +00:00
parent 672b31b603
commit 4bb87de0e6
23 changed files with 130 additions and 64 deletions

View file

@ -1,7 +1,7 @@
#include "Win32Window.h"
#include "Win32WindowInterface.h"
#include "Win32DxInterface.h"
#include "DirectXInterface.h"
#include "Win32DxWindowInterface.h"
#include "FileLogger.h"
@ -15,7 +15,7 @@
LRESULT CALLBACK FreeWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
Win32Window::Win32Window(mt::Window* window, Win32DxInterface* dxInterface)
Win32Window::Win32Window(mt::Window* window, DirectXInterface* dxInterface)
: IPlatformWindow(window)
{
if (dxInterface)
@ -24,7 +24,7 @@ Win32Window::Win32Window(mt::Window* window, Win32DxInterface* dxInterface)
}
}
std::unique_ptr<Win32Window> Win32Window::Create(mt::Window* window, Win32DxInterface* dxInterface)
std::unique_ptr<Win32Window> Win32Window::Create(mt::Window* window, DirectXInterface* dxInterface)
{
return std::make_unique<Win32Window>(window, dxInterface);
}