Enum glenum::DepthTest [] [src]

pub enum DepthTest {
    Never,
    Always,
    Less,
    Equal,
    Lequal,
    Greater,
    Gequal,
    Notequal,
}

Constants passed to WebGLRenderingContext.depthFunc().

Variants

Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn.

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.

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value.

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value.

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.

Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value.

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.

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

impl Debug for DepthTest
[src]

[src]

Formats the value using the given formatter.

impl Clone for DepthTest
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for DepthTest
[src]