[−][src]Enum golem::TextureFilter
How textures should scale when being drawn at non-native sizes
Variants
Smooth out the texture samples as the texture stretches or squashes
This is best for textures you want to blur as they scale
Pick the nearest texture sample as the texture stretches or squashes
This is best for textures you want to pixelate as they scale
Use the mipmap, and take the nearest sample from the nearest mipmap
Use the mipmap, and take an averaged sample from the nearest mipmap
Use the mipmap, and take the nearest sample from averaged layers of the mipmap
Use the mipmap, and take an averaged sample from averaged layers of the mipmap
Methods
impl TextureFilter
[src]
pub fn uses_mipmap(self) -> bool
[src]
If this texture filter uses texture mipmaps
Mipmaps are only available for power-of-two textures, and only available for minification
Trait Implementations
impl Clone for TextureFilter
[src]
fn clone(&self) -> TextureFilter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TextureFilter
[src]
impl Debug for TextureFilter
[src]
impl Eq for TextureFilter
[src]
impl Hash for TextureFilter
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<TextureFilter> for TextureFilter
[src]
fn eq(&self, other: &TextureFilter) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for TextureFilter
[src]
impl StructuralPartialEq for TextureFilter
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextureFilter
impl Send for TextureFilter
impl Sync for TextureFilter
impl Unpin for TextureFilter
impl UnwindSafe for TextureFilter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,