mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Changed Application.Get to function
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user