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
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§
source§impl Clone for SDL_RendererInfo
impl Clone for SDL_RendererInfo
source§fn clone(&self) -> SDL_RendererInfo
fn clone(&self) -> SDL_RendererInfo
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 moreimpl Copy for SDL_RendererInfo
Auto Trait Implementations§
impl Freeze for SDL_RendererInfo
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§
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