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
Blend newly-computed fragment colors with the current values in the color buffer.
CullFace
Cull polygons, based on their winding in window coordinates.
DepthTest
Perform a depth test for each fragment, only drawing fragments that are not obscured by other geometry. Also updates the depth buffer appropriately.
Dither
Dither color components or indices.
PolygonOffsetFill
When filling a polygon, add an offset to each fragment's depth value.
SampleAlphaToCoverage
When multisampling, use the alpha value from the sample location.
SampleCoverage
When multisampling, use the preset sample coverage value as the alpha value.
ScisscorTest
Only draw fragments within the scissor rectangle.
StencilTest
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]
fn from_gl(gl_enum: GLenum) -> Result<Self, ()>
Convert from a raw OpenGL integer value to an enum variant. Returns an error if the value is not a valid enum variant.
fn gl_enum(&self) -> GLenum
Return the OpenGL integer value for a given enum variant.
Trait Implementations
impl Debug for Capability
[src]
impl Clone for Capability
[src]
fn clone(&self) -> Capability
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Capability
[src]
impl PartialEq for Capability
[src]
fn eq(&self, __arg_0: &Capability) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.