Enum glitter::texture::TextureFilter [] [src]

pub enum TextureFilter {
    Nearest,
    Linear,
}

Represents the different forms of texture filtering, which determines how a texture will be sampled when drawn.

Variants

When texturing a pixel, return the texel that is nearest to the center of the pixel.

When texturing a pixel, return a weighted average of the four texels nearest to center of the pixel.

Methods

impl TextureFilter
[src]

[src]

Convert a TextureFilter into a raw OpenGL enum value

Trait Implementations

impl Debug for TextureFilter
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TextureFilter
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TextureFilter
[src]

impl PartialEq for TextureFilter
[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 TextureFilter
[src]

impl From<TextureFilter> for TextureMipmapFilter
[src]

[src]

Performs the conversion.