pub struct LayeredQuad {
pub quad: Quad,
pub base: Layer,
pub layers: Vec<LaidLayer>,
}Expand description
Several textured layers on one quad (masks, noise, scrolling detail), composed into one colour before the quad’s own
tint applies: the base layer gives a colour and an opacity, and each laid layer then changes one of the two by its
operation, weighted by its own opacity (compose_layers).
Fields§
§quad: QuadThe quad’s shape, blend, tint and limits. Its map is None: the layers are its texture. Its premultiply_alpha
multiplies each layer’s colour by that layer’s own opacity before the layers are composed.
base: LayerThe first layer: the colour and opacity the others are laid onto.
layers: Vec<LaidLayer>The layers laid onto the base, in order.
Trait Implementations§
Source§impl Clone for LayeredQuad
impl Clone for LayeredQuad
Source§impl Debug for LayeredQuad
impl Debug for LayeredQuad
Source§impl PartialEq for LayeredQuad
impl PartialEq for LayeredQuad
Source§impl Serialize for LayeredQuad
impl Serialize for LayeredQuad
impl StructuralPartialEq for LayeredQuad
Auto Trait Implementations§
impl Forget for LayeredQuad
impl Freeze for LayeredQuad
impl RefUnwindSafe for LayeredQuad
impl Send for LayeredQuad
impl Sync for LayeredQuad
impl Unpin for LayeredQuad
impl UnsafeUnpin for LayeredQuad
impl UnwindSafe for LayeredQuad
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