SiebenCorgie / ori-engine

A small engine written in rust + vulkan.
Other
7 stars 1 forks source link

Change node tree to a tag based indentification #15

Closed SiebenCorgie closed 7 years ago

SiebenCorgie commented 7 years ago

Currently the node children are sorted based on a node::ContentTypes enum which makes it a bit ugly to add new children types. However, this can be changed to a Arc<NodeMember> approach for the children vector. The child itself can be tagged based on a Tag enum for sorting etc.

SiebenCorgie commented 7 years ago

This has been added via https://github.com/SiebenCorgie/ori-engine/commit/d791d380e3ad2292f0d930266086e81440355d13 It implements a new type SimpleNodeMember for the current types (meshes, lights) but still makes it possible to implement new types via the NodeMember trait.