[][src]Function gli_rs::load_from_memory

pub fn load_from_memory<T>(data: &[u8], format: TexFormatType) -> Result<T> where
    T: GliTexture

Construct a GliTexture by sharing another texture data in memory.

The format type and resulting texture type must be specified correctly.

The lifetime of data must be longer than constructed GliTexture, which is not guaranteed by this crate.