[][src]Struct luminance::render_state::RenderState

pub struct RenderState { /* fields omitted */ }

GPU render state.

You can get a default value with RenderState::default and set the operations you want with the various RenderState::set_* methods.

Methods

impl RenderState[src]

pub fn set_blending<B>(self, blending: B) -> Self where
    B: Into<Option<(Equation, Factor, Factor)>>, 
[src]

Override the blending configuration.

pub fn blending(&self) -> Option<(Equation, Factor, Factor)>[src]

Blending configuration.

pub fn set_depth_test(self, depth_test: DepthTest) -> Self[src]

Override the depth test configuration.

pub fn depth_test(&self) -> DepthTest[src]

Depth test configuration.

pub fn set_face_culling<FC>(self, face_culling: FC) -> Self where
    FC: Into<Option<FaceCulling>>, 
[src]

Override the face culling configuration.

pub fn face_culling(&self) -> Option<FaceCulling>[src]

Face culling configuration.

Trait Implementations

impl Eq for RenderState[src]

impl Default for RenderState[src]

fn default() -> Self[src]

The default RenderState.

  • blending: None
  • depth_test: DepthTest::On
  • face_culling: None

impl Clone for RenderState[src]

impl PartialEq<RenderState> for RenderState[src]

impl Copy for RenderState[src]

impl Debug for RenderState[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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