pub enum SpriteSheetMode {
OverLifetime,
Fps(f64),
Random(u64),
Custom,
}Expand description
Stateless sprite-frame selection.
Variants§
OverLifetime
Clamp the normalized lifetime to one authored animation pass.
Fps(f64)
Loop using a finite nonnegative frame rate.
Random(u64)
Pick once from stable particle.index and an explicit seed.
Custom
Select an atlas cell using floor(particle.custom[0]).
Trait Implementations§
Source§impl Clone for SpriteSheetMode
impl Clone for SpriteSheetMode
impl Copy for SpriteSheetMode
Source§impl Debug for SpriteSheetMode
impl Debug for SpriteSheetMode
Source§impl PartialEq for SpriteSheetMode
impl PartialEq for SpriteSheetMode
impl StructuralPartialEq for SpriteSheetMode
Auto Trait Implementations§
impl Forget for SpriteSheetMode
impl Freeze for SpriteSheetMode
impl Move for SpriteSheetMode
impl RefUnwindSafe for SpriteSheetMode
impl Send for SpriteSheetMode
impl Sync for SpriteSheetMode
impl Unpin for SpriteSheetMode
impl UnsafeUnpin for SpriteSheetMode
impl UnwindSafe for SpriteSheetMode
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