pub struct Layer {
pub map: Option<Map>,
pub tint: Value,
pub scroll: [Value; 2],
pub offset: [Value; 2],
pub scale: [Value; 2],
}Expand description
One textured layer of a LayeredQuad: its sample is its texture’s texel (white without one) times its tint.
Fields§
§map: Option<Map>§tint: Value§scroll: [Value; 2]Texture-space scroll speed per second, offset and scale: functions of the age (offset of nothing).
offset: [Value; 2]§scale: [Value; 2]Trait Implementations§
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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