#[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
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