Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
Editor.h File Reference

In-game ImGui overlay: hierarchy, inspector, console, stats. More...

#include <functional>
#include <string>
#include <vector>
#include "Types.h"
+ Include dependency graph for Editor.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mnd::Editor
 ImGui-based in-game editor overlay. More...
 

Namespaces

namespace  mnd
 

Detailed Description

In-game ImGui overlay: hierarchy, inspector, console, stats.

The Engine creates one Editor and drives its three-phase frame from mnd::Engine::Run(): BeginFrame() after polling input, Draw() to lay out every panel, and EndFrame() after the scene render so the GUI composites on top.

Toggle visibility at runtime, or register your own debug panels:

engine.GetEditor().RegisterPanel("My Tool", [] {
ImGui::Text("hello from a custom panel");
});

Definition in file Editor.h.