Crate rusty_spine
source ·Expand description
Spine runtime for Rust (and wasm!) transpiled from the official C Runtime. Supports Spine 4.2.
For a very quick working example, see controller
.
To load a Skeleton
, see SkeletonJson
or SkeletonBinary
.
To load textures, see extension::set_create_texture_cb
.
To set automatic mix durations (crossfading) between animations, see
AnimationStateData
.
To find and manage bones, see Bone
.
To receive animation events, see AnimationState::set_listener
.
Modules§
- Types related to atlases.
- Direct access to the Spine C Runtime.
- Helper structs for interacting with C pointers in safe rust.
- Provides
SkeletonController
, a helper struct for updating and drawing Spine skeletons. - Helpers types for drawing Spine skeletons.
- Allow overriding the Spine C Runtime extension functions.
Structs§
- Stores timelines for animating a skeleton.
- Applies animations over time, queues animations for later playback, mixes (crossfading) between animations, and applies multiple animations on top of each other (layering).
- Animation settings used to instantiate
AnimationState
. - An atlas loaded from Spine’s
.atlas
file format. - Slot attachments.
- An
Skin
’sAttachment
and slot index. - A loader for creating custom attachments.
- A bone within the
Skeleton
hierarchy. - Static bone data imported from Spine.
- A storeable reference to a
Bone
. - An attachment made up of vertices for use in collision detection, hitboxes, etc.
- An attachment which clips rendering of other attachments.
- RGBA F32 color that is byte-compatible with the Spine runtime.
- Events fired from animations.
- Static event data imported from Spine.
- Stores the setup pose for an
IkConstraint
. - A deforming mesh attachment.
- An attachment of vertices forming a Bezier curve.
- Stores the setup pose for a
PathConstraint
. - Stores the setup pose for a
PhysicsConstraint
. - A lightweight, single point attachment with a translation and rotation.
- An attachment which draws a texture.
- Properties for updating
RegionAttachment
. - A wrapper around a user data void pointer found on a few Spine C structs.
- A live Skeleton instance created from
SkeletonData
. - A loader for Spine binary files.
- Active state for
ClippingAttachment
during mesh generation. - Static skeleton data imported from Spine.
- A loader for Spine json files.
- A container for attachments which can be applied to a skeleton.
- A storeable reference to a
Skin
. - A slot for an attachment.
- Static slot data imported from Spine.
- A storeable reference to a
Slot
. - A region of a texture, usually imported from an
AtlasRegion
. - Stores settings and other state for the playback of an animation on an
AnimationState
track. - A storeable reference to a
TrackEntry
. - Stores the setup pose for a
TransformConstraint
.
Enums§
- A wrapper for
Event
that makes events slightly nicer to work with in Rust. - The type variants of an
Attachment
. - The variants of blend modes supported by Spine.
- The variants of event types.
- The inherited transform for how bones are affected by their parents.
- Determines how physics and other non-deterministic updates are applied.
- Controls how the first bone is positioned along the path.
- Controls how bones are rotated, translated, and scaled to match the path.
- Controls how the first bone is positioned along the path.
- Error types when interacting with the Spine runtime.