pub enum ActorItem {
Rig {
actor: ActorId,
frame: f64,
},
Raster {
page: u32,
uv_min: [f32; 2],
uv_max: [f32; 2],
size: [f32; 2],
},
Rect {
half: [f32; 2],
},
}Expand description
What a placement draws. One draw list carries all three media so a single surface can hold them in one z order; a rig is one kind of item, not the only kind of input.
Variants§
Rig
A frame of a rig from an ActorLibrary, drawn as vector geometry and
instanced when several placements share the frame.
Raster
One cell of an atlas page, drawn by the instanced sprite batch. uv is
the cell rectangle in page space; size is its unrotated extent in
pixels, before the placement’s scale.
Rect
A solid rectangle in the placement’s own space, centred on the anchor
and sized half. Drawn through Repose’s instanced rect pipe, so runs of
them batch.
Trait Implementations§
impl Copy for ActorItem
impl StructuralPartialEq for ActorItem
Auto Trait Implementations§
impl Freeze for ActorItem
impl RefUnwindSafe for ActorItem
impl Send for ActorItem
impl Sync for ActorItem
impl Unpin for ActorItem
impl UnsafeUnpin for ActorItem
impl UnwindSafe for ActorItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.