Enum sdl2_sys::SDL_ScaleMode
source · #[repr(u32)]pub enum SDL_ScaleMode {
SDL_ScaleModeNearest = 0,
SDL_ScaleModeLinear = 1,
SDL_ScaleModeBest = 2,
}
Expand description
The scaling mode for a texture.
Variants§
SDL_ScaleModeNearest = 0
< nearest pixel sampling
SDL_ScaleModeLinear = 1
< linear filtering
SDL_ScaleModeBest = 2
< anisotropic filtering
Trait Implementations§
source§impl Clone for SDL_ScaleMode
impl Clone for SDL_ScaleMode
source§fn clone(&self) -> SDL_ScaleMode
fn clone(&self) -> SDL_ScaleMode
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 Hash for SDL_ScaleMode
impl Hash for SDL_ScaleMode
source§impl PartialEq for SDL_ScaleMode
impl PartialEq for SDL_ScaleMode
source§fn eq(&self, other: &SDL_ScaleMode) -> bool
fn eq(&self, other: &SDL_ScaleMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_ScaleMode
impl Eq for SDL_ScaleMode
impl StructuralPartialEq for SDL_ScaleMode
Auto Trait Implementations§
impl Freeze for SDL_ScaleMode
impl RefUnwindSafe for SDL_ScaleMode
impl Send for SDL_ScaleMode
impl Sync for SDL_ScaleMode
impl Unpin for SDL_ScaleMode
impl UnwindSafe for SDL_ScaleMode
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