Function gl_utils::texture::texture2d_with_mipmaps_from_file [−][src]
pub fn texture2d_with_mipmaps_from_file(
glium_facade: &Facade,
filepath: &'static str,
image_format: ImageFormat,
mipmaps: MipmapsOption
) -> Result<Texture2d, LoadError>
Load a 2D texture from the given path with the given format and mipmaps.