Trait glium::texture::Texture2dDataSource
[−]
[src]
pub trait Texture2dDataSource<'a> { type Data: Send + Copy + Clone + 'a; fn into_raw(self) -> RawImage2d<'a, Self::Data>; }
Trait that describes data for a two-dimensional texture.
Associated Types
Required Methods
fn into_raw(self) -> RawImage2d<'a, Self::Data>
Returns the raw representation of the data.
Implementors
impl<'a, P: PixelValue + Clone> Texture2dDataSource<'a> for Vec<Vec<P>>
impl<'a, P: PixelValue + Clone> Texture2dDataSource<'a> for RawImage2d<'a, P>
impl<'a, T, P> Texture2dDataSource<'a> for ImageBuffer<P, Vec<T>> where T: Primitive + Send + 'static, P: PixelValue + Pixel<Subpixel=T> + Clone + Copy
impl<'a> Texture2dDataSource<'a> for DynamicImage