pub struct AtlasAttachmentLoader<'atlas> { /* private fields */ }Expand description
Resolves regions against an Atlas by name. Never fails: a frame
whose region is missing stays None, as in spine-cpp, and
SkeletonRenderer skips drawing it.
Implementations§
Trait Implementations§
Source§impl AttachmentLoader for AtlasAttachmentLoader<'_>
impl AttachmentLoader for AtlasAttachmentLoader<'_>
Source§fn new_region_attachment(
&mut self,
_skin: &str,
_placeholder: &str,
name: &str,
path: &str,
sequence: Sequence,
) -> Result<Option<RegionAttachment>, AttachmentLoaderError>
fn new_region_attachment( &mut self, _skin: &str, _placeholder: &str, name: &str, path: &str, sequence: Sequence, ) -> Result<Option<RegionAttachment>, AttachmentLoaderError>
A region attachment.
path is its atlas path; sequence has one
entry per frame, and Sequence::path gives each frame’s path. Read moreSource§fn new_mesh_attachment(
&mut self,
_skin: &str,
_placeholder: &str,
name: &str,
path: &str,
sequence: Sequence,
) -> Result<Option<MeshAttachment>, AttachmentLoaderError>
fn new_mesh_attachment( &mut self, _skin: &str, _placeholder: &str, name: &str, path: &str, sequence: Sequence, ) -> Result<Option<MeshAttachment>, AttachmentLoaderError>
A mesh attachment, including linked meshes. Arguments as for
Self::new_region_attachment. Read moreSource§fn new_bounding_box_attachment(
&mut self,
skin: &str,
placeholder: &str,
name: &str,
) -> Result<Option<BoundingBoxAttachment>, AttachmentLoaderError>
fn new_bounding_box_attachment( &mut self, skin: &str, placeholder: &str, name: &str, ) -> Result<Option<BoundingBoxAttachment>, AttachmentLoaderError>
Errors Read more
Source§fn new_path_attachment(
&mut self,
skin: &str,
placeholder: &str,
name: &str,
) -> Result<Option<PathAttachment>, AttachmentLoaderError>
fn new_path_attachment( &mut self, skin: &str, placeholder: &str, name: &str, ) -> Result<Option<PathAttachment>, AttachmentLoaderError>
Errors Read more
Source§fn new_point_attachment(
&mut self,
skin: &str,
placeholder: &str,
name: &str,
) -> Result<Option<PointAttachment>, AttachmentLoaderError>
fn new_point_attachment( &mut self, skin: &str, placeholder: &str, name: &str, ) -> Result<Option<PointAttachment>, AttachmentLoaderError>
Errors Read more
Source§fn new_clipping_attachment(
&mut self,
skin: &str,
placeholder: &str,
name: &str,
) -> Result<Option<ClippingAttachment>, AttachmentLoaderError>
fn new_clipping_attachment( &mut self, skin: &str, placeholder: &str, name: &str, ) -> Result<Option<ClippingAttachment>, AttachmentLoaderError>
Errors Read more
Auto Trait Implementations§
impl<'atlas> Freeze for AtlasAttachmentLoader<'atlas>
impl<'atlas> RefUnwindSafe for AtlasAttachmentLoader<'atlas>
impl<'atlas> Send for AtlasAttachmentLoader<'atlas>
impl<'atlas> Sync for AtlasAttachmentLoader<'atlas>
impl<'atlas> Unpin for AtlasAttachmentLoader<'atlas>
impl<'atlas> UnsafeUnpin for AtlasAttachmentLoader<'atlas>
impl<'atlas> UnwindSafe for AtlasAttachmentLoader<'atlas>
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