Removed deprecated Application.Get()

This commit is contained in:
Simon Lübeß
2026-08-16 19:51:56 +02:00
parent 836c926a22
commit 39d78ab4c1
11 changed files with 14 additions and 17 deletions
+1 -1
View File
@@ -139,7 +139,7 @@ namespace GlitchyEditor
_componentEditWindow = new ComponentEditWindow();
_contentBrowserWindow = new ContentBrowserWindow(this, (.)Application.Instance.ContentManager, _thumbnailManager);
_inspectorWindow = new InspectorWindow(this);
_assetViewer = new AssetViewer((.)Application.Get().ContentManager);
_assetViewer = new AssetViewer((.)Application.Instance.ContentManager);
_logWindow = new LogWindow();
_settingsWindow = new SettingsWindow();
}
+1 -1
View File
@@ -295,7 +295,7 @@ namespace GlitchyEditor
private void InitGraphics()
{
_context = Application.Get().Window.Context..AddRef();
_context = Application.Instance.Window.Context..AddRef();
RasterizerStateDescription rsDesc = .(.Solid, .Back, true);
_rasterizerState = new RasterizerState(rsDesc);
+1 -1
View File
@@ -57,7 +57,7 @@ namespace GlitchyEditor.ImGui
}
#if BF_PLATFORM_WINDOWS
ImGuiImplWin32.Init(Application.Get().Window.NativeWindow);
ImGuiImplWin32.Init(Application.Instance.Window.NativeWindow);
#endif
#if GE_GRAPHICS_DX11