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