Struct rusty_spine::controller::SkeletonController
source · pub struct SkeletonController {
pub skeleton: Skeleton,
pub animation_state: AnimationState,
pub clipper: SkeletonClipping,
pub settings: SkeletonControllerSettings,
}
Fields§
§skeleton: Skeleton
§animation_state: AnimationState
§clipper: SkeletonClipping
§settings: SkeletonControllerSettings
Implementations§
source§impl SkeletonController
impl SkeletonController
sourcepub fn new(
skeleton_data: Arc<SkeletonData>,
animation_state_data: Arc<AnimationStateData>
) -> Self
pub fn new( skeleton_data: Arc<SkeletonData>, animation_state_data: Arc<AnimationStateData> ) -> Self
Creates a new skeleton and animation state instance with the given data.
pub fn with_settings(self, settings: SkeletonControllerSettings) -> Self
sourcepub fn update(&mut self, delta_seconds: f32)
pub fn update(&mut self, delta_seconds: f32)
Updates the animation state, applies to the skeleton, and updates world transforms.
sourcepub fn renderables(&mut self) -> Vec<SkeletonRenderable>
pub fn renderables(&mut self) -> Vec<SkeletonRenderable>
Render the skeleton using the SimpleDrawer
and returns renderable mesh information.
In most cases, it is preferable to use SkeletonController::combined_renderables
which
is significantly faster for complex rigs.
sourcepub fn combined_renderables(&mut self) -> Vec<SkeletonCombinedRenderable>
pub fn combined_renderables(&mut self) -> Vec<SkeletonCombinedRenderable>
Render the skeleton using the CombinedDrawer
and returns renderable mesh information.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkeletonController
impl RefUnwindSafe for SkeletonController
impl Send for SkeletonController
impl Sync for SkeletonController
impl Unpin for SkeletonController
impl UnwindSafe for SkeletonController
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