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
@@ -108,6 +108,14 @@ namespace GlitchyEngine.Platform.Windows
set;
}
#if GE_WINDOWS
[Export, LinkName("GlitchyEngine.Window.CreateWindow")]
public static new Window CreateWindow(WindowDescription description)
{
return new WindowsWindow(description);
}
#endif
public this(WindowDescription desc)
{
_minMaxInfo.MaximumTrackingSize.x = int32.MaxValue;