Struct rusty_spine::MeshAttachment
source · pub struct MeshAttachment { /* private fields */ }
Expand description
A deforming mesh attachment.
Implementations
sourceimpl MeshAttachment
impl MeshAttachment
pub unsafe fn new_linked_mesh(&self) -> Attachment
pub unsafe fn update_region(&mut self)
pub fn name(&self) -> &str
pub fn attachment_type(&self) -> AttachmentType
pub unsafe fn compute_world_vertices(
&self,
slot: &Slot,
start: i32,
count: i32,
world_vertices: &mut [f32],
offset: i32,
stride: i32
)
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) -> i32
pub fn edges(&self) -> *mut i32
pub fn uvs(&self) -> *mut c_float
pub fn region_uvs(&self) -> *mut c_float
pub fn c_ptr(&self) -> *mut spMeshAttachment
Trait Implementations
sourceimpl Debug for MeshAttachment
impl Debug for MeshAttachment
sourceimpl NewFromPtr<spMeshAttachment> for MeshAttachment
impl NewFromPtr<spMeshAttachment> for MeshAttachment
unsafe fn new_from_ptr(c_mesh_attachment: *const spMeshAttachment) -> Self
Auto Trait Implementations
impl RefUnwindSafe for MeshAttachment
impl Send for MeshAttachment
impl Sync for MeshAttachment
impl Unpin for MeshAttachment
impl UnwindSafe for MeshAttachment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more