pub trait ImageCacheImpl {
    // Required methods
    fn get_texture(&self) -> &Option<Texture>;
    fn set_texture(&mut self, texture: Option<Texture>);

    // Provided methods
    fn lazy_create_image_cache(&mut self, cx: &mut Cx) { ... }
    fn load_png_from_data(&mut self, cx: &mut Cx, data: &[u8]) { ... }
    fn load_jpg_from_data(&mut self, cx: &mut Cx, data: &[u8]) { ... }
    fn load_image_dep_by_path(&mut self, cx: &mut Cx, image_path: &str) { ... }
}

Required Methods§

source

fn get_texture(&self) -> &Option<Texture>

source

fn set_texture(&mut self, texture: Option<Texture>)

Provided Methods§

source

fn lazy_create_image_cache(&mut self, cx: &mut Cx)

source

fn load_png_from_data(&mut self, cx: &mut Cx, data: &[u8])

source

fn load_jpg_from_data(&mut self, cx: &mut Cx, data: &[u8])

source

fn load_image_dep_by_path(&mut self, cx: &mut Cx, image_path: &str)

Implementors§