[−][src]Struct crow::DrawConfig
How exactly should a texture be drawn?
This struct has a hidden unstable field, so it can only be constructed using FRU.
Examples
use crow::{DrawConfig, color}; let gray_scale = DrawConfig { color_modulation: color::GREYSCALE, ..Default::default() }; let strange = DrawConfig { scale: (2, 1), flip_horizontally: true, depth: Some(0.6), ..Default::default() };
Fields
scale: (u32, u32)
The scale of the drawn texture in pixels.
flip_vertically: bool
If the texture should be flipped on the y axis.
flip_horizontally: bool
If the texture should be flipped on the x axis.
depth: Option<f32>
The depth at which the texture should be drawn,
pixels with a depth smaller than depth
will not
be overwritten.
Draw calls with depth >= 1.0
are ignored.
color_modulation: [[f32; 4]; 4]
Changes the color of the given pixel using matrix multiplication.
invert_color: bool
If the red, green and blue color values of the texture should be inverted.
blend_mode: BlendMode
How the texture should be drawn on the target.
Trait Implementations
impl Clone for DrawConfig
[src]
fn clone(&self) -> DrawConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DrawConfig
[src]
impl Default for DrawConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for DrawConfig
impl Send for DrawConfig
impl Sync for DrawConfig
impl Unpin for DrawConfig
impl UnwindSafe for DrawConfig
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,
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,