1
0
Fork 0

Platform/PlatformWindow: remove make()

This commit is contained in:
Henrik Hautakoski 2023-08-23 15:08:21 +02:00
parent f5db354aec
commit 2de3bd93f7
2 changed files with 0 additions and 18 deletions

View file

@ -2,23 +2,8 @@
#include <Spectre/Window/Window.h>
#include "PlatformWindow.h"
#ifdef SPECTRE_PLATFORM_WIN
#include <Platform/Win32/Win32Window.h>
typedef sp::Win32Window WindowType;
#elif SPECTRE_PLATFORM_UNIX
#include <Platform/Unix/X11Window.h>
typedef sp::X11Window WindowType;
#else
#error "No Window implementation exists"
#endif
namespace sp {
PlatformWindow* PlatformWindow::make(Window* owner)
{
return new WindowType(owner);
}
PlatformWindow::PlatformWindow(Window* owner) :
m_owner (owner)
{