Struct rusty_spine::SkeletonClipping
source · pub struct SkeletonClipping { /* private fields */ }
Expand description
Active state for ClippingAttachment
during mesh generation.
For example usage, see the SimpleDrawer::draw
implementation.
Implementations§
source§impl SkeletonClipping
impl SkeletonClipping
pub fn new() -> Self
pub fn clip_start(&mut self, slot: &Slot, clip: &ClippingAttachment)
pub fn clip_end(&mut self, slot: &Slot)
pub fn clip_end2(&mut self)
pub fn is_clipping(&self) -> bool
sourcepub unsafe fn clip_triangles(
&self,
vertices: &mut [[f32; 2]],
triangles: &mut [u16],
uvs: &mut [[f32; 2]],
stride: i32
)
pub unsafe fn clip_triangles( &self, vertices: &mut [[f32; 2]], triangles: &mut [u16], uvs: &mut [[f32; 2]], stride: i32 )
§Safety
The triangles data passed in must represent valid mesh data.
sourcepub const fn c_ptr(&self) -> *mut spSkeletonClipping
pub const fn c_ptr(&self) -> *mut spSkeletonClipping
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl Debug for SkeletonClipping
impl Debug for SkeletonClipping
source§impl Default for SkeletonClipping
impl Default for SkeletonClipping
Auto Trait Implementations§
impl Freeze for SkeletonClipping
impl RefUnwindSafe for SkeletonClipping
impl Send for SkeletonClipping
impl Sync for SkeletonClipping
impl Unpin for SkeletonClipping
impl UnwindSafe for SkeletonClipping
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