Struct sdl2::render::RendererInfo
source · pub struct RendererInfo {
pub name: &'static str,
pub flags: u32,
pub texture_formats: Vec<PixelFormatEnum>,
pub max_texture_width: u32,
pub max_texture_height: u32,
}
Expand description
A structure that contains information on the capabilities of a render driver or the current render context.
Fields§
§name: &'static str
§flags: u32
§texture_formats: Vec<PixelFormatEnum>
§max_texture_width: u32
§max_texture_height: u32
Implementations§
source§impl RendererInfo
impl RendererInfo
pub unsafe fn from_ll(info: &SDL_RendererInfo) -> RendererInfo
Trait Implementations§
source§impl Clone for RendererInfo
impl Clone for RendererInfo
source§fn clone(&self) -> RendererInfo
fn clone(&self) -> 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 RendererInfo
impl Debug for RendererInfo
source§impl Hash for RendererInfo
impl Hash for RendererInfo
source§impl PartialEq for RendererInfo
impl PartialEq for RendererInfo
impl Eq for RendererInfo
impl StructuralPartialEq for RendererInfo
Auto Trait Implementations§
impl Freeze for RendererInfo
impl RefUnwindSafe for RendererInfo
impl Send for RendererInfo
impl Sync for RendererInfo
impl Unpin for RendererInfo
impl UnwindSafe for 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
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
)