[][src]Trait glium::texture::Texture1dDataSource

pub trait Texture1dDataSource<'a> {
    type Data: Send + Copy + Clone + 'a;
    fn into_raw(self) -> RawImage1d<'a, Self::Data>;
}

Trait that describes data for a one-dimensional texture.

Associated Types

type Data: Send + Copy + Clone + 'a

The type of each pixel.

Loading content...

Required methods

fn into_raw(self) -> RawImage1d<'a, Self::Data>

Returns the raw representation of the data.

Loading content...

Implementations on Foreign Types

impl<'a, P: PixelValue> Texture1dDataSource<'a> for Vec<P> where
    P: Copy + Clone + Send + 'static, 
[src]

type Data = P

impl<'a, P: PixelValue> Texture1dDataSource<'a> for &'a [P] where
    P: Copy + Clone + Send + 'static, 
[src]

type Data = P

Loading content...

Implementors

impl<'a, P: PixelValue + Clone> Texture1dDataSource<'a> for RawImage1d<'a, P>[src]

type Data = P

Loading content...