[][src]Struct gba_hal::data::BlendControl

#[repr(transparent)]
pub struct BlendControl(_);

Controls the color special effect

  • 0-5: 1st target pixel selections
  • 6-7: color special effect
  • 8-13: 2nd target pixel selections

"1st target" picks the top-most pixel among the selections, and then "2nd target" will pick the pixel underneath that. The "2nd target" only matters if you've selected the AlphaBlend effect.

For the names, note that BD = Backdrop (the color when nothing at all is drawn from any background or object).

Methods

impl BlendControl[src]

pub const fn new() -> Self[src]

A const "zero value" constructor

impl BlendControl[src]

pub const BG0_1ST_TARGET_BIT: u16[src]

pub const fn bg0_1st_target(self) -> bool[src]

pub const fn with_bg0_1st_target(self, bit: bool) -> Self[src]

pub const BG1_1ST_TARGET_BIT: u16[src]

pub const fn bg1_1st_target(self) -> bool[src]

pub const fn with_bg1_1st_target(self, bit: bool) -> Self[src]

pub const BG2_1ST_TARGET_BIT: u16[src]

pub const fn bg2_1st_target(self) -> bool[src]

pub const fn with_bg2_1st_target(self, bit: bool) -> Self[src]

pub const BG3_1ST_TARGET_BIT: u16[src]

pub const fn bg3_1st_target(self) -> bool[src]

pub const fn with_bg3_1st_target(self, bit: bool) -> Self[src]

pub const OBJ_1ST_TARGET_BIT: u16[src]

pub const fn obj_1st_target(self) -> bool[src]

pub const fn with_obj_1st_target(self, bit: bool) -> Self[src]

pub const BD_1ST_TARGET_BIT: u16[src]

pub const fn bd_1st_target(self) -> bool[src]

pub const fn with_bd_1st_target(self, bit: bool) -> Self[src]

pub const COLOR_SPECIAL_EFFECT_MASK: u16[src]

pub fn color_special_effect(self) -> ColorSpecialEffect[src]

pub const fn with_color_special_effect(
    self,
    color_special_effect: ColorSpecialEffect
) -> Self
[src]

pub const BG0_2ND_TARGET_BIT: u16[src]

pub const fn bg0_2nd_target(self) -> bool[src]

pub const fn with_bg0_2nd_target(self, bit: bool) -> Self[src]

pub const BG1_2ND_TARGET_BIT: u16[src]

pub const fn bg1_2nd_target(self) -> bool[src]

pub const fn with_bg1_2nd_target(self, bit: bool) -> Self[src]

pub const BG2_2ND_TARGET_BIT: u16[src]

pub const fn bg2_2nd_target(self) -> bool[src]

pub const fn with_bg2_2nd_target(self, bit: bool) -> Self[src]

pub const BG3_2ND_TARGET_BIT: u16[src]

pub const fn bg3_2nd_target(self) -> bool[src]

pub const fn with_bg3_2nd_target(self, bit: bool) -> Self[src]

pub const OBJ_2ND_TARGET_BIT: u16[src]

pub const fn obj_2nd_target(self) -> bool[src]

pub const fn with_obj_2nd_target(self, bit: bool) -> Self[src]

pub const BD_2ND_TARGET_BIT: u16[src]

pub const fn bd_2nd_target(self) -> bool[src]

pub const fn with_bd_2nd_target(self, bit: bool) -> Self[src]

Trait Implementations

impl PartialEq<BlendControl> for BlendControl[src]

impl Eq for BlendControl[src]

impl Debug for BlendControl[src]

impl Copy for BlendControl[src]

impl Clone for BlendControl[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for BlendControl[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]