Trait draw2d::graphics::ext::TextureLoader[][src]

pub trait TextureLoader {
    fn read_texture_file(
        &self,
        file_path: impl Into<String>
    ) -> Result<TextureImage>; }
Expand description

Types which implement this trait can load 2d textures from files on the disk.

Required methods

Read a file from the local filesystem into memory as a usable texture.

Implementors