diff --git a/GlitchyEngine/src/Application.bf b/GlitchyEngine/src/Application.bf index 78c4e2c..549e8cc 100644 --- a/GlitchyEngine/src/Application.bf +++ b/GlitchyEngine/src/Application.bf @@ -29,7 +29,7 @@ namespace GlitchyEngine Runtime.Assert(s_Instance == null, "Tried to create a second application."); s_Instance = this; - _window = GlitchyEngine.Window.CreateWindow(WindowDescription()); + _window = new Window(.Default); _window.EventCallback = new => OnEvent; _imGuiLayer = new ImGuiLayer(); diff --git a/GlitchyEngine/src/Window.bf b/GlitchyEngine/src/Window.bf index d2a99ef..0a4c003 100644 --- a/GlitchyEngine/src/Window.bf +++ b/GlitchyEngine/src/Window.bf @@ -11,13 +11,7 @@ namespace GlitchyEngine public StringView Title; public StringView Icon; - public this() - { - Width = 1280; - Height = 720; - Title = "Glitchy Engine"; - Icon = .(); - } + public this() => this = default; public this(uint32 width, uint32 height, StringView title, StringView icon = default) { @@ -26,6 +20,8 @@ namespace GlitchyEngine Title = title; Icon = icon; } + + public static readonly WindowDescription Default => .(1280, 720, "Glitchy Engine") } public class Window