Struct agb::display::blend::BlendLayer
source · pub struct BlendLayer<'blend, 'gba> { /* private fields */ }
Expand description
When making many modifications to a layer, it is convenient to operate on that layer directly. This is created by the Blend::layer function and operates on that layer.
Implementations§
source§impl<'gba> BlendLayer<'_, 'gba>
impl<'gba> BlendLayer<'_, 'gba>
sourcepub fn set_background_enable(
&mut self,
background: BackgroundID,
enable: bool
) -> &mut Self
pub fn set_background_enable( &mut self, background: BackgroundID, enable: bool ) -> &mut Self
Set whether a background is enabled for blending on this layer.
sourcepub fn set_object_enable(&mut self, enable: bool) -> &mut Self
pub fn set_object_enable(&mut self, enable: bool) -> &mut Self
Set whether objects are enabled for blending on this layer.
sourcepub fn set_backdrop_enable(&mut self, enable: bool) -> &mut Self
pub fn set_backdrop_enable(&mut self, enable: bool) -> &mut Self
Set whether the backdrop contributes to the blend on this layer. The backdrop is transparent colour, the colour rendered when nothing is in it’s place.
sourcepub fn set_blend_weight(&mut self, value: Num<u8, 4>) -> &mut Self
pub fn set_blend_weight(&mut self, value: Num<u8, 4>) -> &mut Self
Set the weight for the blend on this layer.