Trait glin::Image[][src]

pub trait Image {
    type DataType: Clone + 'static;
Show methods 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

type DataType: Clone + 'static[src]

Loading content...

Required methods

fn gl_internal_format_type(&self) -> Option<(GLenum, GLenum, GLenum)>[src]

fn width(&self, level: usize) -> usize[src]

fn height(&self, level: usize) -> usize[src]

fn pitch_bytes(&self, level: usize) -> usize[src]

fn bytes_per_pixel(&self) -> usize[src]

fn pitch_components(&self, level: usize) -> usize[src]

fn num_components(&self) -> usize[src]

fn data(&self) -> &[Self::DataType][src]

fn levels(&self) -> usize[src]

fn mipmap(&self, level: usize) -> Option<&[Self::DataType]>[src]

fn is_gpu_compressed(&self) -> bool[src]

Loading content...

Provided methods

fn gl_internal(&self) -> Option<GLenum>[src]

fn gl_format(&self) -> Option<GLenum>[src]

fn gl_type(&self) -> Option<GLenum>[src]

fn max_levels(&self) -> usize[src]

Loading content...

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]

type DataType = Pixel::Subpixel

impl Image for DynamicImage[src]

type DataType = u8

impl Image for Bitmap[src]

type DataType = u8

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

type DataType = u8

Loading content...

Implementors

Loading content...