Example #1
0
        override protected void Initialize()
        {
            base.Initialize();

#if DEBUG
            System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));

            // render Nez in the imgui window in debug mode
            var imGuiManager = new ImGuiManager();
            Core.RegisterGlobalManager(imGuiManager);
#endif

            Scene = new DefaultScene();
        }
Example #2
0
        override protected void Initialize()
        {
            base.Initialize();

            Scene = new DefaultScene();

#if DEBUG
            System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));

            // optionally render Nez in an ImGui window
            var imGuiManager = new ImGuiManager();
            Core.RegisterGlobalManager(imGuiManager);

            // 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
        }