Enum ggez::graphics::FilterMode
source · pub enum FilterMode {
Nearest,
Linear,
}
Expand description
Describes the filter mode of a sampler, used when magnification or minification of a texture occurs (i.e. scaling).
Variants§
Trait Implementations§
source§impl Clone for FilterMode
impl Clone for FilterMode
source§fn clone(&self) -> FilterMode
fn clone(&self) -> FilterMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FilterMode
impl Debug for FilterMode
source§impl From<FilterMode> for FilterMode
impl From<FilterMode> for FilterMode
source§fn from(filter: FilterMode) -> Self
fn from(filter: FilterMode) -> Self
Converts to this type from the input type.
source§impl From<FilterMode> for Sampler
impl From<FilterMode> for Sampler
source§fn from(filter: FilterMode) -> Self
fn from(filter: FilterMode) -> Self
Converts to this type from the input type.
source§impl Hash for FilterMode
impl Hash for FilterMode
source§impl Ord for FilterMode
impl Ord for FilterMode
source§fn cmp(&self, other: &FilterMode) -> Ordering
fn cmp(&self, other: &FilterMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<FilterMode> for FilterMode
impl PartialEq<FilterMode> for FilterMode
source§fn eq(&self, other: &FilterMode) -> bool
fn eq(&self, other: &FilterMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<FilterMode> for FilterMode
impl PartialOrd<FilterMode> for FilterMode
source§fn partial_cmp(&self, other: &FilterMode) -> Option<Ordering>
fn partial_cmp(&self, other: &FilterMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for FilterMode
impl Eq for FilterMode
impl StructuralEq for FilterMode
impl StructuralPartialEq for FilterMode
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
source§impl<T> HasMut<T> for T
impl<T> HasMut<T> for T
source§fn retrieve_mut(&mut self) -> &mut T
fn retrieve_mut(&mut self) -> &mut T
Method to retrieve the context type as mutable.