Added a way to create window platform independant

This commit is contained in:
Simon Lübeß
2020-11-09 22:36:36 +01:00
parent efb46ff25c
commit 9a84e0409f
3 changed files with 15 additions and 2 deletions
+1 -2
View File
@@ -14,8 +14,7 @@ namespace GlitchyEngine
public this()
{
// Todo: make Platform independent
_window = new WindowsWindow(WindowDescription());
_window = Window.CreateWindow(WindowDescription());
_window.EventCallback = new => OnEvent;
}