pub struct Skeleton { /* private fields */ }Implementations§
Source§impl Skeleton
impl Skeleton
pub fn new(data: &SkeletonData) -> Self
pub fn slots(&self) -> Vec<Slot<'_>>
pub fn draw_slots(&self) -> Vec<Slot<'_>>
pub fn bone(&self) -> Vec<Bone<'_>>
pub fn bone_index(&self, name: &str) -> BoneIndex
pub fn slot(&self, name: &str) -> Option<Slot<'_>>
pub fn color(&self) -> [f32; 4]
pub fn position(&self) -> [f32; 2]
pub fn scale(&self) -> [f32; 2]
pub fn slot_index(&self, name: &str) -> SlotIndex
pub fn reset(&mut self)
pub fn reset_bones(&mut self)
pub fn reset_slots(&mut self)
pub fn update_cache(&mut self)
pub fn update(&mut self, delta: f32)
pub fn update_world_transforms(&mut self)
Auto Trait Implementations§
impl !Send for Skeleton
impl !Sync for Skeleton
impl Freeze for Skeleton
impl RefUnwindSafe for Skeleton
impl Unpin for Skeleton
impl UnsafeUnpin for Skeleton
impl UnwindSafe for Skeleton
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more