URL: https://graphicscomputing.fr/cgp/reference/hierarchy_mesh_drawable/
Description: Tree of mesh_drawable elements, each placed relative to its parent (articulated objects).

# hierarchy_mesh_drawable

Tree of mesh_drawable elements, each placed relative to its parent (articulated objects).

Fields:

- `std::vector<hierarchy_mesh_drawable_node> elements` - Nodes of the hierarchy, stored so that every parent comes before its children.
- `std::map<std::string,int> name_map` - Lookup table giving the index in elements of each node name.

Functions taking it:

- `void draw(hierarchy_mesh_drawable const& drawable, environment_generic_structure const& environment = environment_generic_structure(), int instance_count = 1, bool expected_uniforms = true, uniform_generic_structure const& additional_uniforms = uniform_generic_structure())` - Draw every node of the hierarchy with draw(mesh_drawable); call update_local_to_global_coordinates() beforehand.
- `void draw_wireframe(hierarchy_mesh_drawable const& drawable, environment_generic_structure const& environment = environment_generic_structure(), vec3 const& color = { 0,0,1 }, int instance_count = 1, bool expected_uniforms = true, uniform_generic_structure const& additional_uniforms = uniform_generic_structure())` - Draw the triangle edges of every node of the hierarchy in a flat color (no effect with Emscripten/WebGL).
