[][src]Trait sdl2::image::LoadSurface

pub trait LoadSurface: Sized {
    fn from_file<P: AsRef<Path>>(filename: P) -> Result<Self, String>;
fn from_xpm_array(xpm: *const *const i8) -> Result<Self, String>; }

Static method extensions for creating Surfaces

Required methods

fn from_file<P: AsRef<Path>>(filename: P) -> Result<Self, String>

fn from_xpm_array(xpm: *const *const i8) -> Result<Self, String>

Loading content...

Implementors

impl<'a> LoadSurface for Surface<'a>[src]

fn from_file<P: AsRef<Path>>(filename: P) -> Result<Surface<'a>, String>[src]

Loads an SDL Surface from a file

fn from_xpm_array(xpm: *const *const i8) -> Result<Surface<'a>, String>[src]

Loads an SDL Surface from XPM data

Loading content...