Struct fermium::renderer::SDL_RendererInfo
source · #[repr(C)]pub struct SDL_RendererInfo {
pub name: *const c_char,
pub flags: u32,
pub num_texture_formats: u32,
pub texture_formats: [u32; 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 (borrowed)
flags: u32
Supported SDL_RendererFlags
num_texture_formats: u32
The number of available texture formats
texture_formats: [u32; 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 moresource§impl Debug for SDL_RendererInfo
impl Debug for SDL_RendererInfo
source§impl Default for SDL_RendererInfo
impl Default for SDL_RendererInfo
source§impl Hash for SDL_RendererInfo
impl Hash for SDL_RendererInfo
source§impl Ord for SDL_RendererInfo
impl Ord for SDL_RendererInfo
source§fn cmp(&self, other: &SDL_RendererInfo) -> Ordering
fn cmp(&self, other: &SDL_RendererInfo) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_RendererInfo> for SDL_RendererInfo
impl PartialEq<SDL_RendererInfo> for SDL_RendererInfo
source§fn eq(&self, other: &SDL_RendererInfo) -> bool
fn eq(&self, other: &SDL_RendererInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_RendererInfo> for SDL_RendererInfo
impl PartialOrd<SDL_RendererInfo> for SDL_RendererInfo
source§fn partial_cmp(&self, other: &SDL_RendererInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_RendererInfo) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_RendererInfo
impl Eq for SDL_RendererInfo
impl StructuralEq for SDL_RendererInfo
impl StructuralPartialEq 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§
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