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
Nearest
When texturing a pixel, return the texel that is nearest to the center of the pixel.
Linear
When texturing a pixel, return a weighted average of the four texels nearest to center of the pixel.
Methods
impl TextureFilter
[src]
Trait Implementations
impl Debug for TextureFilter
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for TextureFilter
[src]
fn clone(&self) -> TextureFilter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for TextureFilter
[src]
impl PartialEq for TextureFilter
[src]
fn eq(&self, __arg_0: &TextureFilter) -> bool
[src]
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[src]
This method tests for !=
.
impl Eq for TextureFilter
[src]
impl From<TextureFilter> for TextureMipmapFilter
[src]
fn from(filter: TextureFilter) -> TextureMipmapFilter
[src]
Performs the conversion.