Nodes

In Perro, scene entries are represented by SceneNode. Every SceneNode carries identity and hierarchy metadata, while concrete node data is stored in SceneNodeData.

What SceneNode Is

SceneNode is the runtime wrapper around concrete node data. It stores hierarchy metadata (id, name, parent, children) and the typed inner node payload in data.

pub struct SceneNode {    pub data: SceneNodeData,    pub id: NodeID,    pub name: Cow<'static, str>,    pub parent: NodeID,    pub children: Option<Cow<'static, [NodeID]>>,}

Node Hierarchy

Click any concrete node to open its docs page. Search reveals matching branches.

Nodes
2D root concrete node struct.
2D camera node.
Renderable sprite node.
3D root concrete node struct.
3D camera node.
Light3D
Light3D family
Ambient light node.
Point light node.
Ray light node.
Spot light node.
Renderable mesh node.