Struct rusty_spine::MeshAttachment
source · pub struct MeshAttachment { /* private fields */ }
Expand description
A deforming mesh attachment.
Implementations§
source§impl MeshAttachment
impl MeshAttachment
pub fn new_linked_mesh(&self) -> Attachment
pub fn update_region(&mut self)
pub fn name(&self) -> &str
pub fn attachment_type(&self) -> AttachmentType
sourcepub unsafe fn compute_world_vertices(
&self,
slot: &Slot,
start: i32,
count: i32,
world_vertices: &mut [f32],
offset: i32,
stride: i32
)
pub unsafe fn compute_world_vertices( &self, slot: &Slot, start: i32, count: i32, world_vertices: &mut [f32], offset: i32, stride: i32 )
§Safety
The slot passed in must be the same slot this attachment originated from.
pub fn world_vertices_length(&self) -> i32
pub fn id(&self) -> i32
pub fn bones(&self) -> &[i32]
sourcepub fn vertices(&self) -> &[f32]
pub fn vertices(&self) -> &[f32]
Gets the raw float array slice representing the vertices of the attachment. If using
the mint
feature, the Self::vertices2
function may be more convenient to use.
pub fn path(&self) -> &str
pub fn color(&self) -> Color
pub fn hull_length(&self) -> i32
pub fn width(&self) -> f32
pub fn height(&self) -> f32
pub fn renderer_object(&self) -> RendererObject<'_>
pub fn region(&self) -> Option<CTmpRef<'_, Self, TextureRegion>>
pub fn region_mut(&mut self) -> Option<CTmpMut<'_, Self, TextureRegion>>
pub fn parent_mesh(&self) -> CTmpRef<'_, Self, MeshAttachment>
pub fn parent_mesh_mut(&mut self) -> CTmpMut<'_, Self, MeshAttachment>
pub fn triangles_count(&self) -> i32
pub fn triangles(&self) -> *mut c_ushort
pub fn edges_count(&self) -> usize
pub fn edges(&self) -> *mut i32
pub fn uvs(&self) -> *mut c_float
pub fn region_uvs(&self) -> *mut c_float
sourcepub const fn c_ptr(&self) -> *mut spMeshAttachment
pub const fn c_ptr(&self) -> *mut spMeshAttachment
Get a pointer to the underlying spine-c
type.
Trait Implementations§
source§impl Debug for MeshAttachment
impl Debug for MeshAttachment
source§impl NewFromPtr<spMeshAttachment> for MeshAttachment
impl NewFromPtr<spMeshAttachment> for MeshAttachment
unsafe fn new_from_ptr(c_mesh_attachment: *mut spMeshAttachment) -> Self
Auto Trait Implementations§
impl Freeze for MeshAttachment
impl RefUnwindSafe for MeshAttachment
impl Send for MeshAttachment
impl Sync for MeshAttachment
impl Unpin for MeshAttachment
impl UnwindSafe for MeshAttachment
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