![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
ICanvasEditor adapter for ImNodes-based editors (VisualScript) More...
#include "ICanvasEditor.h"#include "../../third_party/imnodes/imnodes.h"#include <string>#include <vector>#include <tuple>
Include dependency graph for ImNodesCanvasEditor.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Olympe::ImNodesCanvasEditor |
Namespaces | |
| namespace | Olympe |
| < Provides AssetID and INVALID_ASSET_ID | |
ICanvasEditor adapter for ImNodes-based editors (VisualScript)
Wraps ImNodes::BeginNodeEditor/EndNodeEditor with standardized interface
@design
@usage // In VisualScriptEditorPanel::RenderCanvas() m_canvasEditor = std::make_unique<ImNodesCanvasEditor>("VisualScript", canvasScreenPos, canvasSize);
m_canvasEditor->BeginRender(); { // Render nodes using ImNodes API as usual ImNodes::BeginNode(nodeId); // ... node content ImNodes::EndNode(); } m_canvasEditor->EndRender();
@compatibility C++14
Definition in file ImNodesCanvasEditor.h.