Struct sdl2_sys::SDL_RendererInfo
source · [−]#[repr(C)]pub struct SDL_RendererInfo {
pub name: *const c_char,
pub flags: Uint32,
pub num_texture_formats: Uint32,
pub texture_formats: [Uint32; 16],
pub max_texture_width: c_int,
pub max_texture_height: c_int,
}
Expand description
\brief Information on the capabilities of a render driver or context.
Fields
name: *const c_char
< The name of the renderer
flags: Uint32
< Supported ::SDL_RendererFlags
num_texture_formats: Uint32
< The number of available texture formats
texture_formats: [Uint32; 16]
< The available texture formats
max_texture_width: c_int
< The maximum texture width
max_texture_height: c_int
< The maximum texture height
Trait Implementations
sourceimpl Clone for SDL_RendererInfo
impl Clone for SDL_RendererInfo
sourcefn clone(&self) -> SDL_RendererInfo
fn clone(&self) -> SDL_RendererInfo
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
impl Copy for SDL_RendererInfo
Auto Trait Implementations
impl RefUnwindSafe for SDL_RendererInfo
impl !Send for SDL_RendererInfo
impl !Sync for SDL_RendererInfo
impl Unpin for SDL_RendererInfo
impl UnwindSafe for SDL_RendererInfo
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