From 500f1e442023783af5c9759a6a7d5a037d26141a Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 19 Sep 2019 16:42:47 -0700 Subject: [PATCH] minor cleanup of Game --- project_name/Game1.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/project_name/Game1.cs b/project_name/Game1.cs index b6d1b00..869fe32 100755 --- a/project_name/Game1.cs +++ b/project_name/Game1.cs @@ -6,24 +6,29 @@ namespace project_name class Game1 : Core { public Game1() : base() - {} + { + // uncomment this line for scaled pixel art games + //Environment.SetEnvironmentVariable("FNA_OPENGL_BACKBUFFER_SCALE_NEAREST", "1"); + } override protected void Initialize() { base.Initialize(); - // uncomment this line for scaled pixel art games - //Environment.SetEnvironmentVariable("FNA_OPENGL_BACKBUFFER_SCALE_NEAREST", "1"); - #if DEBUG System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out)); #endif Scene = new DefaultScene(); - + // optionally render Nez in an ImGui window var imGuiManager = new ImGuiManager(); Core.RegisterGlobalManager(imGuiManager); + +#if DEBUG + // optionally load up ImGui DLL if not using the above setup so that its command gets loaded in the DebugConsole + //System.Reflection.Assembly.Load("Nez.ImGui") +#endif } } }