pub trait ImageRWops {
fn load(&self) -> Result<Surface<'static>, String>;
fn load_typed(&self, _type: &str) -> Result<Surface<'static>, String>;
fn load_cur(&self) -> Result<Surface<'static>, String>;
fn load_ico(&self) -> Result<Surface<'static>, String>;
fn load_bmp(&self) -> Result<Surface<'static>, String>;
fn load_pnm(&self) -> Result<Surface<'static>, String>;
fn load_xpm(&self) -> Result<Surface<'static>, String>;
fn load_xcf(&self) -> Result<Surface<'static>, String>;
fn load_pcx(&self) -> Result<Surface<'static>, String>;
fn load_gif(&self) -> Result<Surface<'static>, String>;
fn load_jpg(&self) -> Result<Surface<'static>, String>;
fn load_tif(&self) -> Result<Surface<'static>, String>;
fn load_png(&self) -> Result<Surface<'static>, String>;
fn load_tga(&self) -> Result<Surface<'static>, String>;
fn load_lbm(&self) -> Result<Surface<'static>, String>;
fn load_xv(&self) -> Result<Surface<'static>, String>;
fn load_webp(&self) -> Result<Surface<'static>, String>;
fn is_cur(&self) -> bool;
fn is_ico(&self) -> bool;
fn is_bmp(&self) -> bool;
fn is_pnm(&self) -> bool;
fn is_xpm(&self) -> bool;
fn is_xcf(&self) -> bool;
fn is_pcx(&self) -> bool;
fn is_gif(&self) -> bool;
fn is_jpg(&self) -> bool;
fn is_tif(&self) -> bool;
fn is_png(&self) -> bool;
fn is_lbm(&self) -> bool;
fn is_xv(&self) -> bool;
fn is_webp(&self) -> bool;
}
load as a surface. except TGA
load as a surface. This can load all supported image formats.
Loading content...
Loading content...