Struct rich_sdl2_rust::renderer::info::RendererInfo
source · pub struct RendererInfo {
pub name: String,
pub kind: RendererKind,
pub is_v_sync: bool,
pub supported_texture: bool,
pub supported_formats: Vec<PixelFormatKind>,
pub max_texture_size: Size,
}
Expand description
An information of a renderer.
Fields§
§name: String
The name of the renderer.
kind: RendererKind
The kind of the renderer.
is_v_sync: bool
Whether vertical sync is enabled.
supported_texture: bool
Whether texture is supported.
supported_formats: Vec<PixelFormatKind>
The list of supported format kinds.
max_texture_size: Size
The max size of texture.
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
Auto Trait Implementations§
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