[−][src]Struct fna3d::BlendState
Implementations
impl BlendState
[src]
pub fn raw(&self) -> &FNA3D_BlendState
[src]
pub fn raw_mut(&mut self) -> &mut FNA3D_BlendState
[src]
impl BlendState
[src]
Constructors (taken from FNA)
pub fn with_blend(
color_src: Blend,
alpha_src: Blend,
color_dest: Blend,
alpha_dest: Blend
) -> Self
[src]
color_src: Blend,
alpha_src: Blend,
color_dest: Blend,
alpha_dest: Blend
) -> Self
pub fn additive() -> Self
[src]
pub fn alpha_blend() -> Self
[src]
pub fn non_premultiplied() -> Self
[src]
ImGUI font texture uses this blending function
pub fn opaque() -> Self
[src]
impl BlendState
[src]
Accessors
pub fn color_src_blend(&self) -> Blend
[src]
pub fn set_color_src_blend(&mut self, blend: Blend)
[src]
pub fn color_dest_blend(&self) -> Blend
[src]
pub fn set_color_dest_blend(&mut self, blend: Blend)
[src]
pub fn color_blend_fn(&self) -> BlendFunction
[src]
pub fn set_color_blend_fn(&mut self, value: BlendFunction)
[src]
pub fn alpha_src_blend(&self) -> Blend
[src]
pub fn set_alpha_src_blend(&mut self, blend: Blend)
[src]
pub fn alpha_dest_blend(&self) -> Blend
[src]
pub fn set_alpha_dest_blend(&mut self, blend: Blend)
[src]
pub fn alpha_blend_fn(&self) -> BlendFunction
[src]
pub fn set_alpha_blend_fn(&mut self, blend_fn: BlendFunction)
[src]
pub fn color_write_enable(&self) -> ColorWriteChannels
[src]
pub fn set_color_write_enable(&mut self, channel: ColorWriteChannels)
[src]
pub fn color_write_enable1(&self) -> ColorWriteChannels
[src]
pub fn set_color_write_enable1(&mut self, channel: ColorWriteChannels)
[src]
pub fn color_write_enable2(&self) -> ColorWriteChannels
[src]
pub fn set_color_write_enable2(&mut self, channel: ColorWriteChannels)
[src]
pub fn color_write_enable3(&self) -> ColorWriteChannels
[src]
pub fn set_color_write_enable3(&mut self, channel: ColorWriteChannels)
[src]
Trait Implementations
impl Clone for BlendState
[src]
pub fn clone(&self) -> BlendState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BlendState
[src]
impl Default for BlendState
[src]
Auto Trait Implementations
impl RefUnwindSafe for BlendState
impl Send for BlendState
impl Sync for BlendState
impl Unpin for BlendState
impl UnwindSafe for BlendState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,