Enum tetra::graphics::FilterMode [−][src]
pub enum FilterMode { Nearest, Linear, }
Expand description
Filtering algorithms that can be used when scaling an image.
Tetra currently defaults to using Nearest
for all newly created textures.
Variants
Expand description
Nearest-neighbor interpolation. This preserves hard edges and details, but may look pixelated.
If you’re using pixel art, this is probably the scaling mode you should use.
Expand description
Linear interpolation. This smooths images when scaling them up or down.
Trait Implementations
impl Clone for FilterMode
[src]
impl Clone for FilterMode
[src]fn clone(&self) -> FilterMode
[src]
fn clone(&self) -> FilterMode
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for FilterMode
[src]
impl Debug for FilterMode
[src]impl PartialEq<FilterMode> for FilterMode
[src]
impl PartialEq<FilterMode> for FilterMode
[src]impl Copy for FilterMode
[src]
impl Eq for FilterMode
[src]
impl StructuralEq for FilterMode
[src]
impl StructuralPartialEq for FilterMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for FilterMode
impl Send for FilterMode
impl Sync for FilterMode
impl Unpin for FilterMode
impl UnwindSafe for FilterMode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more