Added ImGui

This commit is contained in:
Simon Lübeß
2020-11-12 23:25:48 +01:00
parent 6e71eeea25
commit 4b877af226
17 changed files with 524 additions and 44 deletions
+4 -2
View File
@@ -3,6 +3,7 @@ using GlitchyEngine;
using GlitchyEngine.Events;
using System.Diagnostics;
using GlitchLog;
using GlitchyEngine.ImGui;
namespace Sandbox
{
@@ -11,13 +12,13 @@ namespace Sandbox
[AllowAppend]
public this() : base("Example") { }
public override void Update()
public override void Update(GameTime gameTime)
{
Log.ClientLogger.Info("ExampleLayer.Update");
// Just for temporary vsyncing
// Todo: remove
DwmFlush();
//DwmFlush();
}
[CLink, Import("Dwmapi.lib")]
@@ -34,6 +35,7 @@ namespace Sandbox
public this()
{
PushLayer(new ExampleLayer());
PushOverlay(new ImGuiLayer());
}
[Export, LinkName("CreateApplication")]