pub fn load_texture<P: AsRef<Path>>(&mut self, key: TexKey, path: P) -> io::Result<()> {
        let path = path.as_ref();
        let texture = Texture::from_file(path)?;

        self.textures.insert(key, texture);

        Ok(())
    }
/// Loads a image file from the given path and associates it with the given key.
Loads a image file from the given path and associates it with the given key.
Loads a image file from the given path and associates it with the given key .
pub fn load_texture<P: AsRef<Path>>(&mut self, key: TexKey, path: P) -> io::Result<()> {
        let path = path.as_ref();
        let texture = Texture::from_file(path)?;
        self.textures.insert(key, texture);
        Ok(())
    }
pub fn load_texture < P : AsRef < Path > > ( & mut self , key : TexKey , path : P ) -> io :: Result < ( ) > { let path = path . as_ref ( ) ; let texture = Texture :: from_file ( path ) ? ; self . textures . insert ( key , texture ) ; Ok ( ( ) ) }
Loads a image file from the given path and associates it with the given key.
Loads a image file from the given path and associates it with the given key .
&mut self
key
TexKey
path
P
&mut self
key
TexKey
path
P