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
source§impl From<SDL_RendererInfo> for RendererInfo
impl From<SDL_RendererInfo> for RendererInfo
source§fn from(info: SDL_RendererInfo) -> Self
fn from(info: SDL_RendererInfo) -> Self
Converts to this type from the input type.