Struct draw_state::state::Stencil [] [src]

pub struct Stencil {
    pub front: StencilSide,
    pub back: StencilSide,
}

Complete stencil state, specifying how to handle the front and back side of a face.

Fields

front
back

Methods

impl Stencil

fn new(fun: Comparison, mask: Stencil, ops: (StencilOp, StencilOp, StencilOp)) -> Stencil

Create a new stencil state with a given function.

Trait Implementations

impl Default for Stencil

fn default() -> Stencil

Derived Implementations

impl Ord for Stencil

fn cmp(&self, __arg_0: &Stencil) -> Ordering

impl PartialOrd for Stencil

fn partial_cmp(&self, __arg_0: &Stencil) -> Option<Ordering>

fn lt(&self, __arg_0: &Stencil) -> bool

fn le(&self, __arg_0: &Stencil) -> bool

fn gt(&self, __arg_0: &Stencil) -> bool

fn ge(&self, __arg_0: &Stencil) -> bool

impl Eq for Stencil

impl Hash for Stencil

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Debug for Stencil

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Stencil

fn eq(&self, __arg_0: &Stencil) -> bool

fn ne(&self, __arg_0: &Stencil) -> bool

impl Clone for Stencil

fn clone(&self) -> Stencil

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for Stencil