Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Node graph implementation for Dear ImGui. Used inhttps://github.com/rokups/rbfx

License

NotificationsYou must be signed in to change notification settings

rokups/ImNodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A standaloneDear ImGui node graph implementation.

image

Library provides core features needed to create a node graph, while leaving it to the user to define content of node.Node layouting is left to the user, however comprehensible example is available which can be used as a base.

A (very) trivial example

static ImNodes::CanvasState canvas;if (ImGui::Begin("ImNodes",nullptr, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse)){ImNodes::BeginCanvas(&canvas);structNode    {        ImVec2 pos{};bool selected{};        ImNodes::Ez::SlotInfo inputs[1];        ImNodes::Ez::SlotInfo outputs[1];    };static Node nodes[3] = {        {{50,100},false, {{"In",1}}, {{"Out",1}}},        {{250,50},false, {{"In",1}}, {{"Out",1}}},        {{250,100},false, {{"In",1}}, {{"Out",1}}},    };for (Node& node : nodes)    {if (ImNodes::Ez::BeginNode(&node,"Node Title", &node.pos, &node.selected))        {ImNodes::Ez::InputSlots(node.inputs,1);ImNodes::Ez::OutputSlots(node.outputs,1);ImNodes::Ez::EndNode();        }    }ImNodes::Connection(&nodes[1],"In", &nodes[0],"Out");ImNodes::Connection(&nodes[2],"In", &nodes[0],"Out");ImNodes::EndCanvas();}ImGui::End();

image

About

Node graph implementation for Dear ImGui. Used inhttps://github.com/rokups/rbfx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp