mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
minor cleanup of Game
This commit is contained in:
parent
9470148057
commit
500f1e4420
@ -6,15 +6,15 @@ namespace project_name
|
|||||||
class Game1 : Core
|
class Game1 : Core
|
||||||
{
|
{
|
||||||
public Game1() : base()
|
public Game1() : base()
|
||||||
{}
|
{
|
||||||
|
// uncomment this line for scaled pixel art games
|
||||||
|
//Environment.SetEnvironmentVariable("FNA_OPENGL_BACKBUFFER_SCALE_NEAREST", "1");
|
||||||
|
}
|
||||||
|
|
||||||
override protected void Initialize()
|
override protected void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
|
|
||||||
// uncomment this line for scaled pixel art games
|
|
||||||
//Environment.SetEnvironmentVariable("FNA_OPENGL_BACKBUFFER_SCALE_NEAREST", "1");
|
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
|
System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
|
||||||
#endif
|
#endif
|
||||||
@ -24,6 +24,11 @@ namespace project_name
|
|||||||
// optionally render Nez in an ImGui window
|
// optionally render Nez in an ImGui window
|
||||||
var imGuiManager = new ImGuiManager();
|
var imGuiManager = new ImGuiManager();
|
||||||
Core.RegisterGlobalManager(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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user