pub struct RegionAttachment<'a> { /* private fields */ }Implementations§
Source§impl<'a> RegionAttachment<'a>
impl<'a> RegionAttachment<'a>
Sourcepub fn load_vertices(&self, bone: &Bone<'_>, vertices: &mut [f32; 8])
pub fn load_vertices(&self, bone: &Bone<'_>, vertices: &mut [f32; 8])
Loads the 8 vertex positions for this attachments rendering into the provided vertices buffer.
§spine-c
Maps to calling spRegionAttachment_computeWorldVertices
Sourcepub fn get_vertices(&self, bone: &Bone<'_>) -> [f32; 8]
pub fn get_vertices(&self, bone: &Bone<'_>) -> [f32; 8]
Returns the 8 vertex positions for this attachments rendering in a new array.
§spine-c
Maps to calling spRegionAttachment_computeWorldVertices
Sourcepub fn texture_id(&self) -> u32
pub fn texture_id(&self) -> u32
Returns the u32 texture id which was provided for this image during Atlas loading.
§spine-c
Maps to dereferencing ((*spAtlasRegion)spRegionAttachment->rendererObject)->rendererObject
pub fn rotation(&self) -> f32
pub fn color(&self) -> [f32; 4]
pub fn position(&self) -> [f32; 2]
pub fn scale(&self) -> [f32; 2]
pub fn dimensions(&self) -> [f32; 2]
pub fn uv(&self) -> [f32; 8]
pub fn offset(&self) -> [f32; 8]
Auto Trait Implementations§
impl<'a> !Send for RegionAttachment<'a>
impl<'a> !Sync for RegionAttachment<'a>
impl<'a> Freeze for RegionAttachment<'a>
impl<'a> RefUnwindSafe for RegionAttachment<'a>
impl<'a> Unpin for RegionAttachment<'a>
impl<'a> UnsafeUnpin for RegionAttachment<'a>
impl<'a> UnwindSafe for RegionAttachment<'a>
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