Changed Application.Get to function

This commit is contained in:
Simon Lübeß
2020-11-13 19:43:21 +01:00
parent 80a04e68c9
commit 6b97fdaccb
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ namespace GlitchyEngine
public Window Window => _window;
[Inline]
public static Application Get => s_Instance;
public static Application Get() => s_Instance;
public this()
{
+1 -1
View File
@@ -166,7 +166,7 @@ namespace GlitchyEngine.ImGui
ref ImGui.IO io = ref ImGui.GetIO();
let window = Application.Get.Window;
let window = Application.Get().Window;
io.DisplaySize = .(window.Width, window.Height);
io.DeltaTime = (float)gameTime.FrameTime.TotalSeconds;
+1 -1
View File
@@ -126,7 +126,7 @@ namespace GlitchyEngine.Platform.DX11
public static void Present()
{
SwapChain.Present(Application.Get.Window.IsVSync ? 1 : 0, .None);
SwapChain.Present(Application.Get().Window.IsVSync ? 1 : 0, .None);
}
}
}