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
\brief 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 Debug for SDL_RendererFlags
impl Debug for SDL_RendererFlags
source§impl Hash for SDL_RendererFlags
impl Hash for SDL_RendererFlags
source§impl PartialEq for SDL_RendererFlags
impl PartialEq for SDL_RendererFlags
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)