mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added Default property to WindowDescription
This commit is contained in:
@@ -29,7 +29,7 @@ namespace GlitchyEngine
|
|||||||
Runtime.Assert(s_Instance == null, "Tried to create a second application.");
|
Runtime.Assert(s_Instance == null, "Tried to create a second application.");
|
||||||
s_Instance = this;
|
s_Instance = this;
|
||||||
|
|
||||||
_window = GlitchyEngine.Window.CreateWindow(WindowDescription());
|
_window = new Window(.Default);
|
||||||
_window.EventCallback = new => OnEvent;
|
_window.EventCallback = new => OnEvent;
|
||||||
|
|
||||||
_imGuiLayer = new ImGuiLayer();
|
_imGuiLayer = new ImGuiLayer();
|
||||||
|
|||||||
@@ -11,13 +11,7 @@ namespace GlitchyEngine
|
|||||||
public StringView Title;
|
public StringView Title;
|
||||||
public StringView Icon;
|
public StringView Icon;
|
||||||
|
|
||||||
public this()
|
public this() => this = default;
|
||||||
{
|
|
||||||
Width = 1280;
|
|
||||||
Height = 720;
|
|
||||||
Title = "Glitchy Engine";
|
|
||||||
Icon = .();
|
|
||||||
}
|
|
||||||
|
|
||||||
public this(uint32 width, uint32 height, StringView title, StringView icon = default)
|
public this(uint32 width, uint32 height, StringView title, StringView icon = default)
|
||||||
{
|
{
|
||||||
@@ -26,6 +20,8 @@ namespace GlitchyEngine
|
|||||||
Title = title;
|
Title = title;
|
||||||
Icon = icon;
|
Icon = icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static readonly WindowDescription Default => .(1280, 720, "Glitchy Engine")
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Window
|
public class Window
|
||||||
|
|||||||
Reference in New Issue
Block a user