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

Function anim_track_info

native/watchos/src/scene.rs:457–475  ·  view source on GitHub ↗
(handle: u32, idx: i64, out: *mut AnimTrackInfo)

Source from the content-addressed store, hash-verified

455}
456
457pub fn anim_track_info(handle: u32, idx: i64, out: *mut AnimTrackInfo) {
458 if out.is_null() { return; }
459 with(|inner| {
460 if let Some(Some(n)) = inner.nodes.get(handle as usize) {
461 if let Some(t) = n.anim_tracks.get(idx as usize) {
462 unsafe {
463 *out = AnimTrackInfo {
464 bone_handle: t.bone_handle,
465 path: t.path,
466 key_count: t.times.len() as u32,
467 _pad: 0,
468 times: t.times.as_ptr(),
469 values: t.values.as_ptr(),
470 };
471 }
472 }
473 }
474 });
475}
476
477pub fn skin_ptrs(handle: u32) -> SkinPtrs {
478 with(|inner| {

Callers 1

Calls 3

withFunction · 0.85
as_ptrMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected