Enum sdl2_sys::SDL_RendererFlags
source · [−]#[repr(u32)]
pub enum SDL_RendererFlags {
SDL_RENDERER_SOFTWARE,
SDL_RENDERER_ACCELERATED,
SDL_RENDERER_PRESENTVSYNC,
SDL_RENDERER_TARGETTEXTURE,
}
Expand description
\brief Flags used when creating a rendering context
Variants
SDL_RENDERER_SOFTWARE
< The renderer is a software fallback
SDL_RENDERER_ACCELERATED
< The renderer uses hardware acceleration
SDL_RENDERER_PRESENTVSYNC
< Present is synchronized with the refresh rate
SDL_RENDERER_TARGETTEXTURE
< The renderer supports rendering to texture
Trait Implementations
sourceimpl Clone for SDL_RendererFlags
impl Clone for SDL_RendererFlags
sourcefn clone(&self) -> SDL_RendererFlags
fn clone(&self) -> SDL_RendererFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SDL_RendererFlags
impl Debug for SDL_RendererFlags
sourceimpl Hash for SDL_RendererFlags
impl Hash for SDL_RendererFlags
impl Copy for SDL_RendererFlags
impl Eq for SDL_RendererFlags
impl StructuralEq for SDL_RendererFlags
impl StructuralPartialEq for SDL_RendererFlags
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more