Struct glium::texture::CompressedTexture1dMipmap [] [src]

pub struct CompressedTexture1dMipmap<'t>(_, _);

Represents a single mipmap level of a CompressedTexture1d.

Can be obtained by calling CompressedTexture1d::mipmap() or CompressedTexture1d::main_level().

Methods

impl<'t> CompressedTexture1dMipmap<'t>

fn read_compressed_data(&self) -> Option<(CompressedFormat, Vec<u8>)>

Reads the content of the texture level to RAM without decompressing it before.

You should avoid doing this at all cost during performance-critical operations (for example, while you're drawing).

Returns the compressed format of the texture and the compressed data, gives None when the internal compression format is generic or unknown.

fn get_texture(&self) -> &'t CompressedTexture1d

Returns the corresponding texture.

fn get_level(&self) -> u32

Returns the texture level.

Trait Implementations

Derived Implementations

impl<'t> Clone for CompressedTexture1dMipmap<'t>

fn clone(&self) -> CompressedTexture1dMipmap<'t>

fn clone_from(&mut self, source: &Self)

impl<'t> Copy for CompressedTexture1dMipmap<'t>