pub struct AlphaBlending {
pub blend: bool,
pub sort: bool,
}Expand description
Describes how a spritesheet should be blended with the background.
Fields§
§blend: boolWhether to blend the sprites. (That is, GL_BLEND.)
sort: boolWhether to sort the sprites so that transparency works as expected.
Trait Implementations§
Source§impl Clone for AlphaBlending
impl Clone for AlphaBlending
Source§fn clone(&self) -> AlphaBlending
fn clone(&self) -> AlphaBlending
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AlphaBlending
Auto Trait Implementations§
impl Freeze for AlphaBlending
impl RefUnwindSafe for AlphaBlending
impl Send for AlphaBlending
impl Sync for AlphaBlending
impl Unpin for AlphaBlending
impl UnsafeUnpin for AlphaBlending
impl UnwindSafe for AlphaBlending
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