pub struct ZOrderTable { /* private fields */ }Expand description
Table holding the draw order (z-order). indices is a permutation of
part_idx sorted by ascending rank, and is the source data for
FrameData.draw_order.
Implementations§
Source§impl ZOrderTable
impl ZOrderTable
pub fn new() -> Self
Sourcepub fn setup(&mut self, animation: i32, cached_parts: &[CachedPartData])
pub fn setup(&mut self, animation: i32, cached_parts: &[CachedPartData])
Set the table up for animation. The draw order only has to be sorted
every frame when some part’s priority changes during the animation;
otherwise it is sorted once.
Sourcepub fn fit(&mut self, animation: i32, cached_parts: &[CachedPartData])
pub fn fit(&mut self, animation: i32, cached_parts: &[CachedPartData])
Set the table up again if animation is not the one it was set up for:
a track-0 change can hand the primary role to another animation.
pub fn update(&mut self, parts: &[PartState])
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ZOrderTable
impl RefUnwindSafe for ZOrderTable
impl Send for ZOrderTable
impl Sync for ZOrderTable
impl Unpin for ZOrderTable
impl UnsafeUnpin for ZOrderTable
impl UnwindSafe for ZOrderTable
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