Enum glitter::texture::TextureMipmapFilter [] [src]

pub enum TextureMipmapFilter {
    Filter(TextureFilter),
    MipmapFilter {
        criterion: TextureFilter,
        mipmap: TextureFilter,
    },
}

Represents the different forms of texture filtering when using mipmaps.

Variants

Ignore mipmap values, and texture a pixel using a standard TextureFilter.

Select the two mipmaps that are closest to the size of pixel being filled, and sample each one according to criterion. Finally, the result will be computed either by taking the weighted average of each texel, or by selecting the value from the closer texel, according to mipmap.

Fields of MipmapFilter

The method to use to select the texels from a mipmap.

The method to use to select the mipmaps.

Methods

impl TextureMipmapFilter
[src]

[src]

Convert a TextureMipmapFilter into a raw OpenGL enum value

Trait Implementations

impl Debug for TextureMipmapFilter
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for TextureMipmapFilter
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TextureMipmapFilter
[src]

impl PartialEq for TextureMipmapFilter
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for TextureMipmapFilter
[src]

impl From<TextureFilter> for TextureMipmapFilter
[src]

[src]

Performs the conversion.