Refactored DragDrop

This commit is contained in:
Simon Lübeß
2025-06-26 22:35:38 +02:00
parent 5fb8401a1a
commit 2cc8889ac1
6 changed files with 155 additions and 68 deletions
+3 -4
View File
@@ -9,6 +9,7 @@ using DirectX.Common;
using GlitchyEditor.Platform.Windows;
using GlitchyEditor.Multithreading;
using System.Threading;
using GlitchyEditor.Platform;
namespace GlitchyEditor
{
@@ -29,16 +30,14 @@ namespace GlitchyEditor
_backgroundTaskManager.Init();
// TODO: Windows only
HResult result = OleInitialize(null);
Log.EngineLogger.Assert(result case .S_OK);
DragDropManager.Init();
PushLayer(new EditorLayer(args, _contentManager));
}
public ~this()
{
OleUninitialize();
DragDropManager.Deinit();
_backgroundTaskManager.Deinit();
}