[][src]Struct fna3d::BlendState

pub struct BlendState { /* fields omitted */ }

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]

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

Trait Implementations

impl Clone for BlendState[src]

impl Debug for BlendState[src]

impl Default for BlendState[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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.