Fixed ImGui and added docking and viewport support

This commit is contained in:
Simon Lübeß
2020-11-16 21:16:19 +01:00
parent b472d0774d
commit 6bfeffa49d
9 changed files with 115 additions and 48 deletions
+3
View File
@@ -5,3 +5,6 @@ Dependencies = {GlitchyEngine = "*", corlib = "*"}
Name = "Sandbox"
TargetType = "BeefGUIApplication"
StartupObject = "GlitchyEngine.Program"
[Configs.Debug.Win64]
CLibType = "DynamicDebug"
+13
View File
@@ -21,6 +21,19 @@ namespace Sandbox
public override void OnEvent(Event event)
{
Log.ClientLogger.Trace("{}", event);
EventDispatcher dispatcher = scope EventDispatcher(event);
dispatcher.Dispatch<ImGuiRenderEvent>(scope (e) => OnImGuiRender(e));
}
private bool OnImGuiRender(ImGuiRenderEvent e)
{
ImGui.ImGui.Begin("Test");
ImGui.ImGui.End();
return false;
}
}