pub struct BlendState { /* private fields */ }Implementations§
Source§impl BlendState
impl BlendState
pub fn raw(&self) -> &FNA3D_BlendState
pub fn raw_mut(&mut self) -> &mut FNA3D_BlendState
Source§impl BlendState
Constructors (taken from FNA)
impl BlendState
Constructors (taken from FNA)
pub fn with_blend( color_src: Blend, alpha_src: Blend, color_dest: Blend, alpha_dest: Blend, ) -> Self
pub fn additive() -> Self
pub fn alpha_blend() -> Self
Sourcepub fn non_premultiplied() -> Self
pub fn non_premultiplied() -> Self
ImGUI font texture uses this blending function
pub fn opaque() -> Self
Source§impl BlendState
Accessors
impl BlendState
Accessors
pub fn color_src_blend(&self) -> Blend
pub fn set_color_src_blend(&mut self, blend: Blend)
pub fn color_dest_blend(&self) -> Blend
pub fn set_color_dest_blend(&mut self, blend: Blend)
pub fn color_blend_fn(&self) -> BlendFunction
pub fn set_color_blend_fn(&mut self, value: BlendFunction)
pub fn alpha_src_blend(&self) -> Blend
pub fn set_alpha_src_blend(&mut self, blend: Blend)
pub fn alpha_dest_blend(&self) -> Blend
pub fn set_alpha_dest_blend(&mut self, blend: Blend)
pub fn alpha_blend_fn(&self) -> BlendFunction
pub fn set_alpha_blend_fn(&mut self, blend_fn: BlendFunction)
pub fn color_write_enable(&self) -> ColorWriteChannels
pub fn set_color_write_enable(&mut self, channel: ColorWriteChannels)
pub fn color_write_enable1(&self) -> ColorWriteChannels
pub fn set_color_write_enable1(&mut self, channel: ColorWriteChannels)
pub fn color_write_enable2(&self) -> ColorWriteChannels
pub fn set_color_write_enable2(&mut self, channel: ColorWriteChannels)
pub fn color_write_enable3(&self) -> ColorWriteChannels
pub fn set_color_write_enable3(&mut self, channel: ColorWriteChannels)
Trait Implementations§
Source§impl Clone for BlendState
impl Clone for BlendState
Source§fn clone(&self) -> BlendState
fn clone(&self) -> BlendState
Returns a copy 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 BlendState
impl Debug for BlendState
Auto Trait Implementations§
impl Freeze for BlendState
impl RefUnwindSafe for BlendState
impl Send for BlendState
impl Sync for BlendState
impl Unpin for BlendState
impl UnwindSafe for BlendState
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