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
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]
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]
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<Pixel, C> Image for ImageBuffer<Pixel, C> where
Pixel: Pixel + 'static,
Pixel::Subpixel: 'static,
C: Deref<Target = [Pixel::Subpixel]>,
[src]type DataType = Pixel::Subpixel
fn gl_internal_format_type(&self) -> Option<(GLenum, GLenum, GLenum)>
[src]
fn num_components(&self) -> usize
[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 data(&self) -> &[Pixel::Subpixel]
[src]
fn levels(&self) -> usize
[src]
fn mipmap(&self, level: usize) -> Option<&[Pixel::Subpixel]>
[src]
fn is_gpu_compressed(&self) -> bool
[src]
impl Image for DynamicImage
[src]
impl Image for DynamicImage
[src]type DataType = u8
fn gl_internal_format_type(&self) -> Option<(GLenum, GLenum, GLenum)>
[src]
fn num_components(&self) -> usize
[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 data(&self) -> &[u8]
[src]
fn levels(&self) -> usize
[src]
fn mipmap(&self, level: usize) -> Option<&[u8]>
[src]
fn is_gpu_compressed(&self) -> bool
[src]
impl Image for Bitmap
[src]
impl Image for Bitmap
[src]type DataType = u8
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) -> &[u8]
[src]
fn levels(&self) -> usize
[src]
fn mipmap(&self, level: usize) -> Option<&[u8]>
[src]
fn is_gpu_compressed(&self) -> bool
[src]
impl<S: Borrow<[u8]>> Image for Dds<S>
[src]
impl<S: Borrow<[u8]>> Image for Dds<S>
[src]