Struct three_d::BlendParameters [−][src]
pub struct BlendParameters {
pub source_rgb_multiplier: BlendMultiplierType,
pub source_alpha_multiplier: BlendMultiplierType,
pub destination_rgb_multiplier: BlendMultiplierType,
pub destination_alpha_multiplier: BlendMultiplierType,
pub rgb_equation: BlendEquationType,
pub alpha_equation: BlendEquationType,
}Expand description
Defines which type of blending to use for a render call. Blending allows combining each color channel of a render call with the color already in the color channels of the render target. This is usually used to simulate transparency.
Fields
source_rgb_multiplier: BlendMultiplierTypesource_alpha_multiplier: BlendMultiplierTypedestination_rgb_multiplier: BlendMultiplierTypedestination_alpha_multiplier: BlendMultiplierTypergb_equation: BlendEquationTypealpha_equation: BlendEquationTypeImplementations
impl BlendParameters[src]
impl BlendParameters[src]pub const TRANSPARENCY: Self[src]
pub const TRANSPARENCY: Self[src]Usual transparency blending parameters.
Trait Implementations
impl Clone for BlendParameters[src]
impl Clone for BlendParameters[src]fn clone(&self) -> BlendParameters[src]
fn clone(&self) -> BlendParameters[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for BlendParameters[src]
impl Debug for BlendParameters[src]impl Default for BlendParameters[src]
impl Default for BlendParameters[src]impl PartialEq<BlendParameters> for BlendParameters[src]
impl PartialEq<BlendParameters> for BlendParameters[src]fn eq(&self, other: &BlendParameters) -> bool[src]
fn eq(&self, other: &BlendParameters) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &BlendParameters) -> bool[src]
fn ne(&self, other: &BlendParameters) -> bool[src]This method tests for !=.
impl Copy for BlendParameters[src]
impl StructuralPartialEq for BlendParameters[src]
Auto Trait Implementations
impl RefUnwindSafe for BlendParameters
impl Send for BlendParameters
impl Sync for BlendParameters
impl Unpin for BlendParameters
impl UnwindSafe for BlendParameters
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more