MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / attach_mesh

Function attach_mesh

native/watchos/src/lib.rs:954–962  ·  view source on GitHub ↗
(handle: u32, mesh: &models::Mesh)

Source from the content-addressed store, hash-verified

952}
953
954fn attach_mesh(handle: u32, mesh: &models::Mesh) {
955 if mesh.primitives.is_empty() { return; }
956 apply_primitive(handle, &mesh.primitives[0]);
957 for prim in mesh.primitives.iter().skip(1) {
958 let child = scene::create();
959 scene::set_parent(child, handle);
960 apply_primitive(child, prim);
961 }
962}
963
964fn spawn_node_subtree(
965 model: &models::Model, node_idx: usize, parent: u32,

Callers 2

bloom_scene_attach_modelFunction · 0.85
spawn_node_subtreeFunction · 0.85

Calls 4

apply_primitiveFunction · 0.85
createFunction · 0.85
set_parentFunction · 0.85
iterMethod · 0.80

Tested by

no test coverage detected