Enum glitter::types::Capability [] [src]

pub enum Capability {
    Blend,
    CullFace,
    DepthTest,
    Dither,
    PolygonOffsetFill,
    SampleAlphaToCoverage,
    SampleCoverage,
    ScisscorTest,
    StencilTest,
}

The OpenGL drawing capabilities that can be enabled or disabled.

Variants

Blend newly-computed fragment colors with the current values in the color buffer.

Cull polygons, based on their winding in window coordinates.

Perform a depth test for each fragment, only drawing fragments that are not obscured by other geometry. Also updates the depth buffer appropriately.

Dither color components or indices.

When filling a polygon, add an offset to each fragment's depth value.

When multisampling, use the alpha value from the sample location.

When multisampling, use the preset sample coverage value as the alpha value.

Only draw fragments within the scissor rectangle.

Perform a stencil test for each fragment, only drawing fragments that pass the currently-set stencil operation. Also updates the stencil buffer appropriately.

Methods

impl Capability
[src]

[src]

Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.

[src]

Return the OpenGL integer value for a given enum variant.

Trait Implementations

impl Debug for Capability
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Capability
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Capability
[src]

impl PartialEq for Capability
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for Capability
[src]

impl Hash for Capability
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more