pub enum SortMode {
YSort,
Fixed(u32),
}Expand description
How a sprite is ordered among the others of its layer.
Variants§
YSort
By its pivot’s y: lower on screen is drawn later, in front.
Fixed(u32)
At a fixed depth, for ground decals and the like. Fixed(0) is
behind every y-sorted sprite of its layer, and Fixed(u32::MAX) in
front of every one.
Trait Implementations§
impl Copy for SortMode
impl Eq for SortMode
impl StructuralPartialEq for SortMode
Auto Trait Implementations§
impl Forget for SortMode
impl Freeze for SortMode
impl Move for SortMode
impl RefUnwindSafe for SortMode
impl Send for SortMode
impl Sync for SortMode
impl Unpin for SortMode
impl UnsafeUnpin for SortMode
impl UnwindSafe for SortMode
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