![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
Renderer shared by BlueprintEditor and RuntimeDebugger. More...
#include <SharedGraphRenderer.h>
Classes | |
| struct | Config |
| Rendering configuration knobs. More... | |
Static Public Member Functions | |
| static Config | MakeEditorConfig () |
| Returns the default configuration for the BlueprintEditor (full-edit mode). | |
| static Config | MakeDebuggerConfig () |
| Returns the default configuration for the Runtime Debugger (read-only mode). | |
| static void | Render (GraphDocument *doc, const EditorContext &ctx, const Config &cfg, int activeNodeID=-1) |
| Renders the graph inside the current ImGui window. | |
| static void | RenderBlackboardPanel (const LocalBlackboard *bb) |
| Renders the blackboard variables panel. | |
Private Member Functions | |
| SharedGraphRenderer () | |
Static Private Member Functions | |
| static void | RenderNode (const NodeData &node, const Config &cfg, int activeNodeID) |
| Renders a single node. | |
| static void | RenderLink (const LinkData &link) |
| Renders a single link between two nodes. | |
| static void | RenderToolbar (GraphDocument *doc, const EditorContext &ctx) |
| Renders the graph toolbar (save/load/auto-layout buttons). | |
Renderer shared by BlueprintEditor and RuntimeDebugger.
All methods are static. No instance state is required because the renderer is purely functional: it reads from GraphDocument and EditorContext and issues ImNodes / ImGui draw calls.
Definition at line 54 of file SharedGraphRenderer.h.
|
inlineprivate |
Definition at line 134 of file SharedGraphRenderer.h.
|
static |
Returns the default configuration for the Runtime Debugger (read-only mode).
readOnly=true, showRuntimeHighlight=true.
Definition at line 50 of file SharedGraphRenderer.cpp.
References GetComponentTypeID_Static(), and Olympe::NodeGraph::SharedGraphRenderer::Config::readOnly.
Here is the call graph for this function:
|
static |
Returns the default configuration for the BlueprintEditor (full-edit mode).
readOnly=false, showRuntimeHighlight=false.
Definition at line 40 of file SharedGraphRenderer.cpp.
References GetComponentTypeID_Static(), and Olympe::NodeGraph::SharedGraphRenderer::Config::readOnly.
Here is the call graph for this function:
|
static |
Renders the graph inside the current ImGui window.
| doc | GraphDocument to render (non-owning). Must not be null. |
| ctx | EditorContext (Editor or Debug mode). |
| cfg | Rendering configuration. |
| activeNodeID | Node to highlight in debug mode (-1 = none). |
Definition at line 64 of file SharedGraphRenderer.cpp.
References GetComponentTypeID_Static(), RenderLink(), RenderNode(), and RenderToolbar().
Here is the call graph for this function:
|
static |
Renders the blackboard variables panel.
| bb | LocalBlackboard to display. May be null (panel shows empty state). |
Definition at line 114 of file SharedGraphRenderer.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:Renders a single link between two nodes.
| link | Link data. |
Definition at line 186 of file SharedGraphRenderer.cpp.
References GetComponentTypeID_Static().
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Renders a single node.
| node | Node data. |
| cfg | Rendering config (controls highlight, read-only styling). |
| activeNodeID | Highlighted node ID (-1 = none). |
Definition at line 154 of file SharedGraphRenderer.cpp.
References GetComponentTypeID_Static().
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Renders the graph toolbar (save/load/auto-layout buttons).
| doc | GraphDocument (commands are dispatched through it). |
| ctx | EditorContext (controls which actions are available). |
Definition at line 199 of file SharedGraphRenderer.cpp.
References GetComponentTypeID_Static().
Referenced by Render().
Here is the call graph for this function:
Here is the caller graph for this function: