crolando / plano

refactor & augmentation of thedmd's imgui-node-editor blueprint example to be more fleshed out
6 stars 3 forks source link

Add userdata fields to Links Nodes and Pins #9

Open crolando opened 1 year ago

crolando commented 1 year ago

At the moment, Nodes have a Properties object, which is typedef to attr_table. This in spirit is a userdata class, albeit inflexible and specialized.

In this task, we will formally add userdata fields to all the elemental graph objects: Nodes, Links and Pins.

While not wholly useful by themselves, they can be passed during event callbacks to the user, where they are very useful.

crolando commented 1 year ago

Userdata should be serialized and deserialized by the user in some way.