Struct sdl2::render::RendererInfo [] [src]

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,
}

A structure that contains information on the capabilities of a render driver or the current render context.

Fields

name
flags
texture_formats
max_texture_width
max_texture_height

Methods

impl RendererInfo

unsafe fn from_ll(info: &SDL_RendererInfo) -> RendererInfo

Trait Implementations

Derived Implementations

impl Debug for RendererInfo

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for RendererInfo

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl PartialEq for RendererInfo

fn eq(&self, __arg_0: &RendererInfo) -> bool

fn ne(&self, __arg_0: &RendererInfo) -> bool

impl Eq for RendererInfo

impl Clone for RendererInfo

fn clone(&self) -> RendererInfo

fn clone_from(&mut self, source: &Self)