Trait glium::texture::Texture2dDataSink
[−]
[src]
pub trait Texture2dDataSink<T> {
fn from_raw(data: Cow<[T]>, width: u32, height: u32) -> Self;
}Trait that describes types that can be built from two-dimensional texture data.
The parameter indicates the type of pixels accepted by this sink.
You are especially encouraged to implement this trait with the parameter (u8, u8, u8, u8),
as this is the only format that is guaranteed to be supported by OpenGL when reading pixels.
Required Methods
Implementors
impl<P> Texture2dDataSink<P> for Vec<Vec<P>> where P: Copy + Cloneimpl<T, P> Texture2dDataSink<P> for ImageBuffer<P, Vec<T>> where T: Primitive + Send + 'static, P: PixelValue + Pixel<Subpixel=T> + Clone + Copyimpl Texture2dDataSink<(u8, u8, u8, u8)> for DynamicImage