[][src]Trait glin::Image

pub trait Image {
    type DataType: Clone + 'static;
    fn gl_internal_format_type(&self) -> Option<(GLenum, GLenum, GLenum)>;
fn width(&self, level: usize) -> usize;
fn height(&self, level: usize) -> usize;
fn pitch_bytes(&self, level: usize) -> usize;
fn bytes_per_pixel(&self) -> usize;
fn pitch_components(&self, level: usize) -> usize;
fn num_components(&self) -> usize;
fn data(&self) -> &[Self::DataType];
fn levels(&self) -> usize;
fn mipmap(&self, level: usize) -> Option<&[Self::DataType]>;
fn is_gpu_compressed(&self) -> bool; fn gl_internal(&self) -> Option<GLenum> { ... }
fn gl_format(&self) -> Option<GLenum> { ... }
fn gl_type(&self) -> Option<GLenum> { ... }
fn max_levels(&self) -> usize { ... } }

Associated Types

Required Methods

Provided Methods

Implementations on Foreign Types

impl<Pixel, C> Image for ImageBuffer<Pixel, C> where
    Pixel: Pixel + 'static,
    Pixel::Subpixel: 'static,
    C: Deref<Target = [Pixel::Subpixel]>, 
[src]

impl Image for DynamicImage
[src]

impl Image for Bitmap
[src]

impl<S: Borrow<[u8]>> Image for Dds<S>
[src]

Implementors