pub struct BlendCycle {
pub p: u8,
pub a: u8,
pub m: u8,
pub b: u8,
}Expand description
One cycle of the blender: the P/M color selects and the A/B alpha
selects for P * A + M * (B + 1) (Set Other Modes, 0x2F). Each is 2-bit.
Fields§
§p: u8P (1a) color select: 0 pixel, 1 memory, 2 blend, 3 fog.
a: u8A (1b) alpha select: 0 pixel-alpha, 1 fog-alpha, 2 shade-alpha, 3 zero.
m: u8M (2a) color select (same table as P).
b: u8B (2b) alpha select: 0 1−A, 1 memory-alpha, 2 one, 3 zero.
Trait Implementations§
Source§impl Clone for BlendCycle
impl Clone for BlendCycle
Source§fn clone(&self) -> BlendCycle
fn clone(&self) -> BlendCycle
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 moreSource§impl Debug for BlendCycle
impl Debug for BlendCycle
Source§impl Default for BlendCycle
impl Default for BlendCycle
Source§fn default() -> BlendCycle
fn default() -> BlendCycle
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlendCycle
impl<'de> Deserialize<'de> for BlendCycle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BlendCycle
impl PartialEq for BlendCycle
Source§impl Serialize for BlendCycle
impl Serialize for BlendCycle
impl Copy for BlendCycle
impl Eq for BlendCycle
impl StructuralPartialEq for BlendCycle
Auto Trait Implementations§
impl Freeze for BlendCycle
impl RefUnwindSafe for BlendCycle
impl Send for BlendCycle
impl Sync for BlendCycle
impl Unpin for BlendCycle
impl UnsafeUnpin for BlendCycle
impl UnwindSafe for BlendCycle
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