mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added ImGui
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user