Enum webgl_rs::glenum::StencilTest
source · pub enum StencilTest {
Never,
Always,
Less,
Equal,
Lequal,
Greater,
Gequal,
Notequal,
}
Expand description
Constants passed to WebGLRenderingContext.stencilFunc().
Variants§
Never
Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn.
Always
Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn.
Less
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value.
Equal
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value.
Lequal
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value.
Greater
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value.
Gequal
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value.
Notequal
Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value.
Trait Implementations§
source§impl Clone for StencilTest
impl Clone for StencilTest
source§fn clone(&self) -> StencilTest
fn clone(&self) -> StencilTest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StencilTest
impl Debug for StencilTest
source§impl FromWasmAbi for StencilTest
impl FromWasmAbi for StencilTest
source§impl IntoWasmAbi for StencilTest
impl IntoWasmAbi for StencilTest
source§impl OptionFromWasmAbi for StencilTest
impl OptionFromWasmAbi for StencilTest
source§impl OptionIntoWasmAbi for StencilTest
impl OptionIntoWasmAbi for StencilTest
impl Copy for StencilTest
Auto Trait Implementations§
impl RefUnwindSafe for StencilTest
impl Send for StencilTest
impl Sync for StencilTest
impl Unpin for StencilTest
impl UnwindSafe for StencilTest
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more