Enum sdl2_sys::SDL_RendererFlags
source · #[repr(u32)]pub enum SDL_RendererFlags {
SDL_RENDERER_SOFTWARE = 1,
SDL_RENDERER_ACCELERATED = 2,
SDL_RENDERER_PRESENTVSYNC = 4,
SDL_RENDERER_TARGETTEXTURE = 8,
}
Expand description
Flags used when creating a rendering context
Variants§
SDL_RENDERER_SOFTWARE = 1
< The renderer is a software fallback
SDL_RENDERER_ACCELERATED = 2
< The renderer uses hardware acceleration
SDL_RENDERER_PRESENTVSYNC = 4
< Present is synchronized with the refresh rate
SDL_RENDERER_TARGETTEXTURE = 8
< The renderer supports rendering to texture
Trait Implementations§
source§impl Clone for SDL_RendererFlags
impl Clone for SDL_RendererFlags
source§fn clone(&self) -> SDL_RendererFlags
fn clone(&self) -> SDL_RendererFlags
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_RendererFlags
impl Hash for SDL_RendererFlags
source§impl PartialEq for SDL_RendererFlags
impl PartialEq for SDL_RendererFlags
source§fn eq(&self, other: &SDL_RendererFlags) -> bool
fn eq(&self, other: &SDL_RendererFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_RendererFlags
impl Eq for SDL_RendererFlags
impl StructuralPartialEq for SDL_RendererFlags
Auto Trait Implementations§
impl Freeze for SDL_RendererFlags
impl RefUnwindSafe for SDL_RendererFlags
impl Send for SDL_RendererFlags
impl Sync for SDL_RendererFlags
impl Unpin for SDL_RendererFlags
impl UnwindSafe for SDL_RendererFlags
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