pub trait LoadTexture {
    fn load_texture<P: AsRef<Path>>(
        &self,
        filename: P
    ) -> Result<Texture<'_>, String>;
fn load_texture_bytes(&self, buf: &[u8]) -> Result<Texture<'_>, String>; }
Expand description

Method extensions for creating Textures from a TextureCreator

Required methods

Implementors