Struct three_d::core::ClearState [−][src]
Defines which channels (red, green, blue, alpha and depth) to clear when starting to write to a render target or the screen and which values they are set to (the values must be between 0 and 1).
Fields
red: Option<f32>
green: Option<f32>
blue: Option<f32>
alpha: Option<f32>
depth: Option<f32>
Implementations
impl ClearState
[src]
pub const fn none() -> Self
[src]
Nothing will be cleared.
pub const fn depth(depth: f32) -> Self
[src]
The depth will be cleared to the given value.
pub const fn color(red: f32, green: f32, blue: f32, alpha: f32) -> Self
[src]
The color channels (red, green, blue and alpha) will be cleared to the given values.
pub const fn color_and_depth(
red: f32,
green: f32,
blue: f32,
alpha: f32,
depth: f32
) -> Self
[src]
red: f32,
green: f32,
blue: f32,
alpha: f32,
depth: f32
) -> Self
Both the color channels (red, green, blue and alpha) and depth will be cleared to the given values.
Trait Implementations
impl Clone for ClearState
[src]
fn clone(&self) -> ClearState
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ClearState
[src]
impl Debug for ClearState
[src]
impl Default for ClearState
[src]
impl PartialEq<ClearState> for ClearState
[src]
fn eq(&self, other: &ClearState) -> bool
[src]
fn ne(&self, other: &ClearState) -> bool
[src]
impl StructuralPartialEq for ClearState
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClearState
impl Send for ClearState
impl Sync for ClearState
impl Unpin for ClearState
impl UnwindSafe for ClearState
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>,