Trait nannou::ui::backend::glium::glium::texture::Texture1dDataSink[][src]

pub trait Texture1dDataSink<T> {
    fn from_raw(data: Cow<[T]>, width: u32) -> Self
    where
        [T]: ToOwned
; }

Trait that describes types that can be built from one-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

Builds a new object from raw data.

Implementations on Foreign Types

impl<P> Texture1dDataSink<P> for Vec<P> where
    P: Copy + Clone + Send
[src]

Important traits for Vec<u8>

Implementors